|
BSL v1.1.1 - 19.g31939de
AMMOS Bundle Protocol Security Library (BSL)
|
Memory management function declarations. More...
#include <stddef.h>
Include dependency graph for BSLMemory.h:
This graph shows which files directly or indirectly include this file:Functions | |
| void * | BSL_malloc (size_t size) |
| Dynamic memory allocation. | |
| void * | BSL_realloc (void *ptr, size_t size) |
| Dynamic memory reallocation. | |
| void * | BSL_calloc (size_t nmemb, size_t size) |
| Contiguous dynamic memory allocation. | |
| void | BSL_free (void *ptr) |
| Free dynamically allocated memory. | |
Memory management function declarations.
| void * BSL_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
Contiguous dynamic memory allocation.
calloc().| nmemb | number of members to allocate |
| size | size of each member |
References BSL_DynMemHostDescriptors_t::calloc_cb, BSL_HostDescriptors_t::dyn_mem_desc, and HostDescriptorTable.
Referenced by BSL_API_QuerySecurity(), BSL_SecCtx_ExecutePolicyActionSet(), BSL_TestUtils_FlatReader(), BSL_TestUtils_FlatWriter(), BSL_TestUtils_InitMallocBIBActionSet(), BSL_TestUtils_MallocEmptyPolicyResponse(), BSLP_InitParams_Init(), BSLP_QueryPolicy(), mock_bpa_ctr_init(), MockBPA_Agent_Init(), MockBPA_Agent_process(), MockBPA_GetBundleMetadata(), MockBPA_ReadBTSD(), MockBPA_ReallocBTSD(), MockBPA_WriteBTSD(), test_bsl_mock_encode_bundle(), TEST_CASE(), test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), test_RFC9173_AppendixA_Example4_Source(), test_sec_accept_keyunwrap(), test_sec_source_keywrap(), and TestASBDecodeEncodeClosure().
| void BSL_free | ( | void * | ptr | ) |
Free dynamically allocated memory.
free().| ptr | pointer to memory to free. This pointer may be null, which is a do-nothing behavior. |
References BSL_HostDescriptors_t::dyn_mem_desc, BSL_DynMemHostDescriptors_t::free_cb, and HostDescriptorTable.
Referenced by BSL_API_QuerySecurity(), BSL_Crypto_ClearGeneratedKeyHandle(), BSL_Crypto_UnwrapKey(), bsl_data_int_free(), bsl_mock_decode_canonical(), BSL_PrimaryBlock_deinit(), BSL_SecCtx_ExecutePolicyActionSet(), BSL_SeqReader_Destroy(), BSL_SeqWriter_Destroy(), BSL_TestUtils_InitMallocBIBActionSet(), BSL_TestUtils_ReadBTSD_Deinit(), BSL_TestUtils_WriteBTSD_Deinit(), BSLP_InitParams_Deinit(), BSLP_PolicyProvider_Destroy(), BSLP_QueryPolicy(), LLVMFuzzerTestOneInput(), mock_bpa_ctr_deinit(), mock_bpa_eidpat_deinit(), MockBPA_Agent_Deinit(), MockBPA_Agent_process(), MockBPA_Bundle_Deinit(), MockBPA_EID_Deinit(), MockBPA_ReadBTSD(), MockBPA_ReadBTSD_Deinit(), MockBPA_RemoveBlock(), MockBPA_WriteBTSD(), MockBPA_WriteBTSD_Deinit(), tearDown(), test_bsl_mock_encode_canonical(), TEST_CASE(), test_decrypt(), test_encrypt(), test_MultiplePolicyProviders(), test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), test_RFC9173_AppendixA_Example3_Acceptor(), test_RFC9173_AppendixA_Example3_Source(), test_RFC9173_AppendixA_Example4_Acceptor(), test_RFC9173_AppendixA_Example4_Source(), test_sec_accept_keyunwrap(), test_sec_source_keywrap(), test_SecurityContext_BIB_Acceptor(), test_SecurityContext_BIB_Source(), test_SecurityContext_BIB_Verifier(), test_SecurityContext_BIB_Verifier_Failure(), test_SeqWriter_flat(), and TestASBDecodeEncodeClosure().
| void * BSL_malloc | ( | size_t | size | ) |
Dynamic memory allocation.
malloc().| size | size of allocation. |
References BSL_HostDescriptors_t::dyn_mem_desc, HostDescriptorTable, and BSL_DynMemHostDescriptors_t::malloc_cb.
Referenced by BSL_Crypto_GenKey(), BSL_Crypto_UnwrapKey(), BSL_Crypto_WrapKey(), BSL_Data_InitBuffer(), bsl_mock_decode_canonical(), BSL_TestUtils_FlatReader(), BSL_TestUtils_FlatWriter(), BSLP_PolicyProvider_Init(), LLVMFuzzerTestOneInput(), mock_bpa_eidpat_init(), MockBPA_EID_Init(), setUp(), and test_bsl_mock_encode_canonical().
| void * BSL_realloc | ( | void * | ptr, |
| size_t | size | ||
| ) |
Dynamic memory reallocation.
realloc().| [in] | ptr | Optional existing dynamic memory pointer |
| size | new allocation size |
References BSL_HostDescriptors_t::dyn_mem_desc, HostDescriptorTable, and BSL_DynMemHostDescriptors_t::realloc_cb.
Referenced by BSL_Data_Resize(), and MockBPA_ReallocBTSD().