Commit Graph
7 Commits
Author SHA1 Message Date
Dylan M. Taylor e4252faa21 Exercise optional CMS wire sets and preserve acceptance boundaries 2026-11-19 02:55:14 -05:00
Dylan M. Taylor c24d572c8f Add private bounded CMS wire prefix views 2026-11-18 22:03:03 -05:00
Dylan M. Taylor adb9e769ca Add bounded borrowed certificate inspection views
Keep wire evidence separate from existing verification and trust APIs. Inspection semantics acknowledge Afloat’s original Craft Anything raw-field and non-minimal-length contributions.
2026-11-18 21:57:49 -05:00
Dylan M. Taylor f4b5fdebc1 Exercise valid delegated OCSP evidence and isolated rejection policies (#2249) 2026-11-18 12:36:15 -05:00
Dylan M. Taylor bc4aae37bb Merge pull request #2245 from storytold/fix/ocsp-certificate-wrapper-20261118
fix(pkcs7): read standard OCSP certificate sequence wrappers
2026-11-18 12:12:13 -05:00
Dylan M. Taylor a62ce81f24 Expose consuming parsed certificate and revocation components 2026-11-17 11:54:40 -05:00
Dylan M. Taylorandjonathanwxh-cell 1c5c8a4e14 Add craft-pkcs7: DER, X.509, CMS SignedData, PKCS #12, RFC 3161 and revocation from PdfCraft
* Add craft-pkcs7: DER, X.509, CMS SignedData, PKCS #12, RFC 3161 and revocation from PdfCraft

Moved from PdfCraft's crates/sign at 1d7a9f9f: der, x509, cms, pkcs12, timestamp,
revocation, keys, rsa_pad and ec512, with their unit tests, the integration tests
that need no PDF, and the test keys.

x509 no longer returns PdfCraft's worded sentences: signing_problem gives a
SigningProblem and build_chain_noted a Refused (reason and the two certificates).
The checks behind them are unchanged. Error is SignError without its PDF variants.

* craft-pkcs7: write the certificate serial verbatim in SignerInfo and ESSCertIDv2

A serial with its high bit set and no leading zero was written with one added, so
the signer identifier and the signing-certificate attribute named a different
number than the certificate has.

Ported from storytold/pdfcraft#6868. The test uses a certificate that really has
such a serial and also checks that the signer's certificate is found.

* craft-pkcs7: note why RIPEMD-160 is supported

---------

Co-authored-by: jonathanwxh-cell <jonathanwxh@gmail.com>
2026-11-12 09:45:31 -05:00