Botan 3.6.1
Crypto and TLS for C&
Botan::PK_Ops::Signature Class Referenceabstract

#include <pk_ops.h>

Inheritance diagram for Botan::PK_Ops::Signature:
Botan::TPM2::Signature_Operation_Base< PK_Ops::Signature > Botan::PK_Ops::Signature_with_Hash Botan::XMSS_Signature_Operation Botan::TPM2::Signature_Operation

Public Member Functions

virtual AlgorithmIdentifier algorithm_identifier () const
 
virtual std::string hash_function () const =0
 
virtual std::vector< uint8_t > sign (RandomNumberGenerator &rng)=0
 
virtual size_t signature_length () const =0
 
virtual void update (std::span< const uint8_t > input)=0
 
virtual ~Signature ()=default
 

Detailed Description

Public key signature creation interface

Definition at line 105 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

◆ sign()

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

Perform a signature operation

Parameters
rnga random number generator

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

◆ 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 ( std::span< const uint8_t > input)
pure virtual

Add more data to the message currently being signed

Parameters
inputthe input to be hashed/signed

Implemented in Botan::PK_Ops::Signature_with_Hash, Botan::TPM2::Signature_Operation_Base< PK_Ops::Signature >, and Botan::XMSS_Signature_Operation.


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