Documentation
¶
Index ¶
- func DecryptAESGCM(encryptedMessage []byte, key []byte) (decryptedMessage []byte, err error)
- func EncryptAESGCM(decryptedMessage []byte, key []byte) (encryptedMessage []byte, err error)
- func GenerateRSAKey() (privateKey *rsa.PrivateKey, err error)
- func RSAPrivateKeyFromBase64(privateKey64 string) (privateKey *rsa.PrivateKey, err error)
- func RSAPrivateKeyFromDer(privateKeyDer []byte) (privateKey *rsa.PrivateKey, err error)
- func RSAPrivateKeyFromHex(privateKey64 string) (privateKey *rsa.PrivateKey, err error)
- func RSAPrivateKeyFromPem(privateKeyPem string) (privateKey *rsa.PrivateKey, err error)
- func RSAPrivateKeyToBase64(privateKey *rsa.PrivateKey) (privateKey64 string)
- func RSAPrivateKeyToDer(privateKey *rsa.PrivateKey) (privateKeyDer []byte)
- func RSAPrivateKeyToHex(privateKey *rsa.PrivateKey) (privateKey64 string)
- func RSAPrivateKeyToPem(privateKey *rsa.PrivateKey) (privateKeyPem string)
- func RSAPublicKeyFromBase64(publicKey64 string) (publicKey *rsa.PublicKey, err error)
- func RSAPublicKeyFromDer(publicKeyDer []byte) (publicKey *rsa.PublicKey, err error)
- func RSAPublicKeyFromHex(publicKey64 string) (publicKey *rsa.PublicKey, err error)
- func RSAPublicKeyFromPem(publicKeyPem string) (publicKey *rsa.PublicKey, err error)
- func RSAPublicKeyToBase64(publicKey *rsa.PublicKey) (publicKey64 string)
- func RSAPublicKeyToDer(publicKey *rsa.PublicKey) (publicKeyDer []byte)
- func RSAPublicKeyToHex(publicKey *rsa.PublicKey) (publicKey64 string)
- func RSAPublicKeyToPem(publicKey *rsa.PublicKey) (publicKeyPem string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAESGCM ¶
func EncryptAESGCM ¶
func GenerateRSAKey ¶ added in v0.0.8
func GenerateRSAKey() (privateKey *rsa.PrivateKey, err error)
func RSAPrivateKeyFromBase64 ¶ added in v0.0.8
func RSAPrivateKeyFromBase64(privateKey64 string) (privateKey *rsa.PrivateKey, err error)
func RSAPrivateKeyFromDer ¶ added in v0.0.9
func RSAPrivateKeyFromDer(privateKeyDer []byte) (privateKey *rsa.PrivateKey, err error)
func RSAPrivateKeyFromHex ¶ added in v0.0.8
func RSAPrivateKeyFromHex(privateKey64 string) (privateKey *rsa.PrivateKey, err error)
func RSAPrivateKeyFromPem ¶ added in v0.0.8
func RSAPrivateKeyFromPem(privateKeyPem string) (privateKey *rsa.PrivateKey, err error)
func RSAPrivateKeyToBase64 ¶ added in v0.0.8
func RSAPrivateKeyToBase64(privateKey *rsa.PrivateKey) (privateKey64 string)
func RSAPrivateKeyToDer ¶ added in v0.0.9
func RSAPrivateKeyToDer(privateKey *rsa.PrivateKey) (privateKeyDer []byte)
func RSAPrivateKeyToHex ¶ added in v0.0.8
func RSAPrivateKeyToHex(privateKey *rsa.PrivateKey) (privateKey64 string)
func RSAPrivateKeyToPem ¶ added in v0.0.8
func RSAPrivateKeyToPem(privateKey *rsa.PrivateKey) (privateKeyPem string)
func RSAPublicKeyFromBase64 ¶ added in v0.0.8
func RSAPublicKeyFromDer ¶ added in v0.0.9
func RSAPublicKeyFromHex ¶ added in v0.0.8
func RSAPublicKeyFromPem ¶ added in v0.0.8
func RSAPublicKeyToBase64 ¶ added in v0.0.8
func RSAPublicKeyToDer ¶ added in v0.0.9
func RSAPublicKeyToHex ¶ added in v0.0.8
func RSAPublicKeyToPem ¶ added in v0.0.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.