|
BSL v1.1.1 - 39.g9f43410
AMMOS Bundle Protocol Security Library (BSL)
|
Include dependency graph for key_registry.h:
This graph shows which files directly or indirectly include this file:Functions | |
| int | mock_bpa_key_registry_init (const char *file_path) |
| Initialize keys. | |
| int | mock_bpa_key_registry_init_jwk (int infd) |
| int | mock_bpa_key_registry_init_cosekey (int infd) |
| int | mock_bpa_rfc9173_bcb_cek (unsigned char *buf, int len) |
| Custom RNG function for BCB testing. | |
| int mock_bpa_key_registry_init | ( | const char * | file_path | ) |
Initialize keys.
| [in] | file_path | path to JSON file with JWKs or CBOR file with COSE_KeySet |
References BSL_ERR_ARG_INVALID, BSL_ERR_DECODING, BSL_LOG_ERR, BSL_LOG_INFO, BSL_SUCCESS, mock_bpa_key_registry_init_cosekey(), and mock_bpa_key_registry_init_jwk().
Referenced by main().
| int mock_bpa_key_registry_init_cosekey | ( | int | infd | ) |
| infd | The file descriptor to read from. |
References BSL_CBOR_Decode(), BSL_Data_InitView(), BSL_ERR_DECODING, BSL_LOG_ERR, and mock_bpa_key_registry_cosekey_decode().
Referenced by LLVMFuzzerTestOneInput(), and mock_bpa_key_registry_init().
| int mock_bpa_key_registry_init_jwk | ( | int | infd | ) |
| infd | The file descriptor to read from. |
References BSL_Crypto_AddRegistryKey(), BSL_Crypto_LoadKey(), BSL_Crypto_ReleaseKeyHandle(), BSL_Data_Deinit(), BSL_Data_Init(), BSL_DATA_INIT_VIEW_CSTR, BSL_LOG_DEBUG, BSL_LOG_ERR, BSL_LOG_INFO, BSL_SUCCESS, BSL_TextUtil_Base64_Decode(), keyhandle, BSL_Data_t::len, and BSL_Data_t::ptr.
Referenced by LLVMFuzzerTestOneInput(), and mock_bpa_key_registry_init().
| int mock_bpa_rfc9173_bcb_cek | ( | unsigned char * | buf, |
| int | len | ||
| ) |
Custom RNG function for BCB testing.
Referenced by main().