Skip to content

Consider caching digest values for SignedCms.VerifySignature #132985

Description

@bartonjs

Imagine that all 538 US presidential electors parallel-sign their vote tabulation.

Odds are, all 538 only used one data digest algorithm. So, why digest multiple times?

If SHAKE and friends are allowed in SignedCms with parameterized length, then the cache is theoretically unbounded. If only the fixed size outputs of them are defined for CMS, then the cache has a limit of around a dozen algorithms that it could possibly grow to.

The best place for the cache is probably ContentInfo?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions