Go to the documentation of this file.
29 #ifndef SOPC_SECRET_BUFFER_H_
30 #define SOPC_SECRET_BUFFER_H_
133 #endif // SOPC_SECRET_BUFFER_H_
SOPC_SecretBuffer * SOPC_SecretBuffer_NewFromFile(const char *path)
Creates a new SecretBuffer from a file.
const SOPC_ExposedBuffer * SOPC_SecretBuffer_Expose(const SOPC_SecretBuffer *sec)
Creates a ExposedBuffer from a SecretBuffer.
uint32_t SOPC_SecretBuffer_GetLength(const SOPC_SecretBuffer *sec)
Length of the SecretBuffer.
void SOPC_SecretBuffer_Unexpose(const SOPC_ExposedBuffer *buf, const SOPC_SecretBuffer *sec)
Unexposes the buffer.
struct SOPC_SecretBuffer SOPC_SecretBuffer
Definition: sopc_secret_buffer.h:35
uint8_t SOPC_ExposedBuffer
Definition: sopc_secret_buffer.h:36
SOPC_SecretBuffer * SOPC_SecretBuffer_NewFromExposedBuffer(const SOPC_ExposedBuffer *buf, uint32_t len)
Creates a new SecretBuffer from an ExposedBuffer.
SOPC_SecretBuffer * SOPC_SecretBuffer_New(uint32_t len)
Creates a new empty SecretBuffer.
SOPC_ExposedBuffer * SOPC_SecretBuffer_ExposeModify(SOPC_SecretBuffer *sec)
Creates a ExposedBuffer from a SecretBuffer for modification.
void SOPC_SecretBuffer_DeleteClear(SOPC_SecretBuffer *sec)
Clears the SecretBuffer from its secrets and frees it.
void SOPC_SecretBuffer_UnexposeModify(SOPC_ExposedBuffer *buf, SOPC_SecretBuffer *sec)
Unexposes the buffer exposed for modification.