mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Add documentation for "NULL" cipher and digest algorithms.
Fixes #20340 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20356)
This commit is contained in:
parent
359d6a26d6
commit
f7d76c3d7d
@ -4265,6 +4265,10 @@ DEPEND[html/man7/EVP_CIPHER-IDEA.html]=man7/EVP_CIPHER-IDEA.pod
|
||||
GENERATE[html/man7/EVP_CIPHER-IDEA.html]=man7/EVP_CIPHER-IDEA.pod
|
||||
DEPEND[man/man7/EVP_CIPHER-IDEA.7]=man7/EVP_CIPHER-IDEA.pod
|
||||
GENERATE[man/man7/EVP_CIPHER-IDEA.7]=man7/EVP_CIPHER-IDEA.pod
|
||||
DEPEND[html/man7/EVP_CIPHER-NULL.html]=man7/EVP_CIPHER-NULL.pod
|
||||
GENERATE[html/man7/EVP_CIPHER-NULL.html]=man7/EVP_CIPHER-NULL.pod
|
||||
DEPEND[man/man7/EVP_CIPHER-NULL.7]=man7/EVP_CIPHER-NULL.pod
|
||||
GENERATE[man/man7/EVP_CIPHER-NULL.7]=man7/EVP_CIPHER-NULL.pod
|
||||
DEPEND[html/man7/EVP_CIPHER-RC2.html]=man7/EVP_CIPHER-RC2.pod
|
||||
GENERATE[html/man7/EVP_CIPHER-RC2.html]=man7/EVP_CIPHER-RC2.pod
|
||||
DEPEND[man/man7/EVP_CIPHER-RC2.7]=man7/EVP_CIPHER-RC2.pod
|
||||
@ -4429,6 +4433,10 @@ DEPEND[html/man7/EVP_MD-MDC2.html]=man7/EVP_MD-MDC2.pod
|
||||
GENERATE[html/man7/EVP_MD-MDC2.html]=man7/EVP_MD-MDC2.pod
|
||||
DEPEND[man/man7/EVP_MD-MDC2.7]=man7/EVP_MD-MDC2.pod
|
||||
GENERATE[man/man7/EVP_MD-MDC2.7]=man7/EVP_MD-MDC2.pod
|
||||
DEPEND[html/man7/EVP_MD-NULL.html]=man7/EVP_MD-NULL.pod
|
||||
GENERATE[html/man7/EVP_MD-NULL.html]=man7/EVP_MD-NULL.pod
|
||||
DEPEND[man/man7/EVP_MD-NULL.7]=man7/EVP_MD-NULL.pod
|
||||
GENERATE[man/man7/EVP_MD-NULL.7]=man7/EVP_MD-NULL.pod
|
||||
DEPEND[html/man7/EVP_MD-RIPEMD160.html]=man7/EVP_MD-RIPEMD160.pod
|
||||
GENERATE[html/man7/EVP_MD-RIPEMD160.html]=man7/EVP_MD-RIPEMD160.pod
|
||||
DEPEND[man/man7/EVP_MD-RIPEMD160.7]=man7/EVP_MD-RIPEMD160.pod
|
||||
@ -4759,6 +4767,7 @@ html/man7/EVP_CIPHER-CAST.html \
|
||||
html/man7/EVP_CIPHER-CHACHA.html \
|
||||
html/man7/EVP_CIPHER-DES.html \
|
||||
html/man7/EVP_CIPHER-IDEA.html \
|
||||
html/man7/EVP_CIPHER-NULL.html \
|
||||
html/man7/EVP_CIPHER-RC2.html \
|
||||
html/man7/EVP_CIPHER-RC4.html \
|
||||
html/man7/EVP_CIPHER-RC5.html \
|
||||
@ -4800,6 +4809,7 @@ html/man7/EVP_MD-MD4.html \
|
||||
html/man7/EVP_MD-MD5-SHA1.html \
|
||||
html/man7/EVP_MD-MD5.html \
|
||||
html/man7/EVP_MD-MDC2.html \
|
||||
html/man7/EVP_MD-NULL.html \
|
||||
html/man7/EVP_MD-RIPEMD160.html \
|
||||
html/man7/EVP_MD-SHA1.html \
|
||||
html/man7/EVP_MD-SHA2.html \
|
||||
@ -4888,6 +4898,7 @@ man/man7/EVP_CIPHER-CAST.7 \
|
||||
man/man7/EVP_CIPHER-CHACHA.7 \
|
||||
man/man7/EVP_CIPHER-DES.7 \
|
||||
man/man7/EVP_CIPHER-IDEA.7 \
|
||||
man/man7/EVP_CIPHER-NULL.7 \
|
||||
man/man7/EVP_CIPHER-RC2.7 \
|
||||
man/man7/EVP_CIPHER-RC4.7 \
|
||||
man/man7/EVP_CIPHER-RC5.7 \
|
||||
@ -4929,6 +4940,7 @@ man/man7/EVP_MD-MD4.7 \
|
||||
man/man7/EVP_MD-MD5-SHA1.7 \
|
||||
man/man7/EVP_MD-MD5.7 \
|
||||
man/man7/EVP_MD-MDC2.7 \
|
||||
man/man7/EVP_MD-NULL.7 \
|
||||
man/man7/EVP_MD-RIPEMD160.7 \
|
||||
man/man7/EVP_MD-SHA1.7 \
|
||||
man/man7/EVP_MD-SHA2.7 \
|
||||
|
72
doc/man7/EVP_CIPHER-NULL.pod
Normal file
72
doc/man7/EVP_CIPHER-NULL.pod
Normal file
@ -0,0 +1,72 @@
|
||||
=pod
|
||||
|
||||
=head1 NAME
|
||||
|
||||
EVP_CIPHER-NULL - The NULL EVP_CIPHER implementation
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Support for a NULL symmetric encryption using the B<EVP_CIPHER> 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.
|
||||
|
||||
=head2 Algorithm Name
|
||||
|
||||
The following algorithm is available in the default provider:
|
||||
|
||||
=over 4
|
||||
|
||||
=item "NULL"
|
||||
|
||||
=back
|
||||
|
||||
=head2 Parameters
|
||||
|
||||
This implementation supports the following parameters:
|
||||
|
||||
=head3 Gettable EVP_CIPHER parameters
|
||||
|
||||
See L<EVP_EncryptInit(3)/Gettable EVP_CIPHER parameters>
|
||||
|
||||
=head3 Gettable EVP_CIPHER_CTX parameters
|
||||
|
||||
=over 4
|
||||
|
||||
=item "keylen" (B<OSSL_CIPHER_PARAM_KEYLEN>) <unsigned integer>
|
||||
|
||||
=item "ivlen" (B<OSSL_CIPHER_PARAM_IVLEN> and <B<OSSL_CIPHER_PARAM_AEAD_IVLEN>) <unsigned integer>
|
||||
|
||||
=item "tls-mac" (B<OSSL_CIPHER_PARAM_TLS_MAC>) <octet ptr>
|
||||
|
||||
=back
|
||||
|
||||
See L<EVP_EncryptInit(3)/PARAMETERS> for further information.
|
||||
|
||||
=head3 Settable EVP_CIPHER_CTX parameters
|
||||
|
||||
=over 4
|
||||
|
||||
=item "tls-mac-size" (B<OSSL_CIPHER_PARAM_TLS_MAC_SIZE>) <unsigned integer>
|
||||
|
||||
=back
|
||||
|
||||
See L<EVP_EncryptInit(3)/PARAMETERS> for further information.
|
||||
|
||||
=head1 CONFORMING TO
|
||||
|
||||
RFC 5246 section-6.2.3.1
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
L<provider-cipher(7)>, L<OSSL_PROVIDER-default(7)>
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
Copyright 2023 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<https://www.openssl.org/source/license.html>.
|
||||
|
||||
=cut
|
42
doc/man7/EVP_MD-NULL.pod
Normal file
42
doc/man7/EVP_MD-NULL.pod
Normal file
@ -0,0 +1,42 @@
|
||||
=pod
|
||||
|
||||
=head1 NAME
|
||||
|
||||
EVP_MD-NULL - The NULL EVP_MD implementation
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Support for a NULL digest through the B<EVP_MD> API.
|
||||
This algorithm does nothing and returns 1 for its init,
|
||||
update and final methods.
|
||||
|
||||
=head2 Algorithm Name
|
||||
|
||||
The following algorithm is available in the default provider:
|
||||
|
||||
=over 4
|
||||
|
||||
=item "NULL"
|
||||
|
||||
=back
|
||||
|
||||
=head2 Gettable Parameters
|
||||
|
||||
This implementation supports the common gettable parameters described
|
||||
in L<EVP_MD-common(7)>.
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
L<EVP_MD_CTX_set_params(3)>, L<provider-digest(7)>,
|
||||
L<OSSL_PROVIDER-default(7)>
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
Copyright 2023 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<https://www.openssl.org/source/license.html>.
|
||||
|
||||
=cut
|
@ -73,6 +73,8 @@ The OpenSSL default provider supports these operations and algorithms:
|
||||
|
||||
=item RIPEMD160, see L<EVP_MD-RIPEMD160(7)>
|
||||
|
||||
=item NULL, see L<EVP_MD-NULL(7)>
|
||||
|
||||
=back
|
||||
|
||||
=head2 Symmetric Ciphers
|
||||
@ -95,6 +97,8 @@ The OpenSSL default provider supports these operations and algorithms:
|
||||
|
||||
=item ChaCha20-Poly1305, see L<EVP_CIPHER-CHACHA(7)>
|
||||
|
||||
=item NULL, see L<EVP_CIPHER-NULL(7)>
|
||||
|
||||
=back
|
||||
|
||||
=head2 Message Authentication Code (MAC)
|
||||
|
@ -228,7 +228,7 @@ L<EVP_CIPHER-AES(7)>, L<EVP_CIPHER-ARIA(7)>, L<EVP_CIPHER-BLOWFISH(7)>,
|
||||
L<EVP_CIPHER-CAMELLIA(7)>, L<EVP_CIPHER-CAST(7)>, L<EVP_CIPHER-CHACHA(7)>,
|
||||
L<EVP_CIPHER-DES(7)>, L<EVP_CIPHER-IDEA(7)>, L<EVP_CIPHER-RC2(7)>,
|
||||
L<EVP_CIPHER-RC4(7)>, L<EVP_CIPHER-RC5(7)>, L<EVP_CIPHER-SEED(7)>,
|
||||
L<EVP_CIPHER-SM4(7)>,
|
||||
L<EVP_CIPHER-SM4(7)>, L<EVP_CIPHER-NULL(7)>,
|
||||
L<life_cycle-cipher(7)>, L<EVP_EncryptInit(3)>
|
||||
|
||||
=head1 HISTORY
|
||||
|
@ -268,6 +268,7 @@ L<EVP_MD-MD4(7)>, L<EVP_MD-MD5(7)>, L<EVP_MD-MD5-SHA1(7)>,
|
||||
L<EVP_MD-MDC2(7)>, L<EVP_MD-RIPEMD160(7)>, L<EVP_MD-SHA1(7)>,
|
||||
L<EVP_MD-SHA2(7)>, L<EVP_MD-SHA3(7)>, L<EVP_MD-KECCAK(7)>
|
||||
L<EVP_MD-SHAKE(7)>, L<EVP_MD-SM3(7)>, L<EVP_MD-WHIRLPOOL(7)>,
|
||||
L<EVP_MD-NULL(7)>,
|
||||
L<life_cycle-digest(7)>, L<EVP_DigestInit(3)>
|
||||
|
||||
=head1 HISTORY
|
||||
|
Loading…
Reference in New Issue
Block a user