Botan  2.11.0
Crypto and TLS for C++11
Classes | Functions
Botan::PK_Ops Namespace Reference

Classes

class  Decryption_with_EME
 
class  Encryption_with_EME
 
class  KEM_Decryption_with_KDF
 
class  KEM_Encryption_with_KDF
 
class  Key_Agreement_with_KDF
 
class  Signature_with_EMSA
 
class  Verification_with_EMSA
 

Functions

class BOTAN_PUBLIC_API (2, 0) Encryption
 

Function Documentation

◆ BOTAN_PUBLIC_API()

class Botan::PK_Ops::BOTAN_PUBLIC_API ( ,
 
)

Public key encryption interface

Public key decryption interface

Public key signature verification interface

Public key signature creation interface

A generic key agreement operation (eg DH or ECDH)

KEM (key encapsulation)

Definition at line 36 of file pk_ops.h.

37  {
38  public:
39  virtual secure_vector<uint8_t> encrypt(const uint8_t msg[],
40  size_t msg_len,
41  RandomNumberGenerator& rng) = 0;
42 
43  virtual size_t max_input_bits() const = 0;
44 
45  virtual size_t ciphertext_length(size_t ptext_len) const = 0;
46 
47  virtual ~Encryption() = default;
48  };
botan_rng_t rng
Definition: ffi.h:864
size_t ptext_len
Definition: ffi.h:1351
std::string encrypt(const uint8_t input[], size_t input_len, const std::string &passphrase, RandomNumberGenerator &rng)
Definition: cryptobox.cpp:43

References Botan::CryptoBox::encrypt(), ptext_len, and Botan::rng.