CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
cdc::core::GcmContext Class Reference

RAII wrapper around mbedtls_gcm_context. Non-copyable, non-movable. More...

#include <Crypto.h>

Public Member Functions

 GcmContext ()
 ~GcmContext ()
 GcmContext (const GcmContext &)=delete
GcmContextoperator= (const GcmContext &)=delete
 GcmContext (GcmContext &&)=delete
GcmContextoperator= (GcmContext &&)=delete
mbedtls_gcm_context * get ()
 Returns the underlying mbedTLS context.

Detailed Description

RAII wrapper around mbedtls_gcm_context. Non-copyable, non-movable.

Definition at line 21 of file Crypto.h.

Constructor & Destructor Documentation

◆ GcmContext() [1/3]

cdc::core::GcmContext::GcmContext ( )
inline

Definition at line 23 of file Crypto.h.

Referenced by GcmContext(), GcmContext(), operator=(), and operator=().

◆ ~GcmContext()

cdc::core::GcmContext::~GcmContext ( )
inline

Definition at line 24 of file Crypto.h.

◆ GcmContext() [2/3]

cdc::core::GcmContext::GcmContext ( const GcmContext & )
delete

References GcmContext().

◆ GcmContext() [3/3]

cdc::core::GcmContext::GcmContext ( GcmContext && )
delete

References GcmContext().

Member Function Documentation

◆ get()

mbedtls_gcm_context * cdc::core::GcmContext::get ( )
inline

Returns the underlying mbedTLS context.

Definition at line 30 of file Crypto.h.

Referenced by cdc::core::aesGcm256Open(), and cdc::core::aesGcm256Seal().

◆ operator=() [1/2]

GcmContext & cdc::core::GcmContext::operator= ( const GcmContext & )
delete

References GcmContext().

◆ operator=() [2/2]

GcmContext & cdc::core::GcmContext::operator= ( GcmContext && )
delete

References GcmContext().


The documentation for this class was generated from the following file:
  • components/cdc_core/include/cdc_core/Crypto.h