|
Crypto++
8.4
Free C++ class library of cryptographic schemes
|
Interface for public-key signers and verifiers. More...
Inheritance diagram for PK_SignatureScheme:Classes | |
| class | InvalidKeyLength |
| Exception throw when the private or public key has a length that can't be used. More... | |
| class | KeyTooShort |
| Exception throw when the private or public key is too short to sign or verify. More... | |
Public Member Functions | |
| virtual size_t | SignatureLength () const =0 |
| Provides the signature length if it only depends on the key. More... | |
| virtual size_t | MaxSignatureLength (size_t recoverablePartLength=0) const |
| Provides the maximum signature length produced given the length of the recoverable message part. More... | |
| virtual size_t | MaxRecoverableLength () const =0 |
| Provides the length of longest message that can be recovered. More... | |
| virtual size_t | MaxRecoverableLengthFromSignatureLength (size_t signatureLength) const =0 |
| Provides the length of longest message that can be recovered from a signature of given length. More... | |
| virtual bool | IsProbabilistic () const =0 |
| Determines whether a signature scheme requires a random number generator. More... | |
| virtual bool | AllowNonrecoverablePart () const =0 |
| Determines whether the non-recoverable message part can be signed. More... | |
| virtual bool | SignatureUpfront () const |
| Determines whether the signature must be input before the message. More... | |
| virtual bool | RecoverablePartFirst () const =0 |
| Determines whether the recoverable part must be input before the non-recoverable part. More... | |
Interface for public-key signers and verifiers.
This class provides an interface common to signers and verifiers for querying scheme properties
Definition at line 2767 of file cryptlib.h.
|
pure virtual |
Provides the signature length if it only depends on the key.
Implemented in ed25519Verifier, and ed25519Signer.
|
inlinevirtual |
Provides the maximum signature length produced given the length of the recoverable message part.
| recoverablePartLength | the length of the recoverable message part, in bytes |
Definition at line 2800 of file cryptlib.h.
|
pure virtual |
Provides the length of longest message that can be recovered.
Implemented in ed25519Verifier, and ed25519Signer.
|
pure virtual |
Provides the length of longest message that can be recovered from a signature of given length.
| signatureLength | the length of the signature, in bytes |
Implemented in ed25519Verifier, ed25519Signer, DL_SignatureSchemeBase< PK_Signer, DL_PrivateKey< SCHEME_OPTIONS::Element > >, DL_SignatureSchemeBase< PK_Verifier, DL_PublicKey< SCHEME_OPTIONS::Element > >, DL_SignatureSchemeBase< PK_Verifier, DL_PublicKey< T > >, and DL_SignatureSchemeBase< PK_Signer, DL_PrivateKey< T > >.
|
pure virtual |
Determines whether a signature scheme requires a random number generator.
Implemented in ed25519Verifier, and ed25519Signer.
|
pure virtual |
Determines whether the non-recoverable message part can be signed.
Implemented in ed25519Verifier, and ed25519Signer.
|
inlinevirtual |
Determines whether the signature must be input before the message.
Definition at line 2831 of file cryptlib.h.
|
pure virtual |
Determines whether the recoverable part must be input before the non-recoverable part.
Implemented in ed25519Verifier, and ed25519Signer.