aboutsummaryrefslogtreecommitdiff
path: root/src/Types.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Types.hs')
-rw-r--r--src/Types.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Types.hs b/src/Types.hs
index 6b430c2..3c0f350 100644
--- a/src/Types.hs
+++ b/src/Types.hs
@@ -13,13 +13,19 @@
-- the License.
module Types
- ( Salt(Salt), noSalt
+ ( AssociatedData(AssociatedData)
+ , Salt(Salt), noSalt
, SecretKey(SecretKey)
) where
import Data.ByteString (ByteString)
import qualified Data.ByteString as ByteString
+-- | Context or application-specific information. Equality comparisons on this
+-- type are variable-time.
+newtype AssociatedData = AssociatedData ByteString
+ deriving (Eq, Ord, Show)
+
-- | A salt. Equality comparisons on this type are variable-time.
newtype Salt = Salt ByteString
deriving (Eq, Ord, Show)