BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
SecResult.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 */
22
69#ifndef BSLB_SECRESULT_H_
70#define BSLB_SECRESULT_H_
71
72#include <stdint.h>
73
74#include <m-list.h>
75
76#include <BPSecLib_Private.h>
77
79{
81 uint64_t result_id;
82
84 uint64_t context_id;
85
88
90 uint8_t _bytes[BSL_DEFAULT_BYTESTR_LEN + 1];
91
93 size_t _bytelen;
94};
95
96// TODO(BVB) - Doxygen suppress and annotate.
97// NOLINTBEGIN
98LIST_DEF(BSLB_SecResultList, BSL_SecResult_t, M_POD_OPLIST)
99// NOLINTEND
100
101#endif /* BSLB_SECRESULT_H_ */
Single entry-point include file for all of the BPSec Lib (BSL) frontend API.
uint8_t _bytes[BSL_DEFAULT_BYTESTR_LEN+1]
Result as byte array, up to a given maximum.
Definition SecResult.h:90
uint64_t target_block_num
Target block id, put in here for convenience.
Definition SecResult.h:87
uint64_t result_id
Result ID, which is context depdendent, based on security context.
Definition SecResult.h:81
size_t _bytelen
Length of data (in bytes) of the contained bytestring. Always less than BSL_DEFAULT_BYTESTR_LEN.
Definition SecResult.h:93
uint64_t context_id
Context ID, put in here for convenience.
Definition SecResult.h:84