Skip to content

Conversation

ariawisp
Copy link

@ariawisp ariawisp commented Sep 7, 2025

What

  • Add AccumulatingSignFunction and AccumulatingVerifyFunction that buffer update() calls and delegate to provided one‑shot operations.
  • Implementation mirrors AccumulatingCipherFunction: single ByteArray accumulator and isClosed state.
  • Scope: cryptography-providers/base only; no provider wiring or tests changed.
  • Add shared helper unwrapSubjectPublicKeyInfo(algorithms: Set<ObjectIdentifier>, bytes: ByteArray) for provider key decoding.

Why

  • Avoid duplicate buffering logic across providers; makes streaming sign/verify trivial to implement (e.g., CryptoKit EdDSA).

Follow‑ups

  • Providers can adopt these helpers where streaming variants are needed; no API/behavior change until used by providers.
  • JDK PR will drop its local helper and call the shared unwrapSubjectPublicKeyInfo(Set, bytes).

@ariawisp ariawisp force-pushed the feat/provider-base-accum branch from 95d480e to 941ff0d Compare September 7, 2025 01:42
…ctPublicKeyInfo(Set<ObjectIdentifier>) helper; update ABI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant