Copyright | (c) Leo D 2023 |
---|---|
License | BSD-3-Clause |
Maintainer | leo@apotheca.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- newtype Verify = MkVerify {
- getVerifyForeignPtr :: ForeignPtr BotanPKOpVerifyStruct
- withVerify :: Verify -> (BotanPKOpVerify -> IO a) -> IO a
- verifyCreate :: PubKey -> EMSAName -> SigningFlags -> IO Verify
- verifyDestroy :: Verify -> IO ()
- verifyUpdate :: Verify -> ByteString -> IO ()
- verifyFinish :: Verify -> ByteString -> IO Bool
Public key signature verification
MkVerify | |
|
:: PubKey | key |
-> EMSAName | hash_and_padding |
-> SigningFlags | flags |
-> IO Verify | op |
verifyDestroy :: Verify -> IO () Source #
:: Verify | op |
-> ByteString | in[] |
-> IO () |
:: Verify | op |
-> ByteString | sig[] |
-> IO Bool |