diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 17:08:44 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 17:08:44 -0400 |
commit | 2152e7728db7e0cf86ea23d29a05294af24b6898 (patch) | |
tree | 68d29e2afe6a92391350e36ef67c4f7489ed715d /src/Codec | |
parent | 5214c3f61d3aaaf18baff8020a066cc2160d612d (diff) |
Begin cleaning up internal modules
Clarify the division between internal and external modules in the source
by consolidating all internal modules except Data.Digest.Internal into a
flatter BTLS directory.
Diffstat (limited to 'src/Codec')
-rw-r--r-- | src/Codec/Crypto/HKDF.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Codec/Crypto/HKDF.hs b/src/Codec/Crypto/HKDF.hs index 1c1dbda..8c1db0a 100644 --- a/src/Codec/Crypto/HKDF.hs +++ b/src/Codec/Crypto/HKDF.hs @@ -24,11 +24,11 @@ import Foreign.C.Types import Foreign.Marshal.Unsafe (unsafeLocalState) import Unsafe.Coerce (unsafeCoerce) -import Data.Digest.Internal (Algorithm(Algorithm)) -import Internal.Digest (evpMaxMDSize) -import Internal.HKDF -import Types +import BTLS.BoringSSL.Digest (evpMaxMDSize) +import BTLS.BoringSSL.HKDF +import BTLS.Types (AssociatedData(AssociatedData), Salt(Salt), SecretKey(SecretKey), noSalt) +import Data.Digest.Internal (Algorithm(Algorithm)) -- | Computes an HKDF pseudorandom key (PRK) as specified by RFC 5869. extract :: Algorithm -> Salt -> SecretKey -> SecretKey |