#include <keyDerivation.h>
Public Member Functions | |
KeyDerivation () | |
virtual | ~KeyDerivation () |
void | init (Buffer key, Buffer salt) |
err_status_t | setLogKDRate (const uint8_t ld_rate) |
err_status_t | generate (satp_prf_label label, seq_nr_t seq_nr, Buffer &key, uint32_t length) |
void | clear () |
Static Public Attributes | |
static const std::string | MIN_GCRYPT_VERSION |
Protected Attributes | |
int8_t | ld_kdr_ |
Buffer | salt_ |
gcry_cipher_hd_t | cipher_ |
KeyDerivation::KeyDerivation | ( | ) | [inline] |
virtual KeyDerivation::~KeyDerivation | ( | ) | [inline, virtual] |
err_status_t KeyDerivation::setLogKDRate | ( | const uint8_t | ld_rate | ) |
err_status_t KeyDerivation::generate | ( | satp_prf_label | label, | |
seq_nr_t | seq_nr, | |||
Buffer & | key, | |||
uint32_t | length | |||
) |
void KeyDerivation::clear | ( | ) |
const std::string KeyDerivation::MIN_GCRYPT_VERSION [static] |
int8_t KeyDerivation::ld_kdr_ [protected] |
Buffer KeyDerivation::salt_ [protected] |
gcry_cipher_hd_t KeyDerivation::cipher_ [protected] |