From 3f453d907ab8da6d4225fff8691c90a7d19fc184 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 25 Oct 2017 19:29:21 +0200 Subject: [PATCH] Fix documentation typo in uuid-crypto --- uuid-crypto/changes.md | 3 +++ uuid-crypto/src/Data/UUID/Cryptographic.hs | 4 ++-- uuid-crypto/uuid-crypto.cabal | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/uuid-crypto/changes.md b/uuid-crypto/changes.md index 85329de..7aaf13a 100644 --- a/uuid-crypto/changes.md +++ b/uuid-crypto/changes.md @@ -1,3 +1,6 @@ +# 1.3.0.1 + - Fix documentation typo + # 1.3.0.0 - Fix decryption diff --git a/uuid-crypto/src/Data/UUID/Cryptographic.hs b/uuid-crypto/src/Data/UUID/Cryptographic.hs index f8d3e52..bad2a16 100644 --- a/uuid-crypto/src/Data/UUID/Cryptographic.hs +++ b/uuid-crypto/src/Data/UUID/Cryptographic.hs @@ -7,8 +7,8 @@ License: BSD3 Given a value of a serializable type (like 'Int') we perform serialization and compute a cryptographic hash of the associated namespace (carried as a phantom type of kind 'Symbol'). -The serialized payload is then encrypted using the a symmetric cipher in CBC -mode using the hashed namespace as an initialization vector (IV). +The serialized payload is then encrypted using a symmetric cipher in CBC mode +using the hashed namespace as an initialization vector (IV). Since the serialized payload is padded to the length of an UUID we can detect namespace mismatches by checking that all bytes expected to have been inserted diff --git a/uuid-crypto/uuid-crypto.cabal b/uuid-crypto/uuid-crypto.cabal index a0334d5..6af244f 100644 --- a/uuid-crypto/uuid-crypto.cabal +++ b/uuid-crypto/uuid-crypto.cabal @@ -1,5 +1,5 @@ name: uuid-crypto -version: 1.3.0.0 +version: 1.3.0.1 synopsis: Reversable and secure encoding of object ids as uuids license: BSD3 license-file: LICENSE