|
Botan
1.11.4
|
#include <pbes1.h>
Public Member Functions | |
| virtual bool | attachable () |
| std::vector< byte > | encode_params () const |
| void | end_msg () |
| OID | get_oid () const |
| std::string | name () const |
| PBE_PKCS5v15 (BlockCipher *cipher, HashFunction *hash, const std::string &passphrase, std::chrono::milliseconds msec, RandomNumberGenerator &rng) | |
| PBE_PKCS5v15 (BlockCipher *cipher, HashFunction *hash, const std::vector< byte > ¶ms, const std::string &passphrase) | |
| void | start_msg () |
| void | write (const byte[], size_t) |
| ~PBE_PKCS5v15 () | |
Protected Member Functions | |
| virtual void | send (const byte in[], size_t length) |
| void | send (byte in) |
| void | send (const secure_vector< byte > &in) |
| void | send (const std::vector< byte > &in) |
| void | send (const secure_vector< byte > &in, size_t length) |
| void | send (const std::vector< byte > &in, size_t length) |
| Botan::PBE_PKCS5v15::PBE_PKCS5v15 | ( | BlockCipher * | cipher, |
| HashFunction * | hash, | ||
| const std::string & | passphrase, | ||
| std::chrono::milliseconds | msec, | ||
| RandomNumberGenerator & | rng | ||
| ) |
| cipher | the block cipher to use (DES or RC2) |
| hash | the hash function to use |
| passphrase | the passphrase to use |
| msec | how many milliseconds to run the PBKDF |
| rng | a random number generator |
Definition at line 116 of file pbes1.cpp.
References Botan::HashFunction::clone(), Botan::PBKDF::derive_key(), and Botan::Algorithm::name().
| Botan::PBE_PKCS5v15::PBE_PKCS5v15 | ( | BlockCipher * | cipher, |
| HashFunction * | hash, | ||
| const std::vector< byte > & | params, | ||
| const std::string & | passphrase | ||
| ) |
Definition at line 151 of file pbes1.cpp.
References Botan::HashFunction::clone(), Botan::BER_Decoder::decode(), Botan::PBKDF::derive_key(), Botan::BER_Decoder::end_cons(), Botan::Algorithm::name(), Botan::OCTET_STRING, Botan::SEQUENCE, Botan::BER_Decoder::start_cons(), and Botan::BER_Decoder::verify_end().
| Botan::PBE_PKCS5v15::~PBE_PKCS5v15 | ( | ) |
|
inlinevirtualinherited |
Check whether this filter is an attachable filter.
Reimplemented in Botan::SecureQueue, and Botan::DataSink.
|
virtual |
DER encode the params (the number of iterations and the salt value)
Implements Botan::PBE.
Definition at line 74 of file pbes1.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), Botan::DER_Encoder::get_contents_unlocked(), Botan::OCTET_STRING, Botan::SEQUENCE, and Botan::DER_Encoder::start_cons().
|
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 48 of file pbes1.cpp.
References Botan::Pipe::end_msg(), and Botan::Pipe::reset().
|
virtual |
Implements Botan::PBE.
Definition at line 87 of file pbes1.cpp.
References Botan::Algorithm::name().
|
virtual |
Implements Botan::Filter.
Definition at line 110 of file pbes1.cpp.
References Botan::Algorithm::name().
|
protectedvirtualinherited |
| in | some input for the filter |
| length | the length of in |
Reimplemented in Botan::Threaded_Fork.
Definition at line 28 of file filter.cpp.
References Botan::Filter::write().
Referenced by Botan::PK_Encryptor_Filter::end_msg(), Botan::Zlib_Compression::end_msg(), Botan::Bzip_Compression::end_msg(), Botan::Lzma_Compression::end_msg(), Botan::Hex_Encoder::end_msg(), Botan::Base64_Encoder::end_msg(), Botan::PK_Decryptor_Filter::end_msg(), Botan::Bzip_Decompression::end_msg(), Botan::PK_Signer_Filter::end_msg(), Botan::Lzma_Decompression::end_msg(), Botan::Zlib_Decompression::end_msg(), Botan::Hex_Decoder::end_msg(), Botan::Base64_Decoder::end_msg(), Botan::PK_Verifier_Filter::end_msg(), Botan::Hash_Filter::end_msg(), Botan::MAC_Filter::end_msg(), Botan::Bzip_Compression::flush(), Botan::Zlib_Compression::flush(), Botan::Lzma_Compression::flush(), Botan::Bzip_Compression::write(), Botan::Zlib_Compression::write(), Botan::Lzma_Compression::write(), Botan::StreamCipher_Filter::write(), Botan::Bzip_Decompression::write(), Botan::Lzma_Decompression::write(), Botan::Zlib_Decompression::write(), Botan::Hex_Decoder::write(), and Botan::Base64_Decoder::write().
|
inlineprotectedinherited |
| in | some input for the filter |
Definition at line 65 of file filter.h.
References Botan::Filter::send().
Referenced by Botan::Filter::send().
|
inlineprotectedinherited |
| in | some input for the filter |
Definition at line 70 of file filter.h.
References Botan::Filter::send().
Referenced by Botan::Filter::send().
|
inlineprotectedinherited |
| in | some input for the filter |
Definition at line 75 of file filter.h.
References Botan::Filter::send().
Referenced by Botan::Filter::send().
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
virtual |
Start a new message. Must be closed by end_msg() before another message can be started.
Reimplemented from Botan::Filter.
Definition at line 29 of file pbes1.cpp.
References Botan::Pipe::append(), Botan::BlockCipher::clone(), Botan::Pipe::default_msg(), Botan::ENCRYPTION, Botan::Pipe::message_count(), Botan::Pipe::set_default_msg(), and Botan::Pipe::start_msg().
|
virtual |
Write a portion of a message to this filter.
| input | the input as a byte array |
| length | the length of the byte array input |
Implements Botan::Filter.
Definition at line 20 of file pbes1.cpp.
References Botan::Pipe::write().
1.8.3.1