Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 577 Lines • ▼ Show 20 Lines | |||||
#define CRYPTO_OP_DECRYPT 0x0 | #define CRYPTO_OP_DECRYPT 0x0 | ||||
#define CRYPTO_OP_ENCRYPT 0x1 | #define CRYPTO_OP_ENCRYPT 0x1 | ||||
#define CRYPTO_OP_IS_ENCRYPT(op) ((op) & CRYPTO_OP_ENCRYPT) | #define CRYPTO_OP_IS_ENCRYPT(op) ((op) & CRYPTO_OP_ENCRYPT) | ||||
#define CRYPTO_OP_COMPUTE_DIGEST 0x0 | #define CRYPTO_OP_COMPUTE_DIGEST 0x0 | ||||
#define CRYPTO_OP_VERIFY_DIGEST 0x2 | #define CRYPTO_OP_VERIFY_DIGEST 0x2 | ||||
#define CRYPTO_OP_DECOMPRESS CRYPTO_OP_DECRYPT | #define CRYPTO_OP_DECOMPRESS CRYPTO_OP_DECRYPT | ||||
#define CRYPTO_OP_COMPRESS CRYPTO_OP_ENCRYPT | #define CRYPTO_OP_COMPRESS CRYPTO_OP_ENCRYPT | ||||
#define CRYPTO_OP_IS_COMPRESS(op) ((op) & CRYPTO_OP_COMPRESS) | #define CRYPTO_OP_IS_COMPRESS(op) ((op) & CRYPTO_OP_COMPRESS) | ||||
#define CRYPTO_OP_SKIP_DIGEST 0x4 /* skip all digest processing */ | |||||
/* | /* | ||||
* Hints passed to process methods. | * Hints passed to process methods. | ||||
*/ | */ | ||||
#define CRYPTO_HINT_MORE 0x1 /* more ops coming shortly */ | #define CRYPTO_HINT_MORE 0x1 /* more ops coming shortly */ | ||||
uint32_t crypto_ses2hid(crypto_session_t crypto_session); | uint32_t crypto_ses2hid(crypto_session_t crypto_session); | ||||
uint32_t crypto_ses2caps(crypto_session_t crypto_session); | uint32_t crypto_ses2caps(crypto_session_t crypto_session); | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |