packages feed

cropty 0.1.0.0 → 0.1.1.0

raw patch · 2 files changed

+9/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Cropty: generateKey :: IO Key
+ Cropty: generateKeyOfSize :: Int -> IO Key

Files

cropty.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.4  name:                cropty-version:             0.1.0.0+version:             0.1.1.0 synopsis:            Encryption and decryption description:         Encryption and decryption. homepage:            https://github.com/SamuelSchlesinger/cropty
src/Cropty.hs view
@@ -39,6 +39,8 @@   , generatePrivateKeyWithPublicExponent     -- * Symmetric Encryption   , Key (Key, keyBytes)+  , generateKey+  , generateKeyOfSize   , encryptSym   , SymEncryptionException (..)   , decryptSym@@ -174,8 +176,12 @@  -- | Generate a new 'Key' generateKey :: IO Key-generateKey =-    Key <$> Random.getRandomBytes 32+generateKey = generateKeyOfSize 32++-- | Generates a new 'Key' with the given size+generateKeyOfSize :: Int -> IO Key+generateKeyOfSize n =+  Key <$> Random.getRandomBytes n  data SymEncryptionException = SymEncryptionException'CryptoniteError CryptoError   deriving Show