|
BSL v1.0.0 - 16.g9d98179
AMMOS Bundle Protocol Security Library (BSL)
|
#include <stdlib.h>#include <stdio.h>#include <unity.h>#include <BPSecLib_Private.h>#include <mock_bpa/MockBPA.h>#include <CryptoInterface.h>#include <backend/PublicInterfaceImpl.h>#include <security_context/DefaultSecContext.h>#include <security_context/DefaultSecContext_Private.h>#include <security_context/rfc9173.h>#include "bsl_test_utils.h"
Include dependency graph for test_AbsSecBlock.c:Functions | |
| void | suiteSetUp (void) |
| int | suiteTearDown (int failures) |
| void | TestASBDecodeEncodeClosure (uint8_t *asb_cbor, size_t asb_cbor_bytelen, int64_t expect_ctx_id, uint64_t sample_target_block_num) |
| TEST_CASE ("810101018202820201828201078203008181820158403bdc69b3a34a2b5d3a8554368bd1e808f606219d2a10a846eae3886ae4ecc83c" "4ee550fdfb1cc636b904e2f1a73e303dcd4b6ccece003e95e8164dcc89a156e1", 1, 1) | |
| TEST_CASE ("438ed6208eb1c1ffb94d952175167df0902902064a2983910c4fb2340790bf420a7d1921d5bf7c4721e02ab87a93ab1e0b75cf62e494" "8727c8b5dae46ed2af05439b88029191") | |
| void suiteSetUp | ( | void | ) |
| int suiteTearDown | ( | int | failures | ) |
References BSL_HostDescriptors_Clear(), and mock_bpa_LogClose().
| TEST_CASE | ( | "438ed6208eb1c1ffb94d952175167df0902902064a2983910c4fb2340790bf420a7d1921d5bf7c4721e02ab87a93ab1e0b75cf62e494" "8727c8b5dae46ed2af05439b88029191" | ) |
References BSL_AbsSecBlock_DecodeFromCBOR(), BSL_AbsSecBlock_Deinit(), BSL_AbsSecBlock_InitEmpty(), BSL_AbsSecBlock_Sizeof(), BSL_calloc(), BSL_Data_Deinit(), BSL_Data_Init(), BSL_ERR_DECODING, BSL_free(), BSL_TestUtils_DecodeBase16(), string_clear(), string_init_set_str(), TEST_ASSERT_EQUAL_INT(), and TEST_ASSERT_EQUAL_INT_MESSAGE().
| TEST_CASE | ( | "810101018202820201828201078203008181820158403bdc69b3a34a2b5d3a8554368bd1e808f606219d2a10a846eae3886ae4ecc83c" "4ee550fdfb1cc636b904e2f1a73e303dcd4b6ccece003e95e8164dcc89a156e1" | , |
| 1, | |||
| 1 | |||
| ) |
| void TestASBDecodeEncodeClosure | ( | uint8_t * | asb_cbor, |
| size_t | asb_cbor_bytelen, | ||
| int64_t | expect_ctx_id, | ||
| uint64_t | sample_target_block_num | ||
| ) |
References BSL_AbsSecBlock_ContainsTarget(), BSL_AbsSecBlock_DecodeFromCBOR(), BSL_AbsSecBlock_Deinit(), BSL_AbsSecBlock_EncodeToCBOR(), BSL_AbsSecBlock_GetContextID(), BSL_AbsSecBlock_InitEmpty(), BSL_AbsSecBlock_IsConsistent(), BSL_AbsSecBlock_Sizeof(), BSL_calloc(), BSL_Data_Deinit(), BSL_Data_InitBuffer(), BSL_Data_InitView(), BSL_free(), BSL_SUCCESS, BSL_Data_t::ptr, TEST_ASSERT_EQUAL(), TEST_ASSERT_EQUAL_INT(), and TEST_ASSERT_EQUAL_MEMORY().
Referenced by TEST_CASE().