EVP_MD2(3ossl)

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

πŸ’– 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 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