General definitions in cryptodev.h

Preprocessor macro definitions for the cryptodev.h header file in the devcr library

Definitions:

#define AALG_MAX_RESULT_LEN 64

Maximum algorithm result length.

#define HASH_MAX_LEN AALG_MAX_RESULT_LEN

Maximum hash algorithm result length.

#define CRYPTO_HMAC_MAX_KEY_LEN 512

Maximum HMAC key length.

#define CRYPTO_CIPHER_MAX_KEY_LEN 64

Maximum cipher key length.

#define CRIOGET_NOT_NEEDED 1

CRIOGET command file descriptor duplicate flag. This flag indicates that to use the cryptography device for operations, a driver doesn't require the caller to call ioctl(fd, CRIOGET, &dupfd) to get an extra file descriptor.

Library:

devcr