Versions in this module Expand all Collapse all v1 v1.0.2 Feb 27, 2024 v1.0.1 Feb 27, 2024 Changes in this version + func DecryptData(key, data []byte, e etype.EType) ([]byte, error) + func DecryptMessage(key, ciphertext []byte, usage uint32, e etype.EType) ([]byte, error) + func DeriveKey(protocolKey, label []byte, e etype.EType) []byte + func DeriveRandom(protocolKey, usage []byte, 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 GetIntegityHash(iv, c, key []byte, usage uint32, e etype.EType) ([]byte, error) + func GetSaltP(salt, ename string) string + func KDF_HMAC_SHA2(protocolKey, label, context []byte, kl int, e etype.EType) []byte + func RandomToKey(b []byte) []byte + func S2KparamsToItertions(s2kparams string) (int, error) + func StringToKey(secret, salt, s2kparams string, e etype.EType) ([]byte, error) + func StringToKeyIter(secret, salt string, iterations int, e etype.EType) ([]byte, error) + func StringToPBKDF2(secret, salt string, iterations int, e etype.EType) []byte + func VerifyIntegrity(key, ct []byte, usage uint32, etype etype.EType) bool