From 3e566818f747baa135e1b693ab2ab67fe4f942e2 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 2 Dec 2025 13:13:01 +0000 Subject: [crypto] Remove obsolete maximum output length method Now that public-key algorithms use ASN.1 builders to dynamically allocate the output data, there is no further need for callers to be able to determine the maximum output length. Signed-off-by: Michael Brown --- src/crypto/crypto_null.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/crypto/crypto_null.c') diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c index e8f8cbde8..e80f2707f 100644 --- a/src/crypto/crypto_null.c +++ b/src/crypto/crypto_null.c @@ -93,10 +93,6 @@ struct cipher_algorithm cipher_null = { .auth = cipher_null_auth, }; -size_t pubkey_null_max_len ( const struct asn1_cursor *key __unused ) { - return 0; -} - int pubkey_null_encrypt ( const struct asn1_cursor *key __unused, const struct asn1_cursor *plaintext __unused, struct asn1_builder *ciphertext __unused ) { @@ -125,7 +121,6 @@ int pubkey_null_verify ( const struct asn1_cursor *key __unused, struct pubkey_algorithm pubkey_null = { .name = "null", - .max_len = pubkey_null_max_len, .encrypt = pubkey_null_encrypt, .decrypt = pubkey_null_decrypt, .sign = pubkey_null_sign, -- cgit v1.2.3-55-g7522