devcrypto_state_ctx_t

Algorithm state context

Synopsis:

#include <dev/crypto/devcrypto_plugin.h>
typedef struct _devcrypto_state_ctx {
    void* data;
    const devcrypto_algorithm_t* alg;
} devcrypto_state_ctx_t;

Data:

void* data

Algorithm-specific context data.

const devcrypto_algorithm_t* alg

The algorithm associated with this context.

Library:

devcr

Description:

The state context object is passed as a parameter to each algorithm's functions to allow algorithm-specific data to be stored and referenced. Additionally, it provides a reference to the algorithm object, which allows that object to be used.