# info > EVP_MD-MDC2

---
type: CommandReference
command: EVP_MD-MDC2
mode: man
section: 7SSL
source: man-pages
---

## Quick Reference

- `EVP_MD_fetch(NULL, "MDC2", NULL)` — obtain MDC2 digest implementation (legacy provider)
- `EVP_MD_CTX_set_params(ctx, params)` — set padding type via `"pad-type"` parameter (0 or 2)

## Name

Support for computing MDC2 digests through the EVP_MD API.

## Options

### Gettable Parameters

Supports the common gettable parameters described in `EVP_MD-common(7)`.

### Settable Context Parameters

The following `OSSL_PARAM(3)` entries 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. Normally the final MDC2 block is padded with zeros. If set to 2, the final block is padded with `0x80` followed by zeros.

## See Also

- `EVP_MD_CTX_set_params(3)`
- `provider-digest(7)`
- `OSSL_PROVIDER-legacy(7)`