| Copyright | (c) Leo D 2023 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | leo@apotheca.io |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Botan.Bindings.PubKey.DSA
Description
Synopsis
- botan_privkey_create_dsa :: Ptr BotanPrivKey -> BotanRNG -> CSize -> CSize -> IO CInt
- botan_privkey_load_dsa :: Ptr BotanPrivKey -> BotanMP -> BotanMP -> BotanMP -> BotanMP -> IO CInt
- botan_pubkey_load_dsa :: Ptr BotanPubKey -> BotanMP -> BotanMP -> BotanMP -> BotanMP -> IO CInt
Documentation
botan_privkey_create_dsa Source #
Arguments
| :: Ptr BotanPrivKey | key: handler to the resulting key |
| -> BotanRNG | rng: initialized PRNG |
| -> CSize | pbits: length of the key in bits. Must be between in range (1024, 3072)
and multiple of 64. Bit size of the prime |
| -> CSize | qbits: qbits order of the subgroup. Must be in range (160, 256) and multiple of 8 |
| -> IO CInt | BOTAN_FFI_SUCCESS Success, |
Generates DSA key pair. Gives to a caller control over key length
and order of a subgroup q.