- Add
Z.Crypto.SafeMem
module to improve memory safety:- Add
Password
type to enforce compare password by using password hash. - Add
CEBytes
with contant time equal comparing. - Add
Secret
with OS locking and auto zeroing.
- Add
- Add
StreamCipher
toZ.Crypto.Cipher
, changecipherBIO
tostreamCipherBIO
to useStreamCipher
only. - Rewrite AEAD/cipher mode interface to expose AEAD API only.
- Add more tests.
- Change
cipherBIO
to buffer an extra chunk so that the last chunk is larger than minimum final chunk size, add a file encryption example.
- Change
EMEPadding
toEncParam
, addSM2EncParam
. - Change
EMSA
toSignParam
, addEd25519Pure
,Ed25519ph
,Ed25519Hash
,SM2SignParam
. - Change PubKey decrypt, verify type to
IO
.
- Simplify
KeyType
inZ.Crypto.PubKey
. - Add
sm2Encrypt
,sm2Decrypt
toZ.Crypto.PubKey
. - Add
systemCertStore
,mozillaCertStore
toZ.Crypto.X509
.
- Export
KeySpec
fromZ.Crypto.Cipher
.
- The very first release.