BSL v0.0.0 - 0.g33cf081
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
SecParam.h File Reference

Defines the RFC 9172 Security Parameter of the Abstract Security Block. More...

#include <stdint.h>
#include <m-bstring.h>
#include <m-array.h>
#include <BPSecLib_Private.h>
+ Include dependency graph for SecParam.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  BSL_SecParam_t
 Represents a security parameter in an ASB as defined in RFC9172. More...
 

Macros

#define M_OPL_BSL_SecParam_t()
 OPLIST for ::BSL_SecParam_t.
 

Detailed Description

Defines the RFC 9172 Security Parameter of the Abstract Security Block.

Implementation of a RFC9172 Parameter.

The details from the RFC Section 3.6 [3] are as follows:

This field captures one or more security context parameters that should be used when processing the security service described by this security block. This field SHALL be represented by a CBOR array. Each entry in this array is a single security context parameter. A single parameter SHALL also be represented as a CBOR array comprising a 2-tuple of the Id and value of the parameter, as follows.

Parameter Id:

  • This field identifies which parameter is being specified.
  • This field SHALL be represented as a CBOR unsigned integer.
  • Parameter Ids are selected as described in Section 3.10.

Parameter Value:

  • This field captures the value associated with this parameter.
  • This field SHALL be represented by the applicable CBOR representation of the parameter, in accordance with Section 3.10.

Author
Bill..nosp@m.Van..nosp@m.Besie.nosp@m.n@jh.nosp@m.uapl..nosp@m.edu

Macro Definition Documentation

◆ M_OPL_BSL_SecParam_t

#define M_OPL_BSL_SecParam_t ( )
Value:
(INIT(API_2(BSL_SecParam_Init)), INIT_SET(API_6(BSL_SecParam_InitSet)), CLEAR(API_2(BSL_SecParam_Deinit)), \
SET(API_6(BSL_SecParam_Set)))
void BSL_SecParam_Init(BSL_SecParam_t *self)
Initialize to a default empty state.
Definition SecParam.c:34
void BSL_SecParam_Set(BSL_SecParam_t *self, const BSL_SecParam_t *src)
Overwrite with a copy of another value.
Definition SecParam.c:53
void BSL_SecParam_InitSet(BSL_SecParam_t *self, const BSL_SecParam_t *src)
Initialize to a copy of another value.
Definition SecParam.c:41
void BSL_SecParam_Deinit(BSL_SecParam_t *self)
De-initialize a parameter.
Definition SecParam.c:47

OPLIST for ::BSL_SecParam_t.