Botan  1.11.15
Public Types | Public Member Functions
Botan::PK_Ops::Verification Class Reference

#include <pk_ops.h>

List of all members.

Public Types

typedef PK_Spec< Public_KeySpec

Public Member Functions

virtual size_t max_input_bits () const =0
virtual size_t message_part_size () const
virtual size_t message_parts () const
virtual bool verify (const byte[], size_t, const byte[], size_t)
virtual secure_vector< byteverify_mr (const byte[], size_t)
virtual bool with_recovery () const =0
virtual ~Verification ()

Detailed Description

Public key signature verification interface

Definition at line 108 of file pk_ops.h.


Member Typedef Documentation

Definition at line 162 of file pk_ops.h.


Constructor & Destructor Documentation

virtual Botan::PK_Ops::Verification::~Verification ( ) [inline, virtual]

Definition at line 164 of file pk_ops.h.

{}

Member Function Documentation

virtual size_t Botan::PK_Ops::Verification::max_input_bits ( ) const [pure virtual]

Get the maximum message size in bits supported by this public key.

Returns:
maximum message in bits
virtual size_t Botan::PK_Ops::Verification::message_part_size ( ) const [inline, virtual]

Find out the message part size supported by this scheme/key.

Returns:
size of the message parts

Definition at line 127 of file pk_ops.h.

{ return 0; }
virtual size_t Botan::PK_Ops::Verification::message_parts ( ) const [inline, virtual]

Find out the number of message parts supported by this scheme.

Returns:
number of message parts

Definition at line 121 of file pk_ops.h.

{ return 1; }
virtual bool Botan::PK_Ops::Verification::verify ( const byte  [],
size_t  ,
const byte  [],
size_t   
) [inline, virtual]

Definition at line 143 of file pk_ops.h.

         {
         throw Invalid_State("Message recovery required");
         }
virtual secure_vector<byte> Botan::PK_Ops::Verification::verify_mr ( const byte  [],
size_t   
) [inline, virtual]

Definition at line 156 of file pk_ops.h.

         {
         throw Invalid_State("Message recovery not supported");
         }
virtual bool Botan::PK_Ops::Verification::with_recovery ( ) const [pure virtual]
Returns:
boolean specifying if this key type supports message recovery and thus if you need to call verify() or verify_mr()

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