EVP_MD-BLAKE2(7ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… EVP_MD-BLAKE2 πŸ’…

okay so bestie, welcome to EVP_MD-BLAKE2(7ossl) β€” the glow-up page for the BLAKE2 EVP_MD implementation ✨ this is the OpenSSL corner of the universe where BLAKE2 lives, and i'm gonna walk you through it like we're texting at 2am 🫢


🌸 DESCRIPTION 🌸

so basically: this is support for computing BLAKE2 digests through the EVP_MD API. that's the whole vibe πŸ’«

πŸ¦‹ Identities πŸ¦‹

okay so this implementation? it's exclusive β€” only available with the default provider, no gatecrashing from other providers πŸ’… and it includes the following varieties:

  • BLAKE2S-256 β€” known names are "BLAKE2S-256" and "BLAKE2s256" ⭐
  • BLAKE2B-512 β€” known names are "BLAKE2B-512" and "BLAKE2b512" 🌈

like, those are the names it answers to. it's giving dual identity, main character energy πŸ‘‘

πŸŽ€ Settable Parameters πŸŽ€

"BLAKE2B-512" supports the following EVP_MD_CTX_set_params() key described in "PARAMETERS" in EVP_DigestInit(3) β€” go check that out for the full tea πŸ“

  • "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). nothing extra, nothing dramatic, just the usual lineup ✨

🌸 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. lowkey this one has rules bestie, so listen up πŸ‘‚ the value of the "size" parameter must not exceed the default digest length of the respective BLAKE2 algorithm variants β€” that's 64 for BLAKE2B-512 and 32 for BLAKE2S-256. periodt πŸ’…
fr fr though β€” 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 πŸ™ˆ don't say i didn't warn you, that's the sneaky part πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

go read those too, i promise they're worth it πŸ’–


⭐ HISTORY ⭐

this functionality was added in OpenSSL 3.0 β€” iconic behavior honestly πŸ‘‘

the variable size support was added in OpenSSL 3.2 for BLAKE2B-512 and in OpenSSL 3.3 for BLAKE2S-256 🌱 look at it grow, we love an evolving queen πŸ’…


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>.


and that's the whole page bestie, no cap 🫢 this was the 3.5.6 version, dated 2026-04-07 β€” the EVP_MD-BLAKE2(7ossl) manual page, wrapped up and looking cute πŸŽ€ slay, go hash something βœ¨πŸ’–

πŸ“¦ where this page comes from