Algorithm object
#include <SPECIFY HEADER LOCATION/devcrypto_plugin.h>
typedef struct _devcrypto_algorithm { const char name[DEVCRYPTO_ALG_NAME_MAX]; uint32_t type; devcrypto_algorithm_type_t union { devcrypto_digest_t digest; devcrypto_cipher_t cipher; devcrypto_aead_cipher_t aead_cipher; devcrypto_mac_t mac; } devcrypto_algorithm_op_init init; devcrypto_algorithm_op_uninit uninit; void* extra; } devcrypto_algorithm_t;
The algorithm name.
The algorithm type. See devcrypto_algorithm_type_t.
The digest algorithm object.
The cipher algorithm object.
The AEAD cipher algorithm object.
The MAC algorithm object.
The algorithm initialization function.
The algorithm un-initialization function.
Extra storage for plugin use.