Documentation ¶
Index ¶
- Variables
- func AESDecryptLocal(encrypted []byte, localKey []byte, msgKey []byte) (decrypted []byte, err error)
- func CreateLocalKey(pass []byte, salt []byte) []byte
- func CreateLocalLegacyKey(pass []byte, salt []byte) []byte
- func DecryptLocal(encryptedMsg []byte, localKey []byte) (decrypted []byte, err error)
- func PrepareAESoldmtp(localKey []byte, msgKey []byte) (key []byte, iv []byte)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LocalEncryptNoPwdIterCount = 4 LocalEncryptIterCount = 400 KStrongIterationsCount = 100000 )
Functions ¶
func AESDecryptLocal ¶
func CreateLocalKey ¶
CreateLocalKey creates the key used by DecryptLocal. The default password is empty.
func CreateLocalLegacyKey ¶
CreateLocalLegacyKey creates the key used by DecryptLocal. Legacy must use for settings.
func DecryptLocal ¶
DecryptLocal decrypts a message. localKey should be created at CreateLocalKey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.