BSL v1.1.1 - 39.g9f43410
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
DefaultScUtils.h File Reference
+ Include dependency graph for DefaultScUtils.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  BIBTestContext
 
struct  BCBTestContext
 
struct  RFC9173_TestVectors_AppendixA1
 Hard-coded single struct with fields populated from test vector in Appendix A1 for BIB. More...
 
struct  RFC9173_TestVectorsA2
 
struct  RFC9173_TestVectors_A4_Modified
 
struct  RFC9173_A1_Params
 
struct  RFC9173_AppendixA2_BCB
 

Macros

#define RFC9173_EXAMPLE_A1_KEY   "9100"
 Key ID for the Appendix A1 key in OpenSSL.
 
#define RFC9173_EXAMPLE_A2_KEY   "9102"
 Key ID for the Appendix A2 key in OpenSSL.
 
#define RFC9173_EXAMPLE_A3_KEY   "9103"
 Key ID for the Appendix A3 key in OpenSSL.
 
#define RFC9173_EXAMPLE_A4_BCB_KEY   "9104"
 Key ID for the Appendix A4 key in OpenSSL.
 
#define BSL_SAMPLE_PP_ID   1
 Sample policy provider ID.
 
#define BSL_SAMPLE_PP_ID_2   2
 

Functions

static int BSL_Crypto_AddRegistryKeyName (const char *name, const uint8_t *ptr, size_t len)
 Test helper function.
 
static int BSL_Crypto_GetRegistryKeyName (const char *name, BSL_Crypto_KeyHandle_t *handle)
 Test helper function.
 
static int BSL_Crypto_RemoveRegistryKeyName (const char *name)
 Test helper function.
 
void BIBTestContext_Init (BIBTestContext *obj)
 
void BIBTestContext_Deinit (BIBTestContext *obj)
 
void BSL_TestUtils_InitBIB_AppendixA1 (BIBTestContext *context, BSL_SecRole_e role, const char *key_id)
 
void BCBTestContext_Init (BCBTestContext *obj)
 
void BCBTestContext_Deinit (BCBTestContext *obj)
 
void BSL_TestUtils_InitBCB_Appendix2 (BCBTestContext *context, BSL_SecRole_e role)
 
RFC9173_A1_Params BSL_TestUtils_GetRFC9173_A1Params (const char *key_id)
 
RFC9173_A1_Params BSL_TestUtils_GetRFC9173_A2Params (const char *key_id)
 
BSL_SecurityActionSet_t * BSL_TestUtils_InitMallocBIBActionSet (BIBTestContext *bib_context)
 
void BSL_TestUtils_SetupDefaultSecurityContext (BSL_LibCtx_t *bsl_lib)
 
int rfc9173_byte_gen_fn_a1 (unsigned char *buf, int len)
 
int rfc9173_byte_gen_fn_a2_kek (unsigned char *buf, int len)
 
int rfc9173_byte_gen_fn_a2_cek (unsigned char *buf, int len)
 
int rfc9173_byte_gen_fn_a4 (unsigned char *buf, int len)
 

Variables

const struct RFC9173_TestVectors_AppendixA1 RFC9173_TestVectors_AppendixA1
 
const struct RFC9173_TestVectorsA2 RFC9173_TestVectors_AppendixA2
 
const struct RFC9173_TestVectors_A4_Modified RFC9173_TestVectors_AppendixA4
 

Macro Definition Documentation

◆ BSL_SAMPLE_PP_ID

#define BSL_SAMPLE_PP_ID   1

Sample policy provider ID.

◆ BSL_SAMPLE_PP_ID_2

#define BSL_SAMPLE_PP_ID_2   2

◆ RFC9173_EXAMPLE_A1_KEY

#define RFC9173_EXAMPLE_A1_KEY   "9100"

Key ID for the Appendix A1 key in OpenSSL.

◆ RFC9173_EXAMPLE_A2_KEY

#define RFC9173_EXAMPLE_A2_KEY   "9102"

Key ID for the Appendix A2 key in OpenSSL.

◆ RFC9173_EXAMPLE_A3_KEY

#define RFC9173_EXAMPLE_A3_KEY   "9103"

Key ID for the Appendix A3 key in OpenSSL.

◆ RFC9173_EXAMPLE_A4_BCB_KEY

#define RFC9173_EXAMPLE_A4_BCB_KEY   "9104"

Key ID for the Appendix A4 key in OpenSSL.

Function Documentation

◆ BCBTestContext_Deinit()

◆ BCBTestContext_Init()

◆ BIBTestContext_Deinit()

◆ BIBTestContext_Init()

◆ BSL_Crypto_AddRegistryKeyName()

static int BSL_Crypto_AddRegistryKeyName ( const char *  name,
const uint8_t *  ptr,
size_t  len 
)
inlinestatic

◆ BSL_Crypto_GetRegistryKeyName()

static int BSL_Crypto_GetRegistryKeyName ( const char *  name,
BSL_Crypto_KeyHandle_t handle 
)
inlinestatic

◆ BSL_Crypto_RemoveRegistryKeyName()

static int BSL_Crypto_RemoveRegistryKeyName ( const char *  name)
inlinestatic

Test helper function.

References BSL_Crypto_RemoveRegistryKey(), and BSL_DATA_INIT_VIEW_CSTR.

Referenced by TEST_CASE().

◆ BSL_TestUtils_GetRFC9173_A1Params()

◆ BSL_TestUtils_GetRFC9173_A2Params()

RFC9173_A1_Params BSL_TestUtils_GetRFC9173_A2Params ( const char *  key_id)

◆ BSL_TestUtils_InitBCB_Appendix2()

◆ BSL_TestUtils_InitBIB_AppendixA1()

◆ BSL_TestUtils_InitMallocBIBActionSet()

◆ BSL_TestUtils_SetupDefaultSecurityContext()

◆ rfc9173_byte_gen_fn_a1()

int rfc9173_byte_gen_fn_a1 ( unsigned char *  buf,
int  len 
)

◆ rfc9173_byte_gen_fn_a2_cek()

int rfc9173_byte_gen_fn_a2_cek ( unsigned char *  buf,
int  len 
)

◆ rfc9173_byte_gen_fn_a2_kek()

int rfc9173_byte_gen_fn_a2_kek ( unsigned char *  buf,
int  len 
)

◆ rfc9173_byte_gen_fn_a4()

int rfc9173_byte_gen_fn_a4 ( unsigned char *  buf,
int  len 
)

Variable Documentation

◆ RFC9173_TestVectors_AppendixA1

◆ RFC9173_TestVectors_AppendixA2

const struct RFC9173_TestVectorsA2 RFC9173_TestVectors_AppendixA2

◆ RFC9173_TestVectors_AppendixA4

const struct RFC9173_TestVectors_A4_Modified RFC9173_TestVectors_AppendixA4