#include <pk_filts.h>
PK_Verifier Filter
Definition at line 77 of file pk_filts.h.
◆ PK_Verifier_Filter() [1/3]
Botan::PK_Verifier_Filter::PK_Verifier_Filter |
( |
PK_Verifier * |
v | ) |
|
|
inline |
◆ PK_Verifier_Filter() [2/3]
Botan::PK_Verifier_Filter::PK_Verifier_Filter |
( |
PK_Verifier * |
v, |
|
|
const byte |
sig[], |
|
|
size_t |
length |
|
) |
| |
Definition at line 101 of file pk_filts.cpp.
103 verifier(v), signature(sig, length)
◆ PK_Verifier_Filter() [3/3]
Definition at line 110 of file pk_filts.cpp.
112 verifier(v), signature(sig)
◆ ~PK_Verifier_Filter()
Botan::PK_Verifier_Filter::~PK_Verifier_Filter |
( |
| ) |
|
|
inline |
◆ attachable()
virtual bool Botan::Filter::attachable |
( |
| ) |
|
|
inlinevirtualinherited |
◆ end_msg()
void Botan::PK_Verifier_Filter::end_msg |
( |
| ) |
|
|
virtual |
Notify that the current message is finished; flush buffers and do end-of-message processing (if any).
Reimplemented from Botan::Filter.
Definition at line 73 of file pk_filts.cpp.
References Botan::Filter::send().
76 throw Invalid_State(
"PK_Verifier_Filter: No signature to check against");
78 send((is_valid ? 1 : 0));
bool check_signature(const byte sig[], size_t length)
void send(const byte in[], size_t length)
◆ name()
std::string Botan::PK_Verifier_Filter::name |
( |
| ) |
const |
|
inlinevirtual |
- Returns
- descriptive name for this filter
Implements Botan::Filter.
Definition at line 80 of file pk_filts.h.
80 {
return "PK Verifier"; }
◆ send() [1/4]
void Botan::Filter::send |
( |
const byte |
in[], |
|
|
size_t |
length |
|
) |
| |
|
protectedinherited |
- Parameters
-
in | some input for the filter |
length | the length of in |
Definition at line 28 of file filter.cpp.
References Botan::MemoryRegion< T >::clear(), Botan::Filter::end_msg(), Botan::MemoryRegion< T >::size(), Botan::Filter::start_msg(), and Botan::Filter::write().
Referenced by Botan::Base64_Encoder::Base64_Encoder(), Botan::EAX_Decryption::EAX_Decryption(), Botan::PK_Encryptor_Filter::end_msg(), Botan::Bzip_Compression::end_msg(), Botan::Zlib_Compression::end_msg(), Botan::PBE_PKCS5v15::end_msg(), Botan::Hex_Encoder::end_msg(), Botan::Base64_Encoder::end_msg(), Botan::PBE_PKCS5v20::end_msg(), Botan::PK_Decryptor_Filter::end_msg(), Botan::Bzip_Decompression::end_msg(), Botan::Zlib_Decompression::end_msg(), Botan::PK_Signer_Filter::end_msg(), Botan::Hex_Decoder::end_msg(), Botan::Base64_Decoder::end_msg(), end_msg(), Botan::Hash_Filter::end_msg(), Botan::MAC_Filter::end_msg(), Botan::Bzip_Compression::flush(), Botan::Zlib_Compression::flush(), Botan::Hex_Encoder::Hex_Encoder(), Botan::ECB_Encryption::name(), Botan::EAX_Base::name(), Botan::ECB_Decryption::name(), Botan::CTS_Encryption::set_iv(), Botan::CFB_Encryption::set_iv(), Botan::CBC_Encryption::set_iv(), Botan::CFB_Decryption::set_iv(), Botan::CTS_Decryption::set_iv(), Botan::CBC_Decryption::set_iv(), Botan::XTS_Encryption::set_key(), Botan::XTS_Decryption::set_key(), Botan::Zlib_Compression::write(), Botan::Bzip_Compression::write(), Botan::StreamCipher_Filter::write(), Botan::Bzip_Decompression::write(), Botan::Zlib_Decompression::write(), Botan::Hex_Decoder::write(), and Botan::Base64_Decoder::write().
30 bool nothing_attached =
true;
31 for(
size_t j = 0; j != total_ports(); ++j)
34 if(write_queue.
size())
35 next[j]->
write(&write_queue[0], write_queue.
size());
36 next[j]->write(input, length);
37 nothing_attached =
false;
41 write_queue += std::make_pair(input, length);
virtual void write(const byte input[], size_t length)=0
◆ send() [2/4]
void Botan::Filter::send |
( |
byte |
in | ) |
|
|
inlineprotectedinherited |
◆ send() [3/4]
◆ send() [4/4]
- Parameters
-
in | some input for the filter |
length | the number of bytes of in to send |
Definition at line 74 of file filter.h.
void send(const byte in[], size_t length)
◆ set_signature() [1/2]
void Botan::PK_Verifier_Filter::set_signature |
( |
const byte |
sig[], |
|
|
size_t |
length |
|
) |
| |
◆ set_signature() [2/2]
void Botan::PK_Verifier_Filter::set_signature |
( |
const MemoryRegion< byte > & |
sig | ) |
|
◆ start_msg()
virtual void Botan::Filter::start_msg |
( |
| ) |
|
|
inlinevirtualinherited |
◆ write()
void Botan::PK_Verifier_Filter::write |
( |
const byte |
input[], |
|
|
size_t |
length |
|
) |
| |
|
virtual |
Write a portion of a message to this filter.
- Parameters
-
input | the input as a byte array |
length | the length of the byte array input |
Implements Botan::Filter.
Definition at line 65 of file pk_filts.cpp.
67 verifier->
update(input, length);
The documentation for this class was generated from the following files: