EVP_MD-BLAKE2(7ossl)

πŸ’– EVP_MD-BLAKE2 πŸ’–

okay bestie, so this is the OpenSSL manual page EVP_MD-BLAKE2(7ossl) and it's literally all about the BLAKE2 EVP_MD implementation β€” like, the whole thing. grab a snack, we're getting into it πŸ“


✨ NAME ✨

EVP_MD-BLAKE2 β€” the BLAKE2 EVP_MD implementation, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this is the support for computing BLAKE2 digests through the EVP_MD API. That's the vibe. ✨

πŸ‘‘ Identities

okay so important thing: this implementation is only available with the default provider, periodt. And it includes these varieties:

  • BLAKE2S-256 β€” the known names are "BLAKE2S-256" and "BLAKE2s256" πŸŽ€
  • BLAKE2B-512 β€” the known names are "BLAKE2B-512" and "BLAKE2b512" πŸŽ€

🌸 Settable Parameters

"BLAKE2B-512" supports the following EVP_MD_CTX_set_params() key described in "PARAMETERS" in EVP_DigestInit(3):

  • "size" (OSSL_DIGEST_PARAM_SIZE) <unsigned integer> β€” yep, that's the one 🫢

🧚 Gettable Parameters

This implementation supports the common gettable parameters described in EVP_MD-common(7). slay, standard stuff πŸ’œ

⭐ Settable Context Parameters

The implementation supports the following OSSL_PARAM(3) entries which are settable for an EVP_MD_CTX with EVP_DigestInit_ex2(3) or EVP_MD_CTX_set_params(3):

  • "size" (OSSL_DIGEST_PARAM_SIZE) <unsigned integer> β€” sets a different digest length for the EVP_DigestFinal(3) output. 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 EVP_DigestInit_ex2(3) call to have an immediate effect. When set with EVP_MD_CTX_set_params(3) it will have an effect only if the EVP_MD_CTX context is reinitialized. πŸ’€
fr fr bestie, watch that max β€” 64 for BLAKE2B-512 and 32 for BLAKE2S-256, and if you set it the "wrong" way it won't kick in until the context gets reinitialized. iykyk πŸ™ˆ

🌈 SEE ALSO 🌈

provider-digest(7), OSSL_PROVIDER-default(7)


πŸ”₯ 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.

Copyright 2020-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 <https://www.openssl.org/source/license.html>.


okay that's the whole page, and yes you ate that πŸ’… this was version 3.5.9, dated 2026-09-29 β€” catch you in the next manpage, bestie πŸŽ€βœ¨πŸ«Ά

πŸ“¦ where this page comes from