Versions in this module Expand all Collapse all v1 v1.1.0 Sep 15, 2020 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 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