Botan 3.3.0
Crypto and TLS for C&
Public Member Functions | List of all members
Botan::PK_Ops::Signature Class Referenceabstract

#include <pk_ops.h>

Inheritance diagram for Botan::PK_Ops::Signature:
Botan::PK_Ops::Signature_with_Hash Botan::XMSS_Signature_Operation

Public Member Functions

virtual AlgorithmIdentifier algorithm_identifier () const
 
virtual std::string hash_function () const =0
 
virtual secure_vector< uint8_t > sign (RandomNumberGenerator &rng)=0
 
virtual size_t signature_length () const =0
 
virtual void update (const uint8_t msg[], size_t msg_len)=0
 
virtual ~Signature ()=default
 

Detailed Description

Public key signature creation interface

Definition at line 94 of file pk_ops.h.

Constructor & Destructor Documentation

◆ ~Signature()

virtual Botan::PK_Ops::Signature::~Signature ( )
virtualdefault

Member Function Documentation

◆ algorithm_identifier()

AlgorithmIdentifier Botan::PK_Ops::Signature::algorithm_identifier ( ) const
virtual

Return an algorithm identifier associated with this signature scheme.

Default implementation throws an exception

Reimplemented in Botan::XMSS_Signature_Operation.

Definition at line 24 of file pk_ops.cpp.

24 {
25 throw Not_Implemented("This signature scheme does not have an algorithm identifier available");
26}

◆ hash_function()

virtual std::string Botan::PK_Ops::Signature::hash_function ( ) const
pure virtual

Return the hash function being used by this signer

Implemented in Botan::PK_Ops::Signature_with_Hash, and Botan::XMSS_Signature_Operation.

◆ sign()

virtual secure_vector< uint8_t > Botan::PK_Ops::Signature::sign ( RandomNumberGenerator & rng)
pure virtual

Perform a signature operation

Parameters
rnga random number generator

Implemented in Botan::XMSS_Signature_Operation, and Botan::PK_Ops::Signature_with_Hash.

◆ signature_length()

virtual size_t Botan::PK_Ops::Signature::signature_length ( ) const
pure virtual

Return an upper bound on the length of the output signature

Implemented in Botan::XMSS_Signature_Operation.

◆ update()

virtual void Botan::PK_Ops::Signature::update ( const uint8_t msg[],
size_t msg_len )
pure virtual

Add more data to the message currently being signed

Parameters
msgthe message
msg_lenthe length of msg in bytes

Implemented in Botan::PK_Ops::Signature_with_Hash, and Botan::XMSS_Signature_Operation.


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