Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
#define CRYPTO_HAS_OUTPUT_BUFFER(crp) \ | #define CRYPTO_HAS_OUTPUT_BUFFER(crp) \ | ||||
((crp)->crp_obuf.cb_type != CRYPTO_BUF_NONE) | ((crp)->crp_obuf.cb_type != CRYPTO_BUF_NONE) | ||||
/* Flags in crp_op. */ | /* Flags in crp_op. */ | ||||
#define CRYPTO_OP_DECRYPT 0x0 | #define CRYPTO_OP_DECRYPT 0x0 | ||||
#define CRYPTO_OP_ENCRYPT 0x1 | #define CRYPTO_OP_ENCRYPT 0x1 | ||||
#define CRYPTO_OP_RECRYPT 0x4 | |||||
#define CRYPTO_OP_IS_ENCRYPT(op) ((op) & CRYPTO_OP_ENCRYPT) | #define CRYPTO_OP_IS_ENCRYPT(op) ((op) & CRYPTO_OP_ENCRYPT) | ||||
#define CRYPTO_OP_IS_RECRYPT(op) \ | |||||
(((op) & (CRYPTO_OP_RECRYPT | CRYPTO_OP_ENCRYPT)) == \ | |||||
(CRYPTO_OP_RECRYPT | CRYPTO_OP_DECRYPT)) | |||||
#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) | ||||
/* | /* | ||||
* Hints passed to process methods. | * Hints passed to process methods. | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |