packages feed

uuid-crypto 1.1.1.0 → 1.2.0.0

raw patch · 3 files changed

+7/−4 lines, 3 filesdep ~cryptoidsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: cryptoids

API changes (from Hackage documentation)

+ Data.UUID.Cryptographic: PlaintextIsWrongLength :: Int -> CryptoIDError
- Data.UUID.Cryptographic: CiphertextConversionFailed :: CryptoIDError
+ Data.UUID.Cryptographic: CiphertextConversionFailed :: ByteString -> CryptoIDError
- Data.UUID.Cryptographic: DeserializationError :: (ByteString, ByteOffset, String) -> CryptoIDError
+ Data.UUID.Cryptographic: DeserializationError :: CryptoIDError

Files

changes.md view
@@ -1,3 +1,6 @@+# 1.2.0.0+    - Pad plaintext before encryption, allowing encryption of payloads shorter than 128 bits+ # 1.1.1.0     - Switch to using the new 'Data.CryptoID.Poly' 
src/Data/UUID/Cryptographic.hs view
@@ -53,7 +53,7 @@            , Binary a            , MonadThrow m            ) => CryptoIDKey -> a -> m (CryptoUUID namespace)-encrypt = Poly.encrypt $ maybe (throwM CiphertextConversionFailed) return . fromByteString . Lazy.ByteString.fromStrict+encrypt = Poly.encrypt (Just 16) $ \str -> maybe (throwM $ CiphertextConversionFailed str) return . fromByteString $ Lazy.ByteString.fromStrict str   -- | Decrypt an arbitrary serializable value@@ -68,7 +68,7 @@            ) => CryptoIDKey -> CryptoUUID namespace -> m a decrypt = Poly.decrypt $ check . decodeOrFail . toByteString   where-    check (Left err) = throwM $ DeserializationError err+    check (Left _) = throwM DeserializationError     check (Right (rem, _, res))       | Lazy.ByteString.all (== 0) rem = return res       | otherwise = throwM InvalidNamespaceDetected
uuid-crypto.cabal view
@@ -1,5 +1,5 @@ name: uuid-crypto-version: 1.1.1.0+version: 1.2.0.0 cabal-version: >=1.10 build-type: Simple license: BSD3@@ -22,7 +22,7 @@     build-depends:         base >=4.9 && <4.11,         cryptoids-types ==0.0.0,-        cryptoids ==0.2.0.*,+        cryptoids ==0.3.0.*,         uuid >=1.3.13 && <1.4,         binary >=0.8.3.0 && <0.9,         bytestring >=0.10.8.1 && <0.11,