BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
DefaultSecContext_Private.h File Reference

Contains functions only used internally, however, test utilities can include this to unit test them. More...

#include <stdint.h>
#include <qcbor/qcbor_encode.h>
#include <BPSecLib_Private.h>
#include <BPSecLib_Public.h>
#include <CryptoInterface.h>
#include "rfc9173.h"
+ Include dependency graph for DefaultSecContext_Private.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  BSLX_BlockMetadata_t
 
struct  BSLX_BIB_t
 
struct  BSLX_BCB_t
 BCB encryption context with crypto primitives. More...
 

Functions

int BSLX_BIB_InitFromSecOper (BSLX_BIB_t *self, const BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper)
 Populate the BIB parameters convenience struct from the security operation struct.
 
void BSLX_BIB_Deinit (BSLX_BIB_t *self)
 
int BSLX_BIB_GenIPPT (const BSLX_BIB_t *self, BSL_Data_t *ippt_space)
 Computes the Integrity-Protected Plaintext (IPPT) according to Section 3.7 of RFC 9173 [4].
 
int BSLX_BIB_GenHMAC (BSLX_BIB_t *self, const BSL_Data_t *ippt_data)
 Performs the actual HMAC over the given IPPT, placing the result in hmac_result.
 
int BSLX_BCB_GetParams (const BSL_BundleRef_t *bundle, BSLX_BCB_t *bcb_context, const BSL_SecOper_t *sec_oper)
 
int BSLX_BCB_Init (BSLX_BCB_t *bcb_context, BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper)
 
void BSLX_BCB_Deinit (BSLX_BCB_t *bcb_context)
 
int BSLX_BCB_ComputeAAD (BSLX_BCB_t *bcb_context)
 
int BSLX_BCB_Encrypt (BSLX_BCB_t *bcb_context)
 
void BSLX_EncodeHeader (const BSL_CanonicalBlock_t *block, QCBOREncodeContext *encoder)
 

Detailed Description

Contains functions only used internally, however, test utilities can include this to unit test them.

Function Documentation

◆ BSLX_BCB_ComputeAAD()

◆ BSLX_BCB_Deinit()

◆ BSLX_BCB_Encrypt()

◆ BSLX_BCB_GetParams()

◆ BSLX_BCB_Init()

◆ BSLX_BIB_Deinit()

◆ BSLX_BIB_GenHMAC()

int BSLX_BIB_GenHMAC ( BSLX_BIB_t self,
const BSL_Data_t ippt_data 
)

◆ BSLX_BIB_GenIPPT()

int BSLX_BIB_GenIPPT ( const BSLX_BIB_t self,
BSL_Data_t ippt_space 
)

◆ BSLX_BIB_InitFromSecOper()

◆ BSLX_EncodeHeader()

void BSLX_EncodeHeader ( const BSL_CanonicalBlock_t block,
QCBOREncodeContext *  encoder 
)