From 8ea370bba1b4292e8c004e0d8e23445ffdfebcf6 Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Tue, 30 Jan 2024 15:18:10 +0100 Subject: [PATCH] EVP_CIPHER-NULL.pod: Add NULL-HMAC-* algorithms --- doc/man7/EVP_CIPHER-NULL.pod | 60 +++++++++++++----------------------- 1 file changed, 22 insertions(+), 38 deletions(-) diff --git a/doc/man7/EVP_CIPHER-NULL.pod b/doc/man7/EVP_CIPHER-NULL.pod index 44e07dcf1b056..dbb767099d13b 100644 --- a/doc/man7/EVP_CIPHER-NULL.pod +++ b/doc/man7/EVP_CIPHER-NULL.pod @@ -2,71 +2,55 @@ =head1 NAME -EVP_CIPHER-NULL - The NULL EVP_CIPHER implementation +EVP_CIPHER-NULL - NULL encryption EVP_CIPHER implementation =head1 DESCRIPTION -Support for a NULL symmetric encryption using the B API. -This is used when the TLS cipher suite is TLS_NULL_WITH_NULL_NULL. -This does no encryption (just copies the data) and has a mac size of zero. +This module provides support for NULL encryption using the B API. +It simply copies the data without any encryption. -=head2 Algorithm Name +=head2 Algorithm Names -The following algorithm is available in the default provider: +The default provider offers the following algorithms: =over 4 =item "NULL" -=back - -=head2 Parameters - -This implementation supports the following parameters: - -=head3 Gettable EVP_CIPHER parameters - -See L - -=head3 Gettable EVP_CIPHER_CTX parameters - -=over 4 - -=item "keylen" (B) - -=item "ivlen" (B and ) - -=item "tls-mac" (B) +=item "NULL-HMAC-SHA256" and "NULL-HMAC-SHA384" =back -See L for further information. - -=head3 Settable EVP_CIPHER_CTX parameters - -=over 4 - -=item "tls-mac-size" (B) +=head2 Parameters -=back +The parameters supported by this implementation are detailed in +L. -See L for further information. +=head1 NOTES -=head1 CONFORMING TO +"NULL" algorithm is used when the TLS cipher suite is TLS_NULL_WITH_NULL_NULL. +This does no encryption (just copies the data) and has a mac size of zero. +This conforms to RFC 5246 section-6.2.3.1. -RFC 5246 section-6.2.3.1 +"NULL-HMAC-SHA256" and "NULL-HMAC-SHA384" are used when the TLS cipher suite is +TLS_SHA256_SHA256 and TLS_SHA384_SHA384 respectively. +This conforms to RFC 9150. =head1 SEE ALSO L, L +=head1 HISTORY + +The NULL-HMAC-SHA256 and NULL-HMAC-SHA384 ciphers were added in OpenSSL version 3.3. + =head1 COPYRIGHT -Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2021-2024 The OpenSSL Project Authors. All Rights Reserved. Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L. -=cut +=cut \ No newline at end of file