BSL v0.0.0 - 0.g33cf081
AMMOS Bundle Protocol Security Library (BSL)
|
Implementation of flat-buffer sequential access. More...
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <BPSecLib_Private.h>
#include "backend/UtilDefs_SeqReadWrite.h"
Functions | |
int | BSL_SeqReader_Destroy (BSL_SeqReader_t *obj) |
Release resources from a sequential reader. | |
int | BSL_SeqReader_Get (BSL_SeqReader_t *obj, uint8_t *buf, size_t *bufsize) |
Iterate a sequential reader. | |
int | BSL_SeqWriter_Destroy (BSL_SeqWriter_t *obj) |
Release resources from a sequential writer and commit the writes. | |
int | BSL_SeqWriter_Put (BSL_SeqWriter_t *obj, const uint8_t *buf, size_t bufsize) |
Iterate a sequential writer. | |
Implementation of flat-buffer sequential access.
int BSL_SeqReader_Destroy | ( | BSL_SeqReader_t * | obj | ) |
Release resources from a sequential reader.
This also frees memory of the instance itself.
[in,out] | obj | The reader handle. |
References BSL_FREE, and BSL_SUCCESS.
Referenced by BSL_API_QuerySecurity(), BSLX_BCB_Encrypt(), and BSLX_BIB_GenIPPT().
int BSL_SeqReader_Get | ( | BSL_SeqReader_t * | obj, |
uint8_t * | buf, | ||
size_t * | bufsize | ||
) |
Iterate a sequential reader.
[in,out] | obj | The reader handle. |
[out] | buf | The output buffer to fill. |
[in,out] | bufsize | The available output buffer size as input, set to the used buffer size as output. |
Referenced by BSL_API_QuerySecurity(), BSL_AuthCtx_DigestSeq(), BSL_Cipher_AddSeq(), and BSLX_BIB_GenIPPT().
int BSL_SeqWriter_Destroy | ( | BSL_SeqWriter_t * | obj | ) |
Release resources from a sequential writer and commit the writes.
This also frees memory of the instance itself.
[in,out] | obj | The writer handle. |
References BSL_FREE, and BSL_SUCCESS.
Referenced by BSLX_BCB_Encrypt().
int BSL_SeqWriter_Put | ( | BSL_SeqWriter_t * | obj, |
const uint8_t * | buf, | ||
size_t | bufsize | ||
) |
Iterate a sequential writer.
obj | The writer handle. | |
[in] | buf | The input buffer to copy from. |
[in,out] | bufsize | The available input buffer size as input, set to the used buffer size as output. |
Referenced by BSL_Cipher_AddSeq(), and BSL_Cipher_FinalizeSeq().