|
BSL v1.1.1 - 50.g42e5d9b
AMMOS Bundle Protocol Security Library (BSL)
|
Common functions to load keys from file. More...
#include "KeyStore.h"
Include dependency graph for KeyLoader.h:
This graph shows which files directly or indirectly include this file:Functions | |
| int | BSL_Crypto_KeyLoader_LoadFile (const char *file_path) |
| Load keys from file. | |
| int | BSL_Crypto_KeyLoader_LoadJwkSet (int infd) |
| int | BSL_Crypto_KeyLoader_LoadCoseKeySet (int infd) |
Common functions to load keys from file.
| int BSL_Crypto_KeyLoader_LoadCoseKeySet | ( | int | infd | ) |
| infd | The file descriptor to read from. |
References BSL_CBOR_Decode(), BSL_Crypto_KeyLoader_LoadCoseKeySet_decode(), BSL_Data_InitView(), BSL_ERR_DECODING, and BSL_LOG_ERR.
Referenced by BSL_Crypto_KeyLoader_LoadFile(), and LLVMFuzzerTestOneInput().
| int BSL_Crypto_KeyLoader_LoadFile | ( | const char * | file_path | ) |
Load keys from file.
| [in] | file_path | path to JSON file with JWK Set or CBOR file with COSE_KeySet |
References BSL_Crypto_KeyLoader_LoadCoseKeySet(), BSL_Crypto_KeyLoader_LoadJwkSet(), BSL_ERR_ARG_INVALID, BSL_ERR_DECODING, BSL_LOG_ERR, BSL_LOG_INFO, and BSL_SUCCESS.
Referenced by main().
| int BSL_Crypto_KeyLoader_LoadJwkSet | ( | int | infd | ) |
| infd | The file descriptor to read from. |
References BSL_KeyStore_Descriptors_t::add_key, BSL_Crypto_LoadKey(), BSL_Crypto_ReleaseKeyHandle(), BSL_Data_Deinit(), BSL_Data_Init(), BSL_DATA_INIT_VIEW_CSTR, BSL_KeyStore_State, 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 BSL_Crypto_KeyLoader_LoadFile(), and LLVMFuzzerTestOneInput().