|
BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
|
Definitions for permutations of policy configurations. More...
#include <inttypes.h>#include <stdio.h>#include <jansson.h>#include <BPSecLib_Private.h>#include <policy_provider/SamplePolicyProvider.h>#include <security_context/rfc9173.h>#include <CryptoInterface.h>#include "policy_registry.h"
Include dependency graph for policy_config.h:
This graph shows which files directly or indirectly include this file:Typedefs | |
| typedef uint32_t | bsl_mock_policy_configuration_t |
| Bitwise Diagram of the mock bpa config data structure: | |
Functions | |
| int | mock_bpa_handle_policy_config (const char *policies, BSLP_PolicyProvider_t *policy, mock_bpa_policy_registry_t *reg) |
| int | mock_bpa_register_policy_from_json (const char *pp_cfg_file_path, BSLP_PolicyProvider_t *policy, mock_bpa_policy_registry_t *reg) |
| int | mock_bpa_key_registry_init (const char *pp_cfg_file_path) |
| int | mock_bpa_rfc9173_bcb_cek (unsigned char *buf, int len) |
Definitions for permutations of policy configurations.
| typedef uint32_t bsl_mock_policy_configuration_t |
Bitwise Diagram of the mock bpa config data structure:
| int mock_bpa_handle_policy_config | ( | const char * | policies, |
| BSLP_PolicyProvider_t * | policy, | ||
| mock_bpa_policy_registry_t * | reg | ||
| ) |
References BSL_LOG_CRIT, BSL_LOG_DEBUG, BSL_LOG_ERR, mock_bpa_policy_registry_get(), mock_bpa_policy_registry_size(), and mock_bpa_register_policy().
Referenced by main().
| int mock_bpa_key_registry_init | ( | const char * | pp_cfg_file_path | ) |
References BSL_Crypto_AddRegistryKey(), BSL_LOG_DEBUG, BSL_LOG_ERR, BSL_LOG_INFO, and mock_bpa_base64_decode().
Referenced by main().
| int mock_bpa_register_policy_from_json | ( | const char * | pp_cfg_file_path, |
| BSLP_PolicyProvider_t * | policy, | ||
| mock_bpa_policy_registry_t * | reg | ||
| ) |
References BSL_Crypto_SetRngGenerator(), BSL_LOG_CRIT, BSL_LOG_DEBUG, BSL_LOG_ERR, BSL_POLICYACTION_DROP_BLOCK, BSL_POLICYACTION_DROP_BUNDLE, BSL_POLICYACTION_NOTHING, BSL_POLICYLOCATION_APPIN, BSL_POLICYLOCATION_APPOUT, BSL_POLICYLOCATION_CLIN, BSL_POLICYLOCATION_CLOUT, BSL_SECBLOCKTYPE_BCB, BSL_SECBLOCKTYPE_BIB, BSL_SecParam_InitInt64(), BSL_SecParam_InitTextstr(), BSL_SECPARAM_TYPE_KEY_ID, BSL_SECPARAM_USE_KEY_WRAP, BSL_SECROLE_ACCEPTOR, BSL_SECROLE_SOURCE, BSL_SECROLE_VERIFIER, BSLP_PolicyPredicate_Init(), BSLP_PolicyRule_CopyParam(), BSLP_PolicyRule_Init(), mock_bpa_policy_registry_get(), mock_bpa_rfc9173_bcb_cek(), mock_bpa_util_get_eid_pattern_from_text(), mock_bpa_policy_params_t::param_aad_scope_flag, mock_bpa_policy_params_t::param_aes_variant, mock_bpa_policy_params_t::param_integ_scope_flag, mock_bpa_policy_params_t::param_sha_variant, mock_bpa_policy_params_t::param_test_key, mock_bpa_policy_params_t::param_use_wrapped_key, BSLP_PolicyProvider_t::predicate_count, BSLP_PolicyProvider_t::predicates, RFC9173_BCB_AES_VARIANT_A128GCM, RFC9173_BCB_AES_VARIANT_A256GCM, RFC9173_BCB_SECPARAM_AADSCOPE, RFC9173_BCB_SECPARAM_AESVARIANT, RFC9173_BIB_PARAMID_INTEG_SCOPE_FLAG, RFC9173_BIB_PARAMID_SHA_VARIANT, RFC9173_BIB_SHA_HMAC256, RFC9173_BIB_SHA_HMAC384, RFC9173_BIB_SHA_HMAC512, BSLP_PolicyProvider_t::rule_count, BSLP_PolicyProvider_t::rules, and sha_var.
Referenced by main().
| int mock_bpa_rfc9173_bcb_cek | ( | unsigned char * | buf, |
| int | len | ||
| ) |
References buf.
Referenced by mock_bpa_register_policy(), and mock_bpa_register_policy_from_json().