diff options
Diffstat (limited to 'src/lib/pubkey/rfc6979/rfc6979.h')
-rw-r--r-- | src/lib/pubkey/rfc6979/rfc6979.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/pubkey/rfc6979/rfc6979.h b/src/lib/pubkey/rfc6979/rfc6979.h new file mode 100644 index 000000000..1084fe623 --- /dev/null +++ b/src/lib/pubkey/rfc6979/rfc6979.h @@ -0,0 +1,29 @@ +/* +* RFC 6979 Deterministic Nonce Generator +* (C) 2014 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#ifndef BOTAN_RFC6979_GENERATOR__ +#define BOTAN_RFC6979_GENERATOR__ + +#include <botan/bigint.h> +#include <string> + +namespace Botan { + +/** +* @param x the secret (EC)DSA key +* @param q the group order +* @param h the message hash already reduced mod q +* @param hash the hash function used to generate h +*/ +BigInt BOTAN_DLL generate_rfc6979_nonce(const BigInt& x, + const BigInt& q, + const BigInt& h, + const std::string& hash); + +} + +#endif |