Documentation ¶
Index ¶
- Variables
- func DecryptRSAESOAEP(key *rsa.PrivateKey, keyHash hash.Hash, encrypted []byte) ([]byte, error)
- func DecryptRSAESPKCS1V15(key *rsa.PrivateKey, encrypted []byte) ([]byte, error)deprecated
- func DerivePBES2(hash crypto.Hash, salt, password []byte, iterations int) ([]byte, error)
- func EncryptRSAESOAEP(key *rsa.PublicKey, keyHash hash.Hash, cek []byte) ([]byte, error)
- func EncryptRSAESPKCS1V15(key *rsa.PublicKey, cek []byte) ([]byte, error)deprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedHash = errors.New("unsupported hash")
Functions ¶
func DecryptRSAESOAEP ¶
DecryptRSAESOAEP decrypts the CEK using RSAES-OAEP algorithm.
func DecryptRSAESPKCS1V15
deprecated
func DecryptRSAESPKCS1V15(key *rsa.PrivateKey, encrypted []byte) ([]byte, error)
DecryptRSAESPKCS1V15 decrypts the CEK using RSAES-PKCS1-v1.5 algorithm.
Deprecated: RSASSA PKCS #1 v1.5 has been deprecated by the standards, and is only included for backwards compatibility. Use DecryptRSAESOAEP instead.
func DerivePBES2 ¶
DerivePBES2 derives a Key Wrapping Key (KWK) from a password using PBES2.
func EncryptRSAESOAEP ¶
EncryptRSAESOAEP encrypts the CEK using RSAES-OAEP algorithm.
func EncryptRSAESPKCS1V15
deprecated
EncryptRSAESPKCS1V15 encrypts the CEK using RSAES-PKCS1-v1.5 algorithm.
Deprecated: RSASSA PKCS #1 v1.5 has been deprecated by the standards, and is only included for backwards compatibility. Use EncryptRSAESOAEP instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.