BSL v1.0.0 - 29.g99f1b76
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
key_registry.c File Reference
#include "key_registry.h"
#include "text_util.h"
+ Include dependency graph for key_registry.c:

Functions

int mock_bpa_key_registry_init (const char *pp_cfg_file_path)
 Initialize JWKs.
 
int mock_bpa_rfc9173_bcb_cek (unsigned char *buf, int len)
 Custom RNG function for BCB testing.
 

Function Documentation

◆ mock_bpa_key_registry_init()

int mock_bpa_key_registry_init ( const char *  pp_cfg_file_path)

Initialize JWKs.

Parameters
pp_cfg_file_pathpath to JSON file with JWKs
Returns
0 if successful

References BSL_Crypto_AddRegistryKey(), BSL_LOG_DEBUG, BSL_LOG_ERR, BSL_LOG_INFO, and mock_bpa_base64_decode().

Referenced by main().

◆ mock_bpa_rfc9173_bcb_cek()

int mock_bpa_rfc9173_bcb_cek ( unsigned char *  buf,
int  len 
)

Custom RNG function for BCB testing.

References buf.

Referenced by main().