aboutsummaryrefslogtreecommitdiff
path: root/decrepit/cast/cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'decrepit/cast/cast.c')
-rw-r--r--decrepit/cast/cast.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/decrepit/cast/cast.c b/decrepit/cast/cast.c
index 314e3da..9e87b3f 100644
--- a/decrepit/cast/cast.c
+++ b/decrepit/cast/cast.c
@@ -437,21 +437,19 @@ static int cast_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in,
}
static const EVP_CIPHER cast5_ecb = {
- NID_cast5_ecb, CAST_BLOCK,
- CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
- sizeof(CAST_KEY), EVP_CIPH_ECB_MODE | EVP_CIPH_VARIABLE_LENGTH,
- NULL /* app_data */, cast_init_key,
- cast_ecb_cipher, NULL /* cleanup */,
- NULL /* ctrl */,
+ NID_cast5_ecb, CAST_BLOCK,
+ CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
+ sizeof(CAST_KEY), EVP_CIPH_ECB_MODE | EVP_CIPH_VARIABLE_LENGTH,
+ cast_init_key, cast_ecb_cipher,
+ NULL /* cleanup */, NULL /* ctrl */,
};
static const EVP_CIPHER cast5_cbc = {
- NID_cast5_cbc, CAST_BLOCK,
- CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
- sizeof(CAST_KEY), EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH,
- NULL /* app_data */, cast_init_key,
- cast_cbc_cipher, NULL /* cleanup */,
- NULL /* ctrl */,
+ NID_cast5_cbc, CAST_BLOCK,
+ CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
+ sizeof(CAST_KEY), EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH,
+ cast_init_key, cast_cbc_cipher,
+ NULL /* cleanup */, NULL /* ctrl */,
};
const EVP_CIPHER *EVP_cast5_ecb(void) { return &cast5_ecb; }