| Copyright | (c) Max Amanshauser 2021 |
|---|---|
| License | MIT |
| Maintainer | max@lambdalifting.org |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Saltine.Internal.OneTimeAuth
Description
Synopsis
- onetimeauth_bytes :: Int
- onetimeauth_keybytes :: Int
- c_onetimeauth :: Ptr CChar -> Ptr CChar -> CULLong -> Ptr CChar -> IO CInt
- c_onetimeauth_verify :: Ptr CChar -> Ptr CChar -> CULLong -> Ptr CChar -> CInt
- newtype Key = Key {
- unKey :: ByteString
- newtype Authenticator = Au {
- unAu :: ByteString
Documentation
onetimeauth_bytes :: Int Source #
Size of a crypto_onetimeauth authenticator.
onetimeauth_keybytes :: Int Source #
Size of a crypto_onetimeauth authenticator key.
Arguments
| :: Ptr CChar | Constant authenticator buffer |
| -> Ptr CChar | Constant message buffer |
| -> CULLong | Length of message buffer |
| -> Ptr CChar | Constant key buffer |
| -> CInt | Success if 0, failure if -1 |
We don't even include this in the IO monad since all of the buffers are constant.
An opaque auth cryptographic key.
Constructors
| Key | |
Fields
| |
Instances
| Data Key Source # | |
Defined in Crypto.Saltine.Internal.OneTimeAuth Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Key -> c Key # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Key # dataTypeOf :: Key -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Key) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Key) # gmapT :: (forall b. Data b => b -> b) -> Key -> Key # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r # gmapQ :: (forall d. Data d => d -> u) -> Key -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Key -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Key -> m Key # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key # | |
| Generic Key Source # | |
| Show Key Source # | |
| NFData Key Source # | |
Defined in Crypto.Saltine.Internal.OneTimeAuth | |
| Eq Key Source # | |
| Ord Key Source # | |
| Hashable Key Source # | |
Defined in Crypto.Saltine.Internal.OneTimeAuth | |
| IsEncoding Key Source # | |
Defined in Crypto.Saltine.Internal.OneTimeAuth Methods encode :: Key -> ByteString Source # decode :: ByteString -> Maybe Key Source # encoded :: (Choice p, Applicative f) => p Key (f Key) -> p ByteString (f ByteString) Source # | |
| type Rep Key Source # | |
Defined in Crypto.Saltine.Internal.OneTimeAuth type Rep Key = D1 ('MetaData "Key" "Crypto.Saltine.Internal.OneTimeAuth" "saltine-0.2.1.0-inplace" 'True) (C1 ('MetaCons "Key" 'PrefixI 'True) (S1 ('MetaSel ('Just "unKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) | |
newtype Authenticator Source #
An opaque auth authenticator.
Constructors
| Au | |
Fields
| |