EVP_MD4(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

πŸ’œ NAME πŸ’œ

EVP_md4 β€” MD4 but make it For EVP, bestie ✨

Okay so real talk, this is the OpenSSL 3ossl girlies' MD4 moment and it is only available in the legacy provider, no cap. Keep reading, I got you 🫢


🌸 SYNOPSIS 🌸

#include <openssl/evp.h>

const EVP_MD *EVP_md4(void);

Lowkey the whole API is one line. Iconic behavior honestly πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So MD4 is a cryptographic hash function, right? It's standardized in RFC 1320, designed by Ronald Rivest, and it was first published in 1990 β€” yes, your fave is vintage, she's giving retro main character energy πŸŽ€

Heads up bestie: this implementation is only available with the legacy provider. Not the default one. The legacy one. Don't @ me, that's just how it is πŸ’€

✨ EVP_md4() ✨

The MD4 algorithm, which produces a 128-bit output from a given input. That's it, that's the whole vibe. 128 bits of pure function 🧚


πŸ”₯ NOTES πŸ”₯

Okay so listen β€” devs should be aware of the negative performance implications of calling this function multiple times 😭 Like, she's not cheap, okay?

You should consider using EVP_MD_fetch(3) with EVP_MD-MD4(7) instead. That's the glow-up route, fr fr.

See "Performance" in crypto(7) for further information β€” it's all in there, iykyk ⭐


🌈 RETURN VALUES 🌈

These functions return a EVP_MD structure that contains the implementation of the message digest. That's your little container of hash-y goodness πŸ’–

See EVP_MD_meth_new(3) for details of the EVP_MD structure, if you wanna get into the lore πŸ‘‘


πŸ‘‘ CONFORMING TO πŸ‘‘

IETF RFC 1320. She's compliant, she's certified, periodt πŸ’…


🌸 SEE ALSO 🌸

Go read those, bestie, they're literally so good πŸ¦‹


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


mwah okay that's the whole page, diva πŸ’œ Version 3.5.0, dated 2026-09-25 β€” OpenSSL really said "we're still that girl" and honestly? Ate. Go forth and hash responsibly, bestie πŸ“βœ¨

πŸ“¦ where this page comes from