diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 16:43:43 -0400 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-08-02 16:43:43 -0400 |
commit | a70d7fa4a478753e0ab765fb05559e1769760232 (patch) | |
tree | 9e1385446eb1914a5c1eed5f0a434a0e5549365e /src/Types.hs | |
parent | c6466a719d784054a82578c619e7dfff613e777b (diff) |
Codec.Crypto.HKDF: Add test 7 from RFC 5869
Diffstat (limited to 'src/Types.hs')
-rw-r--r-- | src/Types.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Types.hs b/src/Types.hs index a625c3e..6b430c2 100644 --- a/src/Types.hs +++ b/src/Types.hs @@ -13,16 +13,20 @@ -- the License. module Types - ( Salt(Salt) + ( Salt(Salt), noSalt , SecretKey(SecretKey) ) where import Data.ByteString (ByteString) +import qualified Data.ByteString as ByteString -- | A salt. Equality comparisons on this type are variable-time. newtype Salt = Salt ByteString deriving (Eq, Ord, Show) +noSalt :: Salt +noSalt = Salt ByteString.empty + -- | A secret key used as input to a cipher or HMAC. Equality comparisons on -- this type are variable-time. newtype SecretKey = SecretKey ByteString |