CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ccf::crypto::KeyAesGcm_OpenSSL Class Reference

#include <symmetric_key.h>

Inherits ccf::crypto::KeyAesGcm.

Public Member Functions

 KeyAesGcm_OpenSSL (std::span< const uint8_t > rawKey)
 
 KeyAesGcm_OpenSSL (const KeyAesGcm_OpenSSL &that)=delete
 
 KeyAesGcm_OpenSSL (KeyAesGcm_OpenSSL &&that)
 
virtual ~KeyAesGcm_OpenSSL ()
 
virtual size_t key_size () const override
 
virtual void encrypt (std::span< const uint8_t > iv, std::span< const uint8_t > plain, std::span< const uint8_t > aad, std::vector< uint8_t > &cipher, uint8_t tag[GCM_SIZE_TAG]) const override
 
virtual bool decrypt (std::span< const uint8_t > iv, const uint8_t tag[GCM_SIZE_TAG], std::span< const uint8_t > cipher, std::span< const uint8_t > aad, std::vector< uint8_t > &plain) const override
 
std::vector< uint8_t > ckm_aes_key_wrap_pad (std::span< const uint8_t > plain) const
 
std::vector< uint8_t > ckm_aes_key_unwrap_pad (std::span< const uint8_t > cipher) const
 
- Public Member Functions inherited from ccf::crypto::KeyAesGcm
 KeyAesGcm ()=default
 
virtual ~KeyAesGcm ()=default
 

Constructor & Destructor Documentation

◆ KeyAesGcm_OpenSSL() [1/3]

ccf::crypto::KeyAesGcm_OpenSSL::KeyAesGcm_OpenSSL ( std::span< const uint8_t >  rawKey)

◆ KeyAesGcm_OpenSSL() [2/3]

ccf::crypto::KeyAesGcm_OpenSSL::KeyAesGcm_OpenSSL ( const KeyAesGcm_OpenSSL that)
delete

◆ KeyAesGcm_OpenSSL() [3/3]

ccf::crypto::KeyAesGcm_OpenSSL::KeyAesGcm_OpenSSL ( KeyAesGcm_OpenSSL &&  that)

◆ ~KeyAesGcm_OpenSSL()

virtual ccf::crypto::KeyAesGcm_OpenSSL::~KeyAesGcm_OpenSSL ( )
inlinevirtual

Member Function Documentation

◆ ckm_aes_key_unwrap_pad()

std::vector< uint8_t > ccf::crypto::KeyAesGcm_OpenSSL::ckm_aes_key_unwrap_pad ( std::span< const uint8_t >  cipher) const

◆ ckm_aes_key_wrap_pad()

std::vector< uint8_t > ccf::crypto::KeyAesGcm_OpenSSL::ckm_aes_key_wrap_pad ( std::span< const uint8_t >  plain) const

◆ decrypt()

bool ccf::crypto::KeyAesGcm_OpenSSL::decrypt ( std::span< const uint8_t >  iv,
const uint8_t  tag[GCM_SIZE_TAG],
std::span< const uint8_t >  cipher,
std::span< const uint8_t >  aad,
std::vector< uint8_t > &  plain 
) const
overridevirtual

◆ encrypt()

void ccf::crypto::KeyAesGcm_OpenSSL::encrypt ( std::span< const uint8_t >  iv,
std::span< const uint8_t >  plain,
std::span< const uint8_t >  aad,
std::vector< uint8_t > &  cipher,
uint8_t  tag[GCM_SIZE_TAG] 
) const
overridevirtual

◆ key_size()

size_t ccf::crypto::KeyAesGcm_OpenSSL::key_size ( ) const
overridevirtual

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