Safe Haskell | None |
---|
Type classes for use with the JOSE modules.
- class Key k where
- sign :: Alg -> k -> ByteString -> ByteString
- verify :: Alg -> k -> ByteString -> ByteString -> Bool
Documentation
A Key that can sign messages and validate signatures according
to a given Alg
.
sign :: Alg -> k -> ByteString -> ByteStringSource
verify :: Alg -> k -> ByteString -> ByteString -> BoolSource