Documentation ¶
Overview ¶
Package rfc3962 provides encryption and checksum methods as specified in RFC 3962
Index ¶
- func DecryptData(key, data []byte, e etype.EType) ([]byte, error)
- func DecryptMessage(key, ciphertext []byte, usage uint32, e etype.EType) ([]byte, error)
- func EncryptData(key, data []byte, e etype.EType) ([]byte, []byte, error)
- func EncryptMessage(key, message []byte, usage uint32, e etype.EType) ([]byte, []byte, error)
- func S2KparamsToItertions(s2kparams string) (int64, error)
- func StringToKey(secret, salt, s2kparams string, e etype.EType) ([]byte, error)
- func StringToKeyIter(secret, salt string, iterations int64, e etype.EType) ([]byte, error)
- func StringToPBKDF2(secret, salt string, iterations int64, e etype.EType) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
DecryptData decrypts the data provided using the methods specific to the etype provided as defined in RFC 3962.
func DecryptMessage ¶
DecryptMessage decrypts the message provided using the methods specific to the etype provided as defined in RFC 3962. The integrity of the message is also verified.
func EncryptData ¶
EncryptData encrypts the data provided using methods specific to the etype provided as defined in RFC 3962.
func EncryptMessage ¶
EncryptMessage encrypts the message provided using the methods specific to the etype provided as defined in RFC 3962. The encrypted data is concatenated with its integrity hash to create an encrypted message.
func S2KparamsToItertions ¶ added in v1.5.5
S2KparamsToItertions converts the string representation of iterations to an integer
func StringToKey ¶
StringToKey returns a key derived from the string provided according to the definition in RFC 3961.
func StringToKeyIter ¶
StringToKeyIter returns a key derived from the string provided according to the definition in RFC 3961.
Types ¶
This section is empty.