diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 17:41:48 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 17:41:48 -0400 |
commit | fd9f2a18eeaa5361660caa4c23384ea38973b021 (patch) | |
tree | b91bb69368664de23a1119ce625ba80aa1baccfd /src/Codec | |
parent | 786d272fdf723987e582da16e511f067abf671a5 (diff) |
Eliminate Data.Digest.Internal
Move Data.Digest.Internal’s functions and types into more appropriate
modules. There’s now a single BTLS hierarchy that contains all internal
modules for the project.
Diffstat (limited to 'src/Codec')
-rw-r--r-- | src/Codec/Crypto/HKDF.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Codec/Crypto/HKDF.hs b/src/Codec/Crypto/HKDF.hs index 4547a52..2b1dc1f 100644 --- a/src/Codec/Crypto/HKDF.hs +++ b/src/Codec/Crypto/HKDF.hs @@ -26,8 +26,9 @@ import BTLS.BoringSSL.Digest (evpMaxMDSize) import BTLS.BoringSSL.HKDF import BTLS.Cast (asCUCharBuf) import BTLS.Types - (AssociatedData(AssociatedData), Salt(Salt), SecretKey(SecretKey), noSalt) -import Data.Digest.Internal (Algorithm(Algorithm)) + ( Algorithm(Algorithm), AssociatedData(AssociatedData), Salt(Salt) + , SecretKey(SecretKey), noSalt + ) -- | Computes an HKDF pseudorandom key (PRK) as specified by RFC 5869. extract :: Algorithm -> Salt -> SecretKey -> SecretKey |