summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/evp_locl.h
diff options
context:
space:
mode:
authorjsing <>2022-09-03 20:12:24 +0000
committerjsing <>2022-09-03 20:12:24 +0000
commitbd0c1e8c9f376fe4beec69a2931ce916e2f1e76a (patch)
treeb1cd86c4edb44cbdeaac4a4fffc22955c6f57863 /src/lib/libcrypto/evp/evp_locl.h
parente6ddefe813ee122cf52b085578a0a3649bd9f2cd (diff)
downloadopenbsd-bd0c1e8c9f376fe4beec69a2931ce916e2f1e76a.tar.gz
openbsd-bd0c1e8c9f376fe4beec69a2931ce916e2f1e76a.tar.bz2
openbsd-bd0c1e8c9f376fe4beec69a2931ce916e2f1e76a.zip
Remove now unused IMPLEMENT_BLOCK_CIPHER macro.
Also remove various comments noting that it cannot be used for certain block ciphers (which kinda defeats the purpose of having a generic implementation in the first place).
Diffstat (limited to 'src/lib/libcrypto/evp/evp_locl.h')
-rw-r--r--src/lib/libcrypto/evp/evp_locl.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/evp/evp_locl.h b/src/lib/libcrypto/evp/evp_locl.h
index 43e0ac333d..c5ff49d2b2 100644
--- a/src/lib/libcrypto/evp/evp_locl.h
+++ b/src/lib/libcrypto/evp/evp_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_locl.h,v 1.23 2022/05/05 08:42:27 tb Exp $ */ 1/* $OpenBSD: evp_locl.h,v 1.24 2022/09/03 20:12:24 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -371,15 +371,6 @@ static const EVP_CIPHER cname##_ecb = {\
371const EVP_CIPHER *EVP_##cname##_ecb(void) { return &cname##_ecb; } 371const EVP_CIPHER *EVP_##cname##_ecb(void) { return &cname##_ecb; }
372*/ 372*/
373 373
374#define IMPLEMENT_BLOCK_CIPHER(cname, ksched, cprefix, kstruct, nid, \
375 block_size, key_len, iv_len, cbits, \
376 flags, init_key, \
377 cleanup, set_asn1, get_asn1, ctrl) \
378 BLOCK_CIPHER_all_funcs(cname, cprefix, cbits, kstruct, ksched) \
379 BLOCK_CIPHER_defs(cname, kstruct, nid, block_size, key_len, iv_len, \
380 cbits, flags, init_key, cleanup, set_asn1, \
381 get_asn1, ctrl)
382
383#define EVP_C_DATA(kstruct, ctx) ((kstruct *)(ctx)->cipher_data) 374#define EVP_C_DATA(kstruct, ctx) ((kstruct *)(ctx)->cipher_data)
384 375
385#define IMPLEMENT_CFBR(cipher,cprefix,kstruct,ksched,keysize,cbits,iv_len) \ 376#define IMPLEMENT_CFBR(cipher,cprefix,kstruct,ksched,keysize,cbits,iv_len) \