mirror of
https://github.com/apple/swift-crypto
synced 2026-11-23 04:34:21 +00:00
### Motivation: ARC presentation verification derives the tag using a loop that scales with the client-provided nonce, but it has everything it needs to recompute it with a scalar multiplication. ### Modifications: - Add a failing test. - Recompute `m1Tag` as `T - nonceScalar * self.tag`, the same way the prover does. ### Result: ARC presentation verification computation independent of magnitude of nonce.