raaz-crypto / raaz

Cryptographic library for Haskell
Apache License 2.0
68 stars 24 forks source link

Better interface for authenticated encryption #439

Closed piyush-kurur closed 3 years ago

piyush-kurur commented 3 years ago

The default lock and lockWith functions now use a randomly generated nouce for each call. This is both simpler (one argument less) and safer (reuse of key nounce prevented) interface.