EVP_MD-MDC2(7SSL)

πŸ’– EVP_MD-MDC2 πŸ’–

okay bestie, gather round, because we're talking about the MDC2 EVP_MD implementation β€” and yes, it's a 7SSL page, meaning it's one of those chill "here's how this thing fits together" docs, not a command you type. Think of it as the lore drop for EVP_MD-MDC2. πŸ¦‹


✨ NAME ✨

EVP_MD-MDC2 β€” literally just: the MDC2 EVP_MD implementation. That's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

So here's the tea: this page is all about support for computing MDC2 digests through the EVP_MD API. That's it, that's the job. No cap. ✨

πŸŽ€ Identity πŸŽ€

Important!! This implementation is only available with the legacy provider. Like, if you're not rolling with the legacy provider, she's simply not in the building. Main character requires the right entourage, yk?

She's identified with the name "MDC2" β€” that's her name, that's her brand, remember it. πŸ‘‘

🧚 Gettable Parameters 🧚

This implementation supports the common gettable parameters described over in EVP_MD-common(7). Nothing extra to memorise here, so breathe β€” it's giving "standard package, no add-ons". 🌈

πŸ’œ Settable Context Parameters πŸ’œ

Now THIS part? This is where you actually get to touch stuff. This implementation supports the following OSSL_PARAM(3) entries, settable for an EVP_MD_CTX with EVP_MD_CTX_set_params(3):

  • "pad-type" (OSSL_DIGEST_PARAM_PAD_TYPE) <unsigned integer> β€” sets the padding type to be used. Normally the final MDC2 block is padded with zeros. But if the pad type is set to 2, then the final block gets padded with 0x80 followed by zeros. So like… zero-padding is the default, and 2 is the little costume change. πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

Go read those if you want the full cinematic universe. iykyk. πŸ’…


Copyright 2020-2021 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>.


bestie, real talk: don't sleep on the license text, it's literally the rules of the party and it's not optional. 🫢

aaaand that's the page!! 🌸 Source: OpenSSL 4.0.3, dated 2026-09-29, filed under EVP_MD-MDC2(7SSL) β€” she ate, no crumbs, periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from