# info > EVP_MD-MD2

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

## Quick Reference
- `openssl dgst -md2 file` — compute MD2 hash (legacy provider)
- `EVP_get_digestbyname("MD2")` — obtain the MD2 digest algorithm pointer
- `EVP_DigestInit_ex(ctx, EVP_md2(), NULL)` — initialize context directly for MD2

## Name
EVP_MD-MD2 — The MD2 EVP_MD implementation

## Synopsis
The MD2 digest is accessible as an `EVP_MD` object named `"MD2"`. It is provided by the **legacy** provider. Use standard EVP digest functions: `EVP_DigestInit_ex()`, `EVP_DigestUpdate()`, `EVP_DigestFinal_ex()`.

## Options
- **Gettable parameters**: supports all common gettable parameters described in [EVP_MD-common(7)](http://localhost/phpMan.php/man/EVPMD-common/7/markdown) (e.g., `OSSL_DIGEST_PARAM_BLOCK_SIZE`, `OSSL_DIGEST_PARAM_SIZE`).

## See Also
- [provider-digest(7)](http://localhost/phpMan.php/man/provider-digest/7/markdown)
- [OSSL_PROVIDER-default(7)](http://localhost/phpMan.php/man/OSSLPROVIDER-default/7/markdown)