Documentation ¶
Index ¶
- func DecryptOAEP(hash hash.Hash, random io.Reader, private *rsa.PrivateKey, msg []byte, ...) ([]byte, error)
- func EncryptOAEP(hash hash.Hash, random io.Reader, public *rsa.PublicKey, msg []byte, ...) ([]byte, error)
- func ExportPEMStrToPrivKey(priv []byte) *rsa.PrivateKey
- func ExportPEMStrToPubKey(pub []byte) *rsa.PublicKey
- func ExportPrivKeyAsPEMStr(privkey *rsa.PrivateKey) string
- func ExportPubkeyAsPEMStr(pubkey *rsa.PublicKey) string
- func Generate_rsa_pey_kair(bits int) (*rsa.PrivateKey, *rsa.PublicKey)
- func Rsa_Sign(pri *rsa.PrivateKey, dat []byte) []byte
- func Rsa_Verify(pub *rsa.PublicKey, sig []byte, dat []byte) bool
- func Rsa_dec(pri *rsa.PrivateKey, dat []byte) []byte
- func Rsa_enc(pub *rsa.PublicKey, dat []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptOAEP ¶
func EncryptOAEP ¶
func ExportPEMStrToPrivKey ¶
func ExportPEMStrToPrivKey(priv []byte) *rsa.PrivateKey
func ExportPEMStrToPubKey ¶
func ExportPrivKeyAsPEMStr ¶
func ExportPrivKeyAsPEMStr(privkey *rsa.PrivateKey) string
func ExportPubkeyAsPEMStr ¶
func Generate_rsa_pey_kair ¶
func Generate_rsa_pey_kair(bits int) (*rsa.PrivateKey, *rsa.PublicKey)
func Rsa_Verify ¶
Returns true if success
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.