7 #ifndef BOTAN_PK_OPERATIONS_H__
8 #define BOTAN_PK_OPERATIONS_H__
21 #include <botan/pk_keys.h>
22 #include <botan/secmem.h>
23 #include <botan/rng.h>
43 virtual size_t max_input_bits()
const = 0;
55 const uint8_t ciphertext[],
56 size_t ciphertext_len) = 0;
72 virtual void update(
const uint8_t msg[],
size_t msg_len) = 0;
78 virtual bool is_valid_signature(
const uint8_t sig[],
size_t sig_len) = 0;
94 virtual void update(
const uint8_t msg[],
size_t msg_len) = 0;
112 const uint8_t other_key[],
size_t other_key_len,
113 const uint8_t salt[],
size_t salt_len) = 0;
126 size_t desired_shared_key_len,
128 const uint8_t salt[],
129 size_t salt_len) = 0;
139 size_t desired_shared_key_len,
140 const uint8_t salt[],
141 size_t salt_len) = 0;
std::string encrypt(const uint8_t input[], size_t input_len, const std::string &passphrase, RandomNumberGenerator &rng)
std::vector< T, secure_allocator< T >> secure_vector
std::string decrypt(const uint8_t input[], size_t input_len, const std::string &passphrase)