Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/xform_cml.c
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#include <crypto/camellia/camellia.h> | #include <crypto/camellia/camellia.h> | ||||
#include <opencrypto/xform_enc.h> | #include <opencrypto/xform_enc.h> | ||||
static int cml_setkey(void *, const uint8_t *, int); | static int cml_setkey(void *, const uint8_t *, int); | ||||
static void cml_encrypt(void *, const uint8_t *, uint8_t *); | static void cml_encrypt(void *, const uint8_t *, uint8_t *); | ||||
static void cml_decrypt(void *, const uint8_t *, uint8_t *); | static void cml_decrypt(void *, const uint8_t *, uint8_t *); | ||||
/* Encryption instances */ | /* Encryption instances */ | ||||
struct enc_xform enc_xform_camellia = { | const struct enc_xform enc_xform_camellia = { | ||||
.type = CRYPTO_CAMELLIA_CBC, | .type = CRYPTO_CAMELLIA_CBC, | ||||
.name = "Camellia-CBC", | .name = "Camellia-CBC", | ||||
.ctxsize = sizeof(camellia_ctx), | .ctxsize = sizeof(camellia_ctx), | ||||
.blocksize = CAMELLIA_BLOCK_LEN, | .blocksize = CAMELLIA_BLOCK_LEN, | ||||
.ivsize = CAMELLIA_BLOCK_LEN, | .ivsize = CAMELLIA_BLOCK_LEN, | ||||
.minkey = CAMELLIA_MIN_KEY, | .minkey = CAMELLIA_MIN_KEY, | ||||
.maxkey = CAMELLIA_MAX_KEY, | .maxkey = CAMELLIA_MAX_KEY, | ||||
.encrypt = cml_encrypt, | .encrypt = cml_encrypt, | ||||
Show All 29 Lines |