Security Scol plugin
Public Member Functions | List of all members
DL_Algorithm_NR< T > Class Template Reference

NR algorithm. More...

#include <gfpcrypt.h>

Inheritance diagram for DL_Algorithm_NR< T >:
DL_ElgamalLikeSignatureAlgorithm< T >

Public Member Functions

CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API StaticAlgorithmName ()
 
void Sign (const DL_GroupParameters< T > &params, 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 > &params, 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 > &params, const DL_PublicKey< T > &publicKey, const Integer &r, const Integer &s) const
 Recover a Presignature.
 
virtual size_t RLen (const DL_GroupParameters< T > &params) const
 Retrieve R length.
 
virtual size_t SLen (const DL_GroupParameters< T > &params) const
 Retrieve S length.
 
virtual bool IsDeterministic () const
 Signature scheme flag.
 

Detailed Description

template<class T>
class DL_Algorithm_NR< T >

NR algorithm.

Template Parameters
TFieldElement type or class

FieldElement T can be Integer, ECP or EC2N.

Definition at line 547 of file gfpcrypt.h.

Constructor & Destructor Documentation

◆ ~DL_Algorithm_NR()

template<class T >
virtual DL_Algorithm_NR< T >::~DL_Algorithm_NR ( )
inlinevirtual

Definition at line 552 of file gfpcrypt.h.

Member Function Documentation

◆ Sign()

template<class T >
void DL_Algorithm_NR< T >::Sign ( const DL_GroupParameters< T > &  params,
const Integer privateKey,
const Integer k,
const Integer e,
Integer r,
Integer s 
) const
inlinevirtual

Sign a message using a private key.

Parameters
paramsGroupParameters
privateKeyprivate key
ksigning exponent
eencoded message
rr part of signature
ss part of signature

Implements DL_ElgamalLikeSignatureAlgorithm< T >.

Definition at line 554 of file gfpcrypt.h.

◆ StaticAlgorithmName()

template<class T >
CRYPTOPP_STATIC_CONSTEXPR const char *CRYPTOPP_API DL_Algorithm_NR< T >::StaticAlgorithmName ( )
inline

Definition at line 550 of file gfpcrypt.h.

◆ Verify()

template<class T >
bool DL_Algorithm_NR< T >::Verify ( const DL_GroupParameters< T > &  params,
const DL_PublicKey< T > &  publicKey,
const Integer e,
const Integer r,
const Integer s 
) const
inlinevirtual

Verify a message using a public key.

Parameters
paramsGroupParameters
publicKeypublic key
eencoded message
rr part of signature
ss part of signature

Implements DL_ElgamalLikeSignatureAlgorithm< T >.

Definition at line 562 of file gfpcrypt.h.


The documentation for this class was generated from the following file: