EVP_MD-BLAKE2(7ossl)
π 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 theEVP_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's64forBLAKE2B-512and32forBLAKE2S-256. periodt π
fr fr though β the parameter must be set with theEVP_DigestInit_ex2(3)call to have an immediate effect. when set withEVP_MD_CTX_set_params(3)it will have an effect only if theEVP_MD_CTXcontext 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 π
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
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms