Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
DSA signature algorithm based on RFC 6979. More...
#include <gfpcrypt.h>
Public Member Functions | |
bool | IsProbabilistic () const |
bool | IsDeterministic () const |
Signature scheme flag. | |
Integer | GenerateRandom (const Integer &x, const Integer &q, const Integer &e) const |
Generate k. | |
Public Member Functions inherited from DL_Algorithm_GDSA< T > | |
void | Sign (const DL_GroupParameters< T > ¶ms, const Integer &x, const Integer &k, const Integer &e, Integer &r, Integer &s) const |
Sign a message using a private key. | |
bool | Verify (const DL_GroupParameters< T > ¶ms, const DL_PublicKey< T > &publicKey, const Integer &e, const Integer &r, const Integer &s) const |
Verify a message using a public key. | |
Public Member Functions inherited from DL_ElgamalLikeSignatureAlgorithm< T > | |
virtual Integer | RecoverPresignature (const DL_GroupParameters< T > ¶ms, const DL_PublicKey< T > &publicKey, const Integer &r, const Integer &s) const |
Recover a Presignature. | |
virtual size_t | RLen (const DL_GroupParameters< T > ¶ms) const |
Retrieve R length. | |
virtual size_t | SLen (const DL_GroupParameters< T > ¶ms) const |
Retrieve S length. | |
Static Public Member Functions | |
static const char * | StaticAlgorithmName () |
Static Public Member Functions inherited from DL_Algorithm_GDSA< T > | |
static const char * | StaticAlgorithmName () |
DSA signature algorithm based on RFC 6979.
T | FieldElement type or class |
H | HashTransformation derived class |
FieldElement T
can be Integer, ECP or EC2N.
Definition at line 346 of file gfpcrypt.h.
|
inlinevirtual |
Definition at line 351 of file gfpcrypt.h.
|
inlinestatic |
Definition at line 349 of file gfpcrypt.h.
|
inline |
Definition at line 353 of file gfpcrypt.h.
|
inlinevirtual |
Signature scheme flag.
IsDeterministic() is provided for DL signers. It is used by RFC 6979 signature schemes.
Reimplemented from DL_ElgamalLikeSignatureAlgorithm< T >.
Definition at line 355 of file gfpcrypt.h.
|
inlinevirtual |
Generate k.
x | private key |
q | subgroup generator |
e | encoded message |
Implements DeterministicSignatureAlgorithm.
Definition at line 359 of file gfpcrypt.h.