Copyright | (c) Leo D 2023 |
---|---|
License | BSD-3-Clause |
Maintainer | leo@apotheca.io |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BotanPKOpKEMEncryptStruct
- newtype BotanPKOpKEMEncrypt = MkBotanPKOpKEMEncrypt {}
- botan_pk_op_kem_encrypt_destroy :: FinalizerPtr BotanPKOpKEMEncryptStruct
- botan_pk_op_kem_encrypt_create :: Ptr BotanPKOpKEMEncrypt -> BotanPubKey -> ConstPtr CChar -> IO CInt
- botan_pk_op_kem_encrypt_shared_key_length :: BotanPKOpKEMEncrypt -> CSize -> Ptr CSize -> IO CInt
- botan_pk_op_kem_encrypt_encapsulated_key_length :: BotanPKOpKEMEncrypt -> Ptr CSize -> IO CInt
- botan_pk_op_kem_encrypt_create_shared_key :: BotanPKOpKEMEncrypt -> BotanRNG -> ConstPtr Word8 -> CSize -> CSize -> Ptr Word8 -> Ptr CSize -> Ptr Word8 -> Ptr CSize -> IO CInt
- data BotanPKOpKEMDecryptStruct
- newtype BotanPKOpKEMDecrypt = MkBotanPKOpKEMDecrypt {}
- botan_pk_op_kem_decrypt_destroy :: FinalizerPtr BotanPKOpKEMDecryptStruct
- botan_pk_op_kem_decrypt_create :: Ptr BotanPKOpKEMDecrypt -> BotanPrivKey -> ConstPtr CChar -> IO CInt
- botan_pk_op_kem_decrypt_shared_key_length :: BotanPKOpKEMDecrypt -> CSize -> Ptr CSize -> IO CInt
- botan_pk_op_kem_decrypt_shared_key :: BotanPKOpKEMDecrypt -> ConstPtr Word8 -> CSize -> ConstPtr Word8 -> CSize -> CSize -> Ptr Word8 -> Ptr CSize -> IO CInt
Documentation
data BotanPKOpKEMEncryptStruct Source #
Opaque KEM encrypt struct
newtype BotanPKOpKEMEncrypt Source #
Botan KEM encrypt object
Instances
botan_pk_op_kem_encrypt_destroy :: FinalizerPtr BotanPKOpKEMEncryptStruct Source #
Destroy a KEM encrypt object
botan_pk_op_kem_encrypt_create Source #
:: Ptr BotanPKOpKEMEncrypt | op |
-> BotanPubKey | key |
-> ConstPtr CChar | kdf |
-> IO CInt |
botan_pk_op_kem_encrypt_encapsulated_key_length Source #
:: BotanPKOpKEMEncrypt | op |
-> Ptr CSize | output_encapsulated_key_length |
-> IO CInt |
data BotanPKOpKEMDecryptStruct Source #
Opaque KEM decrypt struct
newtype BotanPKOpKEMDecrypt Source #
Botan KEM decrypt object
Instances
botan_pk_op_kem_decrypt_destroy :: FinalizerPtr BotanPKOpKEMDecryptStruct Source #
Destroy a KEM decrypt object
botan_pk_op_kem_decrypt_create Source #
:: Ptr BotanPKOpKEMDecrypt | op |
-> BotanPrivKey | key |
-> ConstPtr CChar | kdf |
-> IO CInt |