EVP_MD-MDC2(7ossl)

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

πŸ’… EVP_MD-MDC2 πŸ’…

okay so bestie, real talk: this page is the whole vibe check on EVP_MD-MDC2, which lives in the OpenSSL fam (that's the 7ossl manual section, iykyk πŸŽ€). Buckle up, it's short but it's iconic.


✨ NAME ✨

EVP_MD-MDC2 β€” literally the MDC2 EVP_MD implementation. that's it, that's the whole name. πŸ’–


🌸 DESCRIPTION 🌸

So this is your support for computing MDC2 digests through the EVP_MD API. cute, clean, does what it says on the tin. 🫢

πŸ¦‹ Identity πŸ¦‹

not me about to tell you the most important thing: this implementation is only available with the legacy provider. yes, legacy. she's vintage, she's exclusive, she does not run with the main crowd. πŸ’…

and she's identified with the name β€” drumroll please β€”

"MDC2"

that's her name, that's how you find her, no cap. ⭐

🧚 Gettable Parameters 🧚

this implementation supports the common gettable parameters, all documented over in EVP_MD-common(7). go read that one for the full tea, she's got the receipts. πŸ“–βœ¨

πŸŽ€ Settable Context Parameters πŸŽ€

now here's the main character section, because this implementation supports the following OSSL_PARAM(3) entries β€” and listen, these are settable for an EVP_MD_CTX with EVP_MD_CTX_set_params(3). write that down. πŸ–ŠοΈπŸ’–

  • "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 is padded with 0x80 followed by zeros. two personalities, one parameter, we love range. πŸ”₯
lowkey important: that's 0x80 then zeroes β€” in that order. don't be out here flipping them, bestie, the vibe check will not pass. πŸ’€

🌈 SEE ALSO 🌈

go give these icons a read, they're all linked in the group chat:


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

fr fr, read the license before you go touching things β€” "may not use this file except in compliance with the License" is not a drill. πŸ™ˆ

okay that's the whole page, you ate it, you understood it, periodt. πŸ’œ this was version 3.5.0, dated 2026-09-25, and she's filed forever under EVP_MD-MDC2(7ossl). mwah, go hash something cute πŸ“βœ¨

πŸ“¦ where this page comes from