aboutsummaryrefslogtreecommitdiff
path: root/src/Codec/Crypto/HKDF.hs
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-08-31 17:22:42 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-08-31 17:22:42 -0400
commit1349d89b03ccdae4594e3e5605eec83bc4efddb4 (patch)
treeb2e4f2b513f47c103d162a8b3172a675506f587c /src/Codec/Crypto/HKDF.hs
parentc9eb11a8b685dffa9035f324ca11a727cd16a128 (diff)
Remove some unnecessary `fromIntegral`s
Diffstat (limited to 'src/Codec/Crypto/HKDF.hs')
-rw-r--r--src/Codec/Crypto/HKDF.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Codec/Crypto/HKDF.hs b/src/Codec/Crypto/HKDF.hs
index a8c8fa9..5dd9b1f 100644
--- a/src/Codec/Crypto/HKDF.hs
+++ b/src/Codec/Crypto/HKDF.hs
@@ -47,5 +47,5 @@ expand (Algorithm md) (AssociatedData info) outLen (SecretKey secret) =
SecretKey $
unsafeLocalState $
allocaArray outLen $ \pOutKey -> do
- hkdfExpand pOutKey (fromIntegral outLen) md secret info
+ hkdfExpand pOutKey outLen md secret info
packCUStringLen (pOutKey, outLen)