EVP_MD-MDC2(7ossl)

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

πŸ’œ EVP_MD-MDC2 πŸ’œ

ok so this little cutie is from the OpenSSL fam β€” the manual page lives under 7ossl, and the page itself is EVP_MD-MDC2. Yes bestie, we're talking about the MDC2 vibe. πŸŽ€

✨ NAME ✨

EVP_MD-MDC2 β€” literally the MDC2 EVP_MD implementation. that's the whole name section, she's brief and iconic πŸ’…

🌸 DESCRIPTION 🌸

okay so picture this: it's the support system for computing MDC2 digests, and it does it all through the EVP_MD API. that's the tea. πŸ«–βœ¨

πŸ¦‹ Identity πŸ¦‹

lowkey important detail: this implementation is only available with the legacy provider. no cap. and she's identified with the name "MDC2" β€” that's her whole government name.

πŸŽ€ Gettable Parameters πŸŽ€

this implementation supports the common gettable parameters β€” the ones described over in EVP_MD-common(7). so if you're wondering what you can get, go read that, bestie. 🫢

πŸ’… Settable Context Parameters πŸ’…

and here's where it gets spicy πŸ”₯ β€” this implementation supports the following OSSL_PARAM(3) entries, and these bad boys are 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 you set the pad type to 2, then the final block gets padded with 0x80 followed by zeros. two whole padding personalities, pick your fighter. 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, 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>.

fr fr read the license before you go copying things, bestie. that's the rule. πŸ™ˆ

and that's the whole page, mwah πŸ’‹ β€” version 3.5.6, dated 2026-04-07, signed off with love from your favorite manual page. slay, stay hydrated, and may your digests always be correct πŸ§šπŸ’–

πŸ“¦ where this page comes from