EVP_MD2(3ossl)
π NAME π
EVP_md2 β it's MD2, but make it EVP, bestie β¨
So this little cutie lives in the OpenSSL 3ossl manual, and honestly? She's niche, she's legacy, she's giving vintage icon energy π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
const EVP_MD *EVP_md2(void);
That's it. That's the whole vibe check. One include, one function, zero drama π
π¦ DESCRIPTION π¦
Okay so MD2 is a cryptographic hash function β like, a real one β standardized in RFC 1319 and designed by Ronald Rivest (yes, that Rivest, main character energy π).
Here's the tea though: this implementation is only available with the legacy provider. So if you're not pulling up with the legacy provider loaded, she's not coming to the party π
β¨ EVP_md2() β¨
The MD2 algorithm, which produces a 128-bit output from a given input. Short, sweet, 128 bits of pure commitment π«Ά
π NOTES π
Devs, listen up, because this part matters β there are negative performance implications of calling this function multiple times. Like, calling it over and over is not the slay you think it is π
Instead, you should consider using EVP_MD_fetch(3) with EVP_MD-MD2(7). See "Performance" in crypto(7) for further information β go read it, iykyk π
π RETURN VALUES π
These functions return an EVP_MD structure that contains the implementation of the message digest π
Wanna know the details of the EVP_MD structure? See EVP_MD_meth_new(3). She's all laid out there β¨
π CONFORMING TO π
IETF RFC 1319. Periodt π
β SEE ALSO β
Go give them a read, bestie, they're all connected π§
π 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>. No cap, read the license fr fr π
And that's the whole page, bestie! This gorgeous little drop is from version 3.5.6, dated 2026-04-07 β it's the EVP_MD2(3ossl) manual, and she ate π
β¨π¦
π¦ 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