Documentation
¶
Index ¶
Constants ¶
View Source
const ( AES = "AES" RSA = "RSA" )
consts
Variables ¶
This section is empty.
Functions ¶
func NewDecryptor ¶
NewDecryptor creates a new decryptor
func NewEncryptor ¶
NewEncryptor creates a new encryptor
Types ¶
type AESCBCPKCS7Opts ¶
type AESCBCPKCS7Opts struct {
// IV is the initialization vector to be used by the underlying cihper.
IV []byte
// PRNG is an interface of a PRNG to be used by the underlying cihper.
PRNG io.Reader
}
AESCBCPKCS7Opts contains options for AES encryption in CBC mode with PKCS7 padding.
type RSAOAEPOpts ¶
RSAOAEPOpts contains options for RSA-OAEP encryption.
type RSAPKCS1v15Opts ¶
type RSAPKCS1v15Opts struct{}
RSAPKCS1v15Opts contains options for RSA and the padding scheme from PKCS#1 v1.5
Click to show internal directories.
Click to hide internal directories.