2020-03-06 21:29:00 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
EVP_MD-common - The OpenSSL EVP_MD implementations, common things
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
All the OpenSSL EVP_MD implementations understand the following
|
2020-05-22 05:21:27 +08:00
|
|
|
L<OSSL_PARAM(3)> entries that are
|
|
|
|
gettable with L<EVP_MD_get_params(3)>, as well as these:
|
2020-03-06 21:29:00 +08:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item "blocksize" (B<OSSL_DIGEST_PARAM_BLOCK_SIZE>) <unsigned integer>
|
|
|
|
|
|
|
|
The digest block size.
|
|
|
|
The length of the "blocksize" parameter should not exceed that of a
|
|
|
|
B<size_t>.
|
|
|
|
|
Rename all getters to use get/get0 in name
For functions that exist in 1.1.1 provide a simple aliases via #define.
Fixes #15236
Functions with OSSL_DECODER_, OSSL_ENCODER_, OSSL_STORE_LOADER_,
EVP_KEYEXCH_, EVP_KEM_, EVP_ASYM_CIPHER_, EVP_SIGNATURE_,
EVP_KEYMGMT_, EVP_RAND_, EVP_MAC_, EVP_KDF_, EVP_PKEY_,
EVP_MD_, and EVP_CIPHER_ prefixes are renamed.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405)
2021-05-21 22:58:08 +08:00
|
|
|
This value can also be retrieved with L<EVP_MD_get_block_size(3)>.
|
2020-03-06 21:29:00 +08:00
|
|
|
|
|
|
|
=item "size" (B<OSSL_DIGEST_PARAM_SIZE>) <unsigned integer>
|
|
|
|
|
|
|
|
The digest output size.
|
|
|
|
The length of the "size" parameter should not exceed that of a B<size_t>.
|
|
|
|
|
Rename all getters to use get/get0 in name
For functions that exist in 1.1.1 provide a simple aliases via #define.
Fixes #15236
Functions with OSSL_DECODER_, OSSL_ENCODER_, OSSL_STORE_LOADER_,
EVP_KEYEXCH_, EVP_KEM_, EVP_ASYM_CIPHER_, EVP_SIGNATURE_,
EVP_KEYMGMT_, EVP_RAND_, EVP_MAC_, EVP_KDF_, EVP_PKEY_,
EVP_MD_, and EVP_CIPHER_ prefixes are renamed.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405)
2021-05-21 22:58:08 +08:00
|
|
|
This value can also be retrieved with L<EVP_MD_get_size(3)>.
|
2020-03-06 21:29:00 +08:00
|
|
|
|
|
|
|
=item "flags" (B<OSSL_DIGEST_PARAM_FLAGS>) <unsigned integer>
|
|
|
|
|
|
|
|
Diverse flags that describe exceptional behaviour for the digest.
|
|
|
|
These flags are described in L<EVP_MD_meth_set_flags(3)/DESCRIPTION>.
|
|
|
|
|
|
|
|
The length of the "flags" parameter should equal that of an
|
|
|
|
B<unsigned long int>.
|
|
|
|
|
|
|
|
=begin comment
|
|
|
|
|
|
|
|
The description of these flags should probably be moved. Also,
|
|
|
|
EVP_MD_FLAG_FIPS isn't relevant any more.
|
|
|
|
|
|
|
|
=end comment
|
|
|
|
|
Rename all getters to use get/get0 in name
For functions that exist in 1.1.1 provide a simple aliases via #define.
Fixes #15236
Functions with OSSL_DECODER_, OSSL_ENCODER_, OSSL_STORE_LOADER_,
EVP_KEYEXCH_, EVP_KEM_, EVP_ASYM_CIPHER_, EVP_SIGNATURE_,
EVP_KEYMGMT_, EVP_RAND_, EVP_MAC_, EVP_KDF_, EVP_PKEY_,
EVP_MD_, and EVP_CIPHER_ prefixes are renamed.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15405)
2021-05-21 22:58:08 +08:00
|
|
|
This value can also be retrieved with L<EVP_MD_get_flags(3)>.
|
2020-03-06 21:29:00 +08:00
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
L<EVP_MD_get_params(3)>, L<provider-digest(7)>
|
|
|
|
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2021-06-17 20:24:59 +08:00
|
|
|
Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2020-03-06 21:29:00 +08:00
|
|
|
|
|
|
|
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
|