mORMot2 DailyDaily read of upstream commits

Crypto factories move to a dedicated unit

This edition contains one source-level compatibility change. The high-level crypto factory catalog and key/certificate-aware helpers move from mormot.crypt.secure to the new mormot.crypt.factory unit without changing their implementations. Delphi and FPC applications that import mormot.crypt.secure directly for those declarations need to update their uses clauses.

TL;DR

  • Add mormot.crypt.factory wherever application code currently relies on mormot.crypt.secure for Rnd, Hash, Sign, Cipher, Asym, Cert, Store or the moved key/certificate APIs.
  • The declarations and implementations were moved unchanged; the commit states that runtime behavior is unchanged.
  • The Lazarus mormot2 package, umbrella unit, framework consumers and tests now include mormot.crypt.factory.
  • The raw payload has no superseded_by data, so no later successor or settling window is claimed.

Upgrade advice

Before updating to merged head 5fc8e0ad461275ff23f52e327a81ec78234e4873, grep application uses clauses for mormot.crypt.secure and add mormot.crypt.factory wherever moved factory, key or certificate declarations are referenced. Rebuild every Delphi and FPC target; no runtime migration or data conversion is indicated by the diff.

Commits2
Lines+10526 -10328
Read1 min

1 of 1 entries · 2 commits upstream

# Entry Category Units
1 High High-level crypto APIs leave mormot.crypt.secure A new mormot.crypt.factory unit receives the Rnd/Hash/Sign/Cipher/Asym/Cert/Store catalog, its public interfaces and classes, and key/certificate-aware helpers such as PrivateKeyToPkcs8, X509PubKeyToDer, TX509Parsed and X509Parse. mormot.crypt.secure keeps authentication and the lower-level PEM/DER/ASN.1 encoders. Provider, network, Lazarus package and test uses clauses are updated to import the new unit, and six qualified factory calls now name mormot.crypt.factory. Breaking changes mormot.crypt.factory+11 c0dd071d+5263-5164

crypt: new mormot.crypt.factory unit extracted from mormot.crypt.secure

Impact

Existing Delphi and FPC code that imports only mormot.crypt.secure and names any moved declaration will stop compiling until mormot.crypt.factory is added to its uses clause. Code using the mormot2 umbrella unit already receives the new unit. The commit describes a pure move with unchanged lines, so it indicates no cryptographic, serialization or runtime behavior change after the source migration.

Migration required

Search application uses clauses for mormot.crypt.secure and references to Rnd, Hash, Hasher, Sign, Signer, Cipher, CipherAlgo, Asym, Cert, Store, TX509Parsed, X509Parse, PrivateKeyToPkcs8 and X509PubKeyToDer. Add mormot.crypt.factory for each affected unit, then rebuild all compiler and platform targets.

Public API

  • Rndremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Hashremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Signremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Cipherremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Asymremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Certremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • Storeremoved — The declaration moves unchanged from mormot.crypt.secure to mormot.crypt.factory.
  • TX509Parsedremoved — This public certificate parser type now belongs to mormot.crypt.factory.
  • X509Parseremoved — This public parsing hook now belongs to mormot.crypt.factory.

zen010101 · 15:35 UTC · view the commit on GitHub →

Upstream activity commits per day · last 60 days
Commits1007
Active days49/60
Busiest2026-09-30
Peak60
2026-09-30: 60 commits2026-10-01: 26 commits2026-10-02: 30 commits2026-10-03: 32 commits2026-10-04: 15 commits2026-10-05: 1 commit2026-10-06: 26 commits2026-10-07: 37 commits2026-10-08: 27 commits2026-10-09: 35 commits2026-10-10: 12 commits2026-10-11: 2 commits2026-10-12: 40 commits2026-10-13: 31 commits2026-10-14: 23 commits2026-10-15: 16 commits2026-10-16: 27 commits2026-10-17: 0 commits2026-10-18: 0 commits2026-10-19: 0 commits2026-10-20: 0 commits2026-10-21: 0 commits2026-10-22: 3 commits2026-10-23: 6 commits2026-10-24: 29 commits2026-10-25: 7 commits2026-10-26: 25 commits2026-10-27: 4 commits2026-10-28: 8 commits2026-10-29: 17 commits2026-10-30: 20 commits2026-10-31: 0 commits2026-11-01: 0 commits2026-11-02: 16 commits2026-11-03: 32 commits2026-11-04: 15 commits2026-11-05: 32 commits2026-11-06: 26 commits2026-11-07: 19 commits2026-11-08: 2 commits2026-11-09: 29 commits2026-11-10: 17 commits2026-11-11: 8 commits2026-11-12: 38 commits2026-11-13: 39 commits2026-11-14: 9 commits2026-11-15: 6 commits2026-11-16: 21 commits2026-11-17: 30 commits2026-11-18: 37 commits2026-11-19: 28 commits2026-11-20: 31 commits2026-11-21: 0 commits2026-11-22: 0 commits2026-11-23: 1 commit2026-11-24: 6 commits2026-11-25: 3 commits2026-11-26: 3 commits2026-11-27: 0 commits2026-11-28: 0 commits
2026-09-302026-11-28