cryptonite 0.14 → 0.15
raw patch · 4 files changed
+7/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- Crypto/PubKey/DH.hs +1/−1
- Crypto/PubKey/ECC/DH.hs +1/−1
- cryptonite.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+## 0.15++* Fix serialization of DH and ECDH+ ## 0.14 * Reduce size of SHA3 context instead of allocating all-size fit memory. save
Crypto/PubKey/DH.hs view
@@ -76,4 +76,4 @@ -- | generate a shared key using our private number and the other party public number getShared :: Params -> PrivateNumber -> PublicNumber -> SharedKey-getShared (Params p _ bits) (PrivateNumber x) (PublicNumber y) = SharedKey $ i2ospOf_ (bits + 7 `div` 8) $ expSafe y x p+getShared (Params p _ bits) (PrivateNumber x) (PublicNumber y) = SharedKey $ i2ospOf_ ((bits + 7) `div` 8) $ expSafe y x p
Crypto/PubKey/ECC/DH.hs view
@@ -42,7 +42,7 @@ -- | Generating a shared key using our private number and -- the other party public point. getShared :: Curve -> PrivateNumber -> PublicPoint -> SharedKey-getShared curve db qa = SharedKey $ i2ospOf_ (nbBits + 7 `div` 8) x+getShared curve db qa = SharedKey $ i2ospOf_ ((nbBits + 7) `div` 8) x where Point x _ = pointMul curve db qa nbBits = curveSizeBits curve
cryptonite.cabal view
@@ -1,5 +1,5 @@ Name: cryptonite-Version: 0.14+Version: 0.15 Synopsis: Cryptography Primitives sink Description: A repository of cryptographic primitives.