diff options
Diffstat (limited to 'src/lib/libcrypto/evp/e_xcbc_d.c')
-rw-r--r-- | src/lib/libcrypto/evp/e_xcbc_d.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/lib/libcrypto/evp/e_xcbc_d.c b/src/lib/libcrypto/evp/e_xcbc_d.c index 5a3d535661..dc01cbb982 100644 --- a/src/lib/libcrypto/evp/e_xcbc_d.c +++ b/src/lib/libcrypto/evp/e_xcbc_d.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_xcbc_d.c,v 1.16 2024/01/04 17:38:36 tb Exp $ */ | 1 | /* $OpenBSD: e_xcbc_d.c,v 1.17 2024/01/07 15:42:57 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -84,16 +84,18 @@ typedef struct { | |||
84 | #define data(ctx) ((DESX_CBC_KEY *)(ctx)->cipher_data) | 84 | #define data(ctx) ((DESX_CBC_KEY *)(ctx)->cipher_data) |
85 | 85 | ||
86 | static const EVP_CIPHER d_xcbc_cipher = { | 86 | static const EVP_CIPHER d_xcbc_cipher = { |
87 | NID_desx_cbc, | 87 | .nid = NID_desx_cbc, |
88 | 8, 24, 8, | 88 | .block_size = 8, |
89 | EVP_CIPH_CBC_MODE, | 89 | .key_len = 24, |
90 | desx_cbc_init_key, | 90 | .iv_len = 8, |
91 | desx_cbc_cipher, | 91 | .flags = EVP_CIPH_CBC_MODE, |
92 | NULL, | 92 | .init = desx_cbc_init_key, |
93 | sizeof(DESX_CBC_KEY), | 93 | .do_cipher = desx_cbc_cipher, |
94 | EVP_CIPHER_set_asn1_iv, | 94 | .cleanup = NULL, |
95 | EVP_CIPHER_get_asn1_iv, | 95 | .ctx_size = sizeof(DESX_CBC_KEY), |
96 | NULL, | 96 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
97 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | ||
98 | .ctrl = NULL, | ||
97 | }; | 99 | }; |
98 | 100 | ||
99 | const EVP_CIPHER * | 101 | const EVP_CIPHER * |