Botan  1.11.15
Public Member Functions
Botan::DLIES_Decryptor Class Reference

#include <dlies.h>

Inheritance diagram for Botan::DLIES_Decryptor:
Botan::PK_Decryptor

List of all members.

Public Member Functions

secure_vector< bytedecrypt (const byte in[], size_t length) const
template<typename Alloc >
secure_vector< bytedecrypt (const std::vector< byte, Alloc > &in) const
 DLIES_Decryptor (const PK_Key_Agreement_Key &, KDF *kdf, MessageAuthenticationCode *mac, size_t mac_key_len=20)

Detailed Description

DLIES Decryption

Definition at line 46 of file dlies.h.


Constructor & Destructor Documentation

Botan::DLIES_Decryptor::DLIES_Decryptor ( const PK_Key_Agreement_Key key,
KDF kdf,
MessageAuthenticationCode mac,
size_t  mac_key_len = 20 
)

Definition at line 84 of file dlies.cpp.

References Botan::PK_Key_Agreement_Key::public_value().

                                                :
   ka(key, "Raw"),
   kdf(kdf_obj),
   mac(mac_obj),
   mac_keylen(mac_kl)
   {
   my_key = key.public_value();
   }

Member Function Documentation

secure_vector<byte> Botan::PK_Decryptor::decrypt ( const byte  in[],
size_t  length 
) const [inline, inherited]

Decrypt a ciphertext.

Parameters:
inthe ciphertext as a byte array
lengththe length of the above byte array
Returns:
decrypted message

Definition at line 97 of file pubkey.h.

Referenced by Botan::KeyPair::encryption_consistency_check().

         {
         return dec(in, length);
         }
template<typename Alloc >
secure_vector<byte> Botan::PK_Decryptor::decrypt ( const std::vector< byte, Alloc > &  in) const [inline, inherited]

Decrypt a ciphertext.

Parameters:
inthe ciphertext
Returns:
decrypted message

Definition at line 108 of file pubkey.h.

         {
         return dec(&in[0], in.size());
         }

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