Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_aes_xts.c
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
#include <opencrypto/xform_enc.h> | #include <opencrypto/xform_enc.h> | ||||
static int aes_xts_setkey(void *, const uint8_t *, int); | static int aes_xts_setkey(void *, const uint8_t *, int); | ||||
static void aes_xts_encrypt(void *, const uint8_t *, uint8_t *); | static void aes_xts_encrypt(void *, const uint8_t *, uint8_t *); | ||||
static void aes_xts_decrypt(void *, const uint8_t *, uint8_t *); | static void aes_xts_decrypt(void *, const uint8_t *, uint8_t *); | ||||
static void aes_xts_reinit(void *, const uint8_t *); | static void aes_xts_reinit(void *, const uint8_t *); | ||||
/* Encryption instances */ | /* Encryption instances */ | ||||
struct enc_xform enc_xform_aes_xts = { | const struct enc_xform enc_xform_aes_xts = { | ||||
.type = CRYPTO_AES_XTS, | .type = CRYPTO_AES_XTS, | ||||
.name = "AES-XTS", | .name = "AES-XTS", | ||||
.ctxsize = sizeof(struct aes_xts_ctx), | .ctxsize = sizeof(struct aes_xts_ctx), | ||||
.blocksize = AES_BLOCK_LEN, | .blocksize = AES_BLOCK_LEN, | ||||
.ivsize = AES_XTS_IV_LEN, | .ivsize = AES_XTS_IV_LEN, | ||||
.minkey = AES_XTS_MIN_KEY, | .minkey = AES_XTS_MIN_KEY, | ||||
.maxkey = AES_XTS_MAX_KEY, | .maxkey = AES_XTS_MAX_KEY, | ||||
.encrypt = aes_xts_encrypt, | .encrypt = aes_xts_encrypt, | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |