EVP_MD2(3ossl)
π EVP_MD2 π
okay so bestie, we're talking about EVP_MD2 from the OpenSSL manual, section 3ossl. it's giving vintage crypto, it's giving legacy provider energy, and honestly? it's kinda iconic. let's get into it π
β¨ NAME β¨
EVP_md2 β MD2, but make it EVP. π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
const EVP_MD *EVP_md2(void);
like. one function. one vibe. so clean. π¦
π DESCRIPTION π
so MD2 is a cryptographic hash function, right? it got standardized in RFC 1319, and it was designed by Ronald Rivest β yes, that Ronald Rivest, the Rivest. king behavior honestly. π
but here's the tea: this implementation is only available with the legacy provider. so if you're not loading that provider, don't come crying to me, bestie. π
EVP_md2()β this is the MD2 algorithm, and it produces a 128-bit output from whatever input you hand it. 128 bits. that's the whole meal. π
β οΈ NOTES β οΈ
okay listen, this part is important and I need you to actually pay attention, no skimming: developers should be aware of the negative performance implications of calling this function multiple times. like, it's not the move. π
instead, consider using EVP_MD_fetch(3) with EVP_MD-MD2(7). much better. much slay-er. β¨
see "Performance" in crypto(7) for further information β go read it, fr fr.
π«Ά RETURN VALUES π«Ά
these functions return an EVP_MD structure that contains the implementation of the message digest. that's the whole thing. π
want the details of the EVP_MD structure itself? see EVP_MD_meth_new(3). iykyk.
π CONFORMING TO π
IETF RFC 1319. periodt. π
π SEE ALSO π
go read them. all of them. your brain will thank you. π§ β¨
π COPYRIGHT π
Copyright 2017-2023 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!! π this was OpenSSL 3.5.9, dated 2026-09-29, and it's the EVP_MD2(3ossl) page. mwah. go hash something (with the legacy provider loaded, obviously). π
ππ¦
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms