BSL v1.1.1 - 19.g31939de
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
DefaultSecContext.h File Reference

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

+ Include dependency graph for DefaultSecContext.h:
+ This graph shows which files directly or indirectly include this file:

Enumerations

enum  BSLX_BIB_Options_e {
  BSLX_BIB_OPT_KEY_ID = 1000 , BSLX_BIB_OPT_USE_KEY_WRAP , BSLX_BIB_OPT_WRAPPED_KEY , BSLX_BIB_OPT_SHA_VARIANT ,
  BSLX_BIB_OPT_SCOPE
}
 Internal BIB option enumerations. More...
 
enum  BSLX_BCB_Options_e {
  BSLX_BCB_OPT_KEY_ID = 2000 , BSLX_BCB_OPT_USE_KEY_WRAP , BSLX_BCB_OPT_WRAPPED_KEY , BSLX_BCB_OPT_IV ,
  BSLX_BCB_OPT_AES_VARIANT , BSLX_BCB_OPT_SCOPE
}
 Internal BCB option enumerations. More...
 

Functions

int BSLX_BIB_Execute (BSL_LibCtx_t *lib, BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper, BSL_SecOutcome_t *sec_outcome)
 Match signature BSL_SecCtx_Execute_f.
 
bool BSLX_BIB_Validate (BSL_LibCtx_t *lib, const BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper)
 Match signature BSL_SecCtx_Validate_f.
 
int BSLX_BCB_Execute (BSL_LibCtx_t *lib, BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper, BSL_SecOutcome_t *sec_outcome)
 Match signature BSL_SecCtx_Execute_f.
 
bool BSLX_BCB_Validate (BSL_LibCtx_t *lib, const BSL_BundleRef_t *bundle, const BSL_SecOper_t *sec_oper)
 Match signature BSL_SecCtx_Validate_f.
 

Detailed Description

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

Enumeration Type Documentation

◆ BSLX_BCB_Options_e

Internal BCB option enumerations.

Enumerator
BSLX_BCB_OPT_KEY_ID 

Used to pass in a key id found in the key registry.

BSLX_BCB_OPT_USE_KEY_WRAP 

A uint value 0 to skip key wrap, else use key wrap.

BSLX_BCB_OPT_WRAPPED_KEY 

Manually control the wrapped key.

Warning
This should only be used for testing.
BSLX_BCB_OPT_IV 

Manually control the IV.

Warning
This should only be used for testing.
BSLX_BCB_OPT_AES_VARIANT 

A uint value from the choices rfc9173_bcb_aes_variant_e.

BSLX_BCB_OPT_SCOPE 

A uint value from the choices rfc9173_bcb_aad_scope_flag_ids_e.

◆ BSLX_BIB_Options_e

Internal BIB option enumerations.

Enumerator
BSLX_BIB_OPT_KEY_ID 

Used to pass in a key id found in the key registry.

BSLX_BIB_OPT_USE_KEY_WRAP 

A uint value 0 to skip key wrap, else use key wrap.

BSLX_BIB_OPT_WRAPPED_KEY 

Manually control the wrapped key.

Warning
This should only be used for testing.
BSLX_BIB_OPT_SHA_VARIANT 

A uint value from the choices rfc9173_bib_sha_variantid_e.

BSLX_BIB_OPT_SCOPE 

A uint value from the choices rfc9173_bib_integ_scope_flag_ids_e.

Function Documentation

◆ BSLX_BCB_Execute()

int BSLX_BCB_Execute ( BSL_LibCtx_t *  lib,
BSL_BundleRef_t bundle,
const BSL_SecOper_t *  sec_oper,
BSL_SecOutcome_t *  sec_outcome 
)

◆ BSLX_BCB_Validate()

bool BSLX_BCB_Validate ( BSL_LibCtx_t *  lib,
const BSL_BundleRef_t bundle,
const BSL_SecOper_t *  sec_oper 
)

◆ BSLX_BIB_Execute()

int BSLX_BIB_Execute ( BSL_LibCtx_t *  lib,
BSL_BundleRef_t bundle,
const BSL_SecOper_t *  sec_oper,
BSL_SecOutcome_t *  sec_outcome 
)

◆ BSLX_BIB_Validate()

bool BSLX_BIB_Validate ( BSL_LibCtx_t *  lib,
const BSL_BundleRef_t bundle,
const BSL_SecOper_t *  sec_oper 
)