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

#include <symmetric_key.h>

Inherited by ccf::crypto::KeyAesGcm_OpenSSL.

Public Member Functions

 KeyAesGcm ()=default
 
virtual ~KeyAesGcm ()=default
 
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 =0
 
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 =0
 
virtual size_t key_size () const =0
 

Constructor & Destructor Documentation

◆ KeyAesGcm()

ccf::crypto::KeyAesGcm::KeyAesGcm ( )
default

◆ ~KeyAesGcm()

virtual ccf::crypto::KeyAesGcm::~KeyAesGcm ( )
virtualdefault

Member Function Documentation

◆ decrypt()

virtual bool ccf::crypto::KeyAesGcm::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
pure virtual

◆ encrypt()

virtual void ccf::crypto::KeyAesGcm::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
pure virtual

◆ key_size()

virtual size_t ccf::crypto::KeyAesGcm::key_size ( ) const
pure virtual

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