Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptSHA512 ¶
func DecryptSHA512(rsaKey *rsa.PrivateKey, msgEncr []byte) ([]byte, error)
func EncodePEMPrivateKey ¶
func EncodePEMPrivateKey(privKey crypto.PrivateKey) ([]byte, error)
Encode private key to PKCS1 format embedded in a PEM block
func EncodePEMPublicKey ¶
Encode public key to PKIX format embedded in a PEM block
func GenerateKeyPair ¶
Generates RSA key pairs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.