|
BSL v1.1.1 - 19.g31939de
AMMOS Bundle Protocol Security Library (BSL)
|
Include dependency graph for SecOutcome.c:Functions | |
| size_t | BSL_SecOutcome_Sizeof (void) |
| Returns the size of the BSL_SecOutcome_s structure. | |
| void | BSL_SecOutcome_Init (BSL_SecOutcome_t *self, const BSL_SecOper_t *sec_oper) |
| Populate a pre-allocated security outcome struct. | |
| void | BSL_SecOutcome_Deinit (BSL_SecOutcome_t *self) |
| Release any resources owned by this security outcome. | |
| bool | BSL_SecOutcome_IsConsistent (const BSL_SecOutcome_t *self) |
| Return true if internal invariants hold. | |
| BSL_IdValPair_t * | BSL_SecOutcome_AppendResult (BSL_SecOutcome_t *self) |
| Append a Security Result to this outcome. | |
| size_t | BSL_SecOutcome_CountResults (const BSL_SecOutcome_t *self) |
| Get the number of results. | |
| const BSL_IdValPair_t * | BSL_SecOutcome_GetResultAtIndex (const BSL_SecOutcome_t *self, size_t index) |
| Get the result at index i. | |
| size_t | BSL_SecOutcome_CountParams (const BSL_SecOutcome_t *self) |
| Returns number of parameters in this outcome. | |
| const BSL_IdValPair_t * | BSL_SecOutcome_GetParamAt (const BSL_SecOutcome_t *self, size_t index) |
| Get the security parameter from the security outcome at the provided index. | |
| BSL_IdValPair_t * | BSL_SecOutcome_AppendParam (BSL_SecOutcome_t *self) |
| Append a Security Parameter to this outcome. | |
| BSL_IdValPair_t * BSL_SecOutcome_AppendParam | ( | BSL_SecOutcome_t * | self | ) |
Append a Security Parameter to this outcome.
| [in,out] | self | Non-NULL pointer to this security outcome. |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by BSLX_BCB_Execute(), and BSLX_BIB_Execute().
| BSL_IdValPair_t * BSL_SecOutcome_AppendResult | ( | BSL_SecOutcome_t * | self | ) |
Append a Security Result to this outcome.
| [in,out] | self | Non-NULL pointer to this security outcome. |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by BSLX_BCB_Execute(), and BSLX_BIB_Execute().
| size_t BSL_SecOutcome_CountParams | ( | const BSL_SecOutcome_t * | self | ) |
Returns number of parameters in this outcome.
| [in] | self | This outcome |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by test_sec_source_keywrap().
| size_t BSL_SecOutcome_CountResults | ( | const BSL_SecOutcome_t * | self | ) |
Get the number of results.
| [in] | self | this sec outcome |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), and test_sec_source_keywrap().
| void BSL_SecOutcome_Deinit | ( | BSL_SecOutcome_t * | self | ) |
Release any resources owned by this security outcome.
| [in,out] | self | Non-Null pointer to this security outcome. |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by BSL_SecCtx_ExecutePolicyActionSet(), test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), test_sec_accept_keyunwrap(), and test_sec_source_keywrap().
| const BSL_IdValPair_t * BSL_SecOutcome_GetParamAt | ( | const BSL_SecOutcome_t * | self, |
| size_t | index | ||
| ) |
Get the security parameter from the security outcome at the provided index.
| [in] | self | security outcome |
| [in] | index | index to retrieve security parameter from |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by test_sec_source_keywrap().
| const BSL_IdValPair_t * BSL_SecOutcome_GetResultAtIndex | ( | const BSL_SecOutcome_t * | self, |
| size_t | index | ||
| ) |
Get the result at index i.
Panics if i is out of range.
| [in] | self | This outcome |
| [in] | index | Index in the list to retrieve |
References ASSERT_PRECONDITION, and BSL_SecOutcome_IsConsistent().
Referenced by test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Source(), and test_sec_source_keywrap().
| void BSL_SecOutcome_Init | ( | BSL_SecOutcome_t * | self, |
| const BSL_SecOper_t * | sec_oper | ||
| ) |
Populate a pre-allocated security outcome struct.
| [in,out] | self | Non-Null pointer to this security outcome. |
| [in] | sec_oper | Security operation containing the necessary info. |
References ASSERT_ARG_NONNULL, ASSERT_POSTCONDITION, ASSERT_PRECONDITION, BSL_SecOper_IsConsistent(), and BSL_SecOutcome_IsConsistent().
Referenced by BSL_SecCtx_ExecutePolicyActionSet(), test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), test_sec_accept_keyunwrap(), and test_sec_source_keywrap().
| bool BSL_SecOutcome_IsConsistent | ( | const BSL_SecOutcome_t * | self | ) |
Return true if internal invariants hold.
| [in] | self | This sec outcome. |
References CHK_AS_BOOL.
Referenced by BSL_ExecBIBVerifierAcceptor(), BSL_SecOutcome_AppendParam(), BSL_SecOutcome_AppendResult(), BSL_SecOutcome_CountParams(), BSL_SecOutcome_CountResults(), BSL_SecOutcome_Deinit(), BSL_SecOutcome_GetParamAt(), BSL_SecOutcome_GetResultAtIndex(), and BSL_SecOutcome_Init().
| size_t BSL_SecOutcome_Sizeof | ( | void | ) |
Returns the size of the BSL_SecOutcome_s structure.
Referenced by BSL_SecCtx_ExecutePolicyActionSet(), test_RFC9173_AppendixA_Example1_BIB_Source(), test_RFC9173_AppendixA_Example2_BCB_Acceptor(), test_RFC9173_AppendixA_Example2_BCB_Source(), test_sec_accept_keyunwrap(), and test_sec_source_keywrap().