BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
DefaultSecContext.c File Reference

Header for the implementation of an example default security context (RFC 9173). More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <qcbor/qcbor_encode.h>
#include <qcbor/qcbor_spiffy_decode.h>
#include <BPSecLib_Private.h>
#include <CryptoInterface.h>
#include "DefaultSecContext.h"
#include "DefaultSecContext_Private.h"
#include "rfc9173.h"
+ Include dependency graph for DefaultSecContext.c:

Go to the source code of this file.

Functions

void BSLX_EncodeHeader (const BSL_CanonicalBlock_t *block, QCBOREncodeContext *encoder)
 
void * BSLX_ScratchSpace_take (BSLX_ScratchSpace_t *scratch, size_t len)
 This means "give me len bytes from the scratch space and increment a counter." This is a convenience to assign space within the scratch space for certain structs.
 

Detailed Description

Header for the implementation of an example default security context (RFC 9173).

Definition in file DefaultSecContext.c.

Function Documentation

◆ BSLX_EncodeHeader()

void BSLX_EncodeHeader ( const BSL_CanonicalBlock_t block,
QCBOREncodeContext *  encoder 
)

Definition at line 41 of file DefaultSecContext.c.

◆ BSLX_ScratchSpace_take()

void * BSLX_ScratchSpace_take ( BSLX_ScratchSpace_t scratch,
size_t  len 
)

This means "give me len bytes from the scratch space and increment a counter." This is a convenience to assign space within the scratch space for certain structs.

Definition at line 51 of file DefaultSecContext.c.