BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
|
Declarations for bundle and block decoding. More...
Go to the source code of this file.
Functions | |
int | bsl_mock_decode_eid (QCBORDecodeContext *dec, BSL_HostEID_t *eid) |
Encode a single EID. | |
int | bsl_mock_decode_primary (QCBORDecodeContext *dec, MockBPA_PrimaryBlock_t *blk) |
Encode primary block to a CBOR bytestring. | |
int | bsl_mock_decode_canonical (QCBORDecodeContext *dec, MockBPA_CanonicalBlock_t *blk) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
int | bsl_mock_decode_bundle (QCBORDecodeContext *dec, MockBPA_Bundle_t *bundle) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Declarations for bundle and block decoding.
Definition in file bsl_mock_bpa_decode.h.
int bsl_mock_decode_bundle | ( | QCBORDecodeContext * | dec, |
MockBPA_Bundle_t * | bundle | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 236 of file bsl_mock_bpa_decode.c.
References bsl_mock_decode_canonical(), bsl_mock_decode_primary(), and CHKERR1.
int bsl_mock_decode_canonical | ( | QCBORDecodeContext * | dec, |
MockBPA_CanonicalBlock_t * | blk | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 186 of file bsl_mock_bpa_decode.c.
References BSL_BUNDLECRCTYPE_16, BSL_BUNDLECRCTYPE_32, CHKERR1, and mock_bpa_crc_check().
Referenced by bsl_mock_decode_bundle().
int bsl_mock_decode_eid | ( | QCBORDecodeContext * | dec, |
BSL_HostEID_t * | eid | ||
) |
Encode a single EID.
[in] | dec | The decoder. |
[in] | eid | The EID value. The struct must already be initialized. |
Definition at line 35 of file bsl_mock_bpa_decode.c.
References bsl_mock_eid_t::as_ipn, bsl_mock_eid_t::as_raw, bsl_eid_ipn_ssp_t::auth_num, BSL_Data_CopyFrom(), BSL_Data_Init(), bsl_mock_eid_deinit(), bsl_mock_eid_init(), BSL_MOCK_EID_IPN, CHKERR1, BSL_HostEID_s::handle, bsl_eid_ipn_ssp_t::ncomp, bsl_eid_ipn_ssp_t::node_num, BSL_Data_s::ptr, bsl_mock_eid_t::scheme, bsl_mock_eid_t::ssp, and bsl_eid_ipn_ssp_t::svc_num.
Referenced by bsl_mock_bpa_init(), and bsl_mock_decode_primary().
int bsl_mock_decode_primary | ( | QCBORDecodeContext * | dec, |
MockBPA_PrimaryBlock_t * | blk | ||
) |
Encode primary block to a CBOR bytestring.
[in] | dec | The decoder. |
[in,out] | blk | The primary block structure to decode into. The struct must already be initialized. |
Definition at line 115 of file bsl_mock_bpa_decode.c.
References BSL_BUNDLE_IS_FRAGMENT, BSL_BUNDLECRCTYPE_16, BSL_BUNDLECRCTYPE_32, bsl_mock_decode_eid(), CHKERR1, mock_bpa_crc_check(), and MockBPA_EID_Init().
Referenced by bsl_mock_decode_bundle().