Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/cryptodev.h
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
#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); | ||||
void *crypto_get_driver_session(crypto_session_t crypto_session); | void *crypto_get_driver_session(crypto_session_t crypto_session); | ||||
const struct crypto_session_params *crypto_get_params( | const struct crypto_session_params *crypto_get_params( | ||||
crypto_session_t crypto_session); | crypto_session_t crypto_session); | ||||
struct auth_hash *crypto_auth_hash(const struct crypto_session_params *csp); | const struct auth_hash *crypto_auth_hash(const struct crypto_session_params *csp); | ||||
struct enc_xform *crypto_cipher(const struct crypto_session_params *csp); | const struct enc_xform *crypto_cipher(const struct crypto_session_params *csp); | ||||
MALLOC_DECLARE(M_CRYPTO_DATA); | MALLOC_DECLARE(M_CRYPTO_DATA); | ||||
extern int crypto_newsession(crypto_session_t *cses, | extern int crypto_newsession(crypto_session_t *cses, | ||||
const struct crypto_session_params *params, int hard); | const struct crypto_session_params *params, int hard); | ||||
extern void crypto_freesession(crypto_session_t cses); | extern void crypto_freesession(crypto_session_t cses); | ||||
#define CRYPTOCAP_F_HARDWARE CRYPTO_FLAG_HARDWARE | #define CRYPTOCAP_F_HARDWARE CRYPTO_FLAG_HARDWARE | ||||
#define CRYPTOCAP_F_SOFTWARE CRYPTO_FLAG_SOFTWARE | #define CRYPTOCAP_F_SOFTWARE CRYPTO_FLAG_SOFTWARE | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |