encyclopegia.org

MDC-2

In cryptography, MDC-2 (Modification Detection Code 2, sometimes called Meyer–Schilling, standardized in ISO 10118-2) is a cryptographic hash function.[src] MDC-2 is a hash function based on a block cipher with a proof of security in the ideal-cipher model.[src] The length of the output hash depends on the underlying block cipher used.[src]

In cryptography, MDC-2 (Modification Detection Code 2, sometimes called Meyer–Schilling, standardized in ISO 10118-2) is a cryptographic hash function.[src] MDC-2 is a hash function based on a block cipher with a proof of security in the ideal-cipher model.[src] The length of the output hash depends on the underlying block cipher used.[src] For a given message M to hash, the MDC-2 algorithm proceeds as follows.[src] Let A_1, B_1 be two different constants of size n .[src] Let M\, || \, \text{pad} = M_1\,||..||\,M_m where each M_i has size n , then the hash V_m \, || \, W_m of the message is given by: for i = 1 to m : V_i = M_i \oplus E(M_i,A_i) W_i = M_i \oplus E(M_i,B_i) V_i^L\, || \,V_i^R = V_i W_i^L\, || \,W_i^R = W_i A_{i+1} = V_i^L\,||\,W_i^R B_{i+1} = W_i^L\,||\,V_i^R return A_{m+1}\,||\,B_{m+1} .[src] Here the V_i, W_i are split in halves V_i^L etc., which have the length n/2 .[src] ==MDC-2DES hashes== When MDC-2 uses the DES block cipher, the 128-bit (16-byte) MDC-2 hashes are typically represented as 32-digit hexadecimal numbers.[src] A_1 is chosen as the 8-byte string 5252525252525252 and B_1 is chosen as the 8-byte string 2525252525252525 (written as hexdigits).[src] Additionally, before each iteration the first byte A[0] of A recalculated as (A[0] & 0x9f) ^ 0x40 and the first byte B[0] of B is recalculated as (B[0] & 0x9f) ^ 0x20.[src] The following demonstrates a 43-byte ASCII input (which is padded with five zero-bytes so its length is a multiple of the DES block size of 8 bytes) and the corresponding MDC-2 hash: MDC2("The quick brown fox jumps over the lazy og") = 52525252525252522525252525252525 ==Patent issues== MDC-2 was covered by , issued on March 13, 1990 but filed by IBM on August 28, 1987.[src] Because of patent concerns support for MDC-2 has been disabled in OpenSSL on most Linux distributions and is not implemented by many other cryptographic libraries.[src] It is implemented in GPG's libgcrypt.[src] The patent was due to expire on August 28, 2007, twenty years after the filing date.[src] It actually expired in 2002 because IBM did not pay the renewal fee.[src] The Canadian patent was not renewed and no European patent was granted so MDC-2 can now be freely used.[src] ==Notes==[src]

20 sentences · 20 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"MDC-2." encyclopegia.org, 2025, https://encyclopegia.org/wiki/mdc-2. Accessed 30 November 2026.

Chicago

"MDC-2." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/mdc-2.

APA

encyclopegia.org. (2025). MDC-2. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/mdc-2

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1311830297 · 0.5 · snapshot enwiki-001311830297

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.