EVP_MD2(3SSL)

πŸ’– EVP_MD2 πŸ’–

okay bestie, welcome to the EVP_MD2 page from the OpenSSL manual, section 3SSL. yes it's a short one. yes it's still important. sit with me 🫢


✨ NAME ✨

EVP_md2 β€” MD2 For EVP

like, the whole vibe of this page is: how do i get my hands on the MD2 message digest through the EVP layer. that's it. that's the page πŸ’…


🌸 SYNOPSIS 🌸

#include <openssl/evp.h>

const EVP_MD *EVP_md2(void);

one include, one function, no arguments, no drama. iconic behavior honestly ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so MD2 is a cryptographic hash function. it's standardized in RFC 1319 and it was designed by Ronald Rivest. a classic, a legend, a whole era πŸ‘‘

heads up though: this implementation is only available with the legacy provider. not the default one. so if you're sitting there like "why isn't EVP_md2 working bestie 😭" β€” check your provider, iykyk.
  • EVP_md2() β€” the MD2 algorithm, which produces a 128-bit output from a given input. that's the whole job description πŸŽ€

πŸ”₯ NOTES πŸ”₯

devs, listen up, this part matters: calling this function multiple times has negative performance implications. no cap. it's giving wasteful.

so instead, please consider using EVP_MD_fetch(3) together with EVP_MD-MD2(7). see "Performance" in crypto(7) for further information β€” it's all laid out there, go read it fr fr 🌈


πŸ’œ RETURN VALUES πŸ’œ

these functions return an EVP_MD structure that contains the implementation of the message digest. that's your whole prize πŸ†


πŸ‘‘ CONFORMING TO πŸ‘‘

IETF RFC 1319. periodt.


🌟 SEE ALSO 🌟

the friend group. the squad. go say hi 🫢


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

like, legally speaking, read the License. pls. for me πŸ™ˆ


and that's the page bestie!! this was OpenSSL version 4.0.3, dated 2026-09-29 πŸ’– mwah, go hash something (responsibly, with the legacy provider) πŸŽ€βœ¨

πŸ“¦ where this page comes from