From 19af4b5cadaad24fd886578da5b5840dd3499d2d Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Sun, 7 Aug 2022 23:01:12 +0300 Subject: [PATCH] std: add workaround for stage2 bug --- lib/std/crypto/25519/ed25519.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/std/crypto/25519/ed25519.zig b/lib/std/crypto/25519/ed25519.zig index 2a7671863e..7066b1a154 100644 --- a/lib/std/crypto/25519/ed25519.zig +++ b/lib/std/crypto/25519/ed25519.zig @@ -355,7 +355,9 @@ test "ed25519 batch verification" { try Ed25519.verifyBatch(2, signature_batch); signature_batch[1].sig = sig1; - try std.testing.expectError(error.SignatureVerificationFailed, Ed25519.verifyBatch(signature_batch.len, signature_batch)); + // TODO https://github.com/ziglang/zig/issues/12240 + const sig_len = signature_batch.len; + try std.testing.expectError(error.SignatureVerificationFailed, Ed25519.verifyBatch(sig_len, signature_batch)); } }