BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
SecOperation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 The Johns Hopkins University Applied Physics
3 * Laboratory LLC.
4 *
5 * This file is part of the Bundle Protocol Security Library (BSL).
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * This work was performed for the Jet Propulsion Laboratory, California
18 * Institute of Technology, sponsored by the United States Government under
19 * the prime contract 80NM0018D0004 between the Caltech and NASA under
20 * subcontract 1700763.
21 */
27#ifndef BSLB_SECOPERATIONS_H_
28#define BSLB_SECOPERATIONS_H_
29
30#include <stdint.h>
31
32#include <m-list.h>
33
34#include <BPSecLib_Private.h>
35
36#include "SecParam.h"
37
39{
41 uint64_t context_id;
42
45
47 uint64_t sec_block_num;
48
51
54 BSL_SecBlockType_e _service_type;
55 BSLB_SecParamList_t _param_list;
56};
57
58// NOLINTBEGIN
60LIST_DEF(BSLB_SecOperList, BSL_SecOper_t, M_POD_OPLIST)
61// NOLINTEND
62
63#endif /* BSLB_SECOPERATIONS_H_ */
Single entry-point include file for all of the BPSec Lib (BSL) frontend API.
BSL_SecBlockType_e
RFC 9172-specified block type codes for BIB and BCB.
BSL_PolicyAction_e
Codes indicating the fate of a block if a security operation over it fails.
BSL_SecRole_e
Security role of an operation.
Defines the RFC 9172 Security Parameter of the Abstract Security Block.
uint64_t context_id
Security context ID.
uint64_t target_block_num
Bundle's block ID over which the security operation is applied.
BSL_SecRole_e _role
Private enumeration indicating the role (e.g., acceptor vs verifier)
uint64_t sec_block_num
Bundle's block ID which contains the security parameters and results for this operation.
BSL_PolicyAction_e failure_code
Code for handing what to do to the block or bundle if security processing fails.