Security Scol plugin
|
#include <gfpcrypt.h>
Public Member Functions | |
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API | StaticAlgorithmName () |
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. | |
virtual bool | IsDeterministic () const |
Signature scheme flag. | |
NR algorithm.
T | FieldElement type or class |
FieldElement T
can be Integer, ECP or EC2N.
Definition at line 547 of file gfpcrypt.h.
|
inlinevirtual |
Definition at line 552 of file gfpcrypt.h.
|
inlinevirtual |
Sign a message using a private key.
params | GroupParameters |
privateKey | private key |
k | signing exponent |
e | encoded message |
r | r part of signature |
s | s part of signature |
Implements DL_ElgamalLikeSignatureAlgorithm< T >.
Definition at line 554 of file gfpcrypt.h.
|
inline |
Definition at line 550 of file gfpcrypt.h.
|
inlinevirtual |
Verify a message using a public key.
params | GroupParameters |
publicKey | public key |
e | encoded message |
r | r part of signature |
s | s part of signature |
Implements DL_ElgamalLikeSignatureAlgorithm< T >.
Definition at line 562 of file gfpcrypt.h.