NAME
buffer-shldata.h - buffer interface for shield data protocol
SYNOPSIS
#include <limb/buffer-shldata.h>
DESCRIPTION
The header defines functions used to encrypt/decrypt data using the "shielded data" protocol through the buffer.h(0) interface.
Refer to shldata(5) for more about shielded data protocol.
Types
The following types are defined :
buffer_shldata_ctx
An opaque structure to e given to the functions below.
Macros
The following macros are defined :
BUFFER_SHLDATA_ZERO
Value to initialize a buffer_shldata_ctx to.
Functions
The following functions are defined :
To initialize encryption of data through the shielded data protocol.
To encrypt data through the shielded data protocol.
To finalize encryption of data through the shielded data protocol.
Similar to buffer_shldata_getinit(3) but using the specified stralloc as heap-allocated temporary space.
To initialize decryption of data through the shielded data protocol.
Returns the length of encrypted data to be decrypted through the shielded data protocol.
To decrypt data through the shielded data protocol.
Similar to buffer_shldata_getfinal(3) but using the specified stralloc as heap-allocated temporary space.
To finalize decryption of data through the shielded data protocol.
To free memory associated with the given opaque structure.