commit 19af4b5cadaad24fd886578da5b5840dd3499d2d (tree)
parent 0fd90749d10052c40d5a91881621af55e80135b3
Author: Veikka Tuominen <git@vexu.eu>
Date: Sun, 7 Aug 2022 23:01:12 +0300
std: add workaround for stage2 bug
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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));
}
}