From e8fb50583d99934a52b9a6419494e9f84996d2ae Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 2 Mar 2024 10:21:12 +0000 Subject: [PATCH] Garbage collect CUSTOM_KEY_LENGTH/SET_KEY_LENGTH These are unused defines that used to add unwanted complications in EVP_CIPHER_CTX_set_key_lenght(). ok jsing --- lib/libcrypto/evp/evp.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h index 9e203b086d2..f6123963e93 100644 --- a/lib/libcrypto/evp/evp.h +++ b/lib/libcrypto/evp/evp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: evp.h,v 1.131 2024/03/02 10:20:27 tb Exp $ */ +/* $OpenBSD: evp.h,v 1.132 2024/03/02 10:21:12 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -210,8 +210,6 @@ extern "C" { #define EVP_CIPH_ALWAYS_CALL_INIT 0x20 /* Call ctrl() to init cipher parameters */ #define EVP_CIPH_CTRL_INIT 0x40 -/* Don't use standard key length function */ -#define EVP_CIPH_CUSTOM_KEY_LENGTH 0x80 /* Don't use standard block padding */ #define EVP_CIPH_NO_PADDING 0x100 /* cipher handles random key generation */ @@ -241,7 +239,6 @@ extern "C" { /* ctrl() values */ #define EVP_CTRL_INIT 0x0 -#define EVP_CTRL_SET_KEY_LENGTH 0x1 #define EVP_CTRL_GET_RC2_KEY_BITS 0x2 #define EVP_CTRL_SET_RC2_KEY_BITS 0x3 #define EVP_CTRL_GET_RC5_ROUNDS 0x4 -- 2.20.1