|
@@ -43,16 +43,21 @@ in L<EVP_MD-common(7)>.
|
|
|
|
|
|
=head2 Settable Context Parameters
|
|
|
|
|
|
-The BLAKE2B-512 implementation supports the following L<OSSL_PARAM(3)> entries,
|
|
|
-settable for an B<EVP_MD_CTX> with L<EVP_MD_CTX_set_params(3)>:
|
|
|
+The implementation supports the following L<OSSL_PARAM(3)> entries which
|
|
|
+are settable for an B<EVP_MD_CTX> with L<EVP_DigestInit_ex2(3)> or
|
|
|
+L<EVP_MD_CTX_set_params(3)>:
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
=item "size" (B<OSSL_DIGEST_PARAM_SIZE>) <unsigned integer>
|
|
|
|
|
|
Sets a different digest length for the L<EVP_DigestFinal(3)> output.
|
|
|
-The value of the "size" parameter should not exceed 255 and it must be set
|
|
|
-during the L<EVP_DigestInit_ex2(3)> call.
|
|
|
+The value of the "size" parameter must not exceed the default digest length
|
|
|
+of the respective BLAKE2 algorithm variants, 64 for BLAKE2B-512 and
|
|
|
+32 for BLAKE2S-256. The parameter must be set with the
|
|
|
+L<EVP_DigestInit_ex2(3)> call to have an immediate effect. When set with
|
|
|
+L<EVP_MD_CTX_set_params(3)> it will have an effect only if the B<EVP_MD_CTX>
|
|
|
+context is reinitialized.
|
|
|
|
|
|
=back
|
|
|
|
|
@@ -60,6 +65,13 @@ during the L<EVP_DigestInit_ex2(3)> call.
|
|
|
|
|
|
L<provider-digest(7)>, L<OSSL_PROVIDER-default(7)>
|
|
|
|
|
|
+=head1 HISTORY
|
|
|
+
|
|
|
+This functionality was added in OpenSSL 3.0.
|
|
|
+
|
|
|
+The variable size support was added in OpenSSL 3.2 for BLAKE2B-512 and
|
|
|
+in OpenSSL 3.3 for BLAKE2S-256.
|
|
|
+
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
|
Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved.
|