diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2025-01-09 04:33:18 +0100 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2025-01-10 12:23:58 +0100 |
commit | 0f286386034b914e64ed9e60b26c49167062b13e (patch) | |
tree | e3ceffca4024ea5816e469bb5f1c3bf112c19222 /providers/implementations/encode_decode/encode_key2text.c | |
parent | Fix buildinf.h generation for space and backslash (diff) | |
download | openssl-0f286386034b914e64ed9e60b26c49167062b13e.tar.xz openssl-0f286386034b914e64ed9e60b26c49167062b13e.zip |
Pre-ML-KEM/DSA decoder/encoder refactor
Simplify some decoder/encoder internals to facilitate upcoming support
for ML-KEM and ML-DSA.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26355)
Diffstat (limited to '')
-rw-r--r-- | providers/implementations/encode_decode/encode_key2text.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/providers/implementations/encode_decode/encode_key2text.c b/providers/implementations/encode_decode/encode_key2text.c index db0c8abe82..7a47c61ee8 100644 --- a/providers/implementations/encode_decode/encode_key2text.c +++ b/providers/implementations/encode_decode/encode_key2text.c @@ -282,9 +282,6 @@ static int dh_to_text(BIO *out, const void *key, int selection) return 1; } - -# define dh_input_type "DH" -# define dhx_input_type "DHX" #endif /* ---------------------------------------------------------------------- */ @@ -352,8 +349,6 @@ static int dsa_to_text(BIO *out, const void *key, int selection) return 1; } - -# define dsa_input_type "DSA" #endif /* ---------------------------------------------------------------------- */ @@ -557,12 +552,6 @@ err: OPENSSL_free(pub); return ret; } - -# define ec_input_type "EC" - -# ifndef OPENSSL_NO_SM2 -# define sm2_input_type "SM2" -# endif #endif /* ---------------------------------------------------------------------- */ @@ -620,10 +609,6 @@ static int ecx_to_text(BIO *out, const void *key, int selection) return 1; } -# define ed25519_input_type "ED25519" -# define ed448_input_type "ED448" -# define x25519_input_type "X25519" -# define x448_input_type "X448" #endif /* ---------------------------------------------------------------------- */ @@ -780,9 +765,6 @@ static int rsa_to_text(BIO *out, const void *key, int selection) return ret; } -#define rsa_input_type "RSA" -#define rsapss_input_type "RSA-PSS" - /* ---------------------------------------------------------------------- */ static void *key2text_newctx(void *provctx) |