From 56516ee8b267c1be0ca714db4b6c43bc8be508cb Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Sun, 4 Feb 2024 15:21:48 +0900 Subject: [PATCH] core/crypto/poly1305: Relax the tag length check on the verify helper --- core/crypto/poly1305/poly1305.odin | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/crypto/poly1305/poly1305.odin b/core/crypto/poly1305/poly1305.odin index cf60f7166..a2fb3c223 100644 --- a/core/crypto/poly1305/poly1305.odin +++ b/core/crypto/poly1305/poly1305.odin @@ -23,10 +23,6 @@ verify :: proc (tag, msg, key: []byte) -> bool { ctx: Context = --- derived_tag: [16]byte = --- - if len(tag) != TAG_SIZE { - panic("crypto/poly1305: invalid tag size") - } - init(&ctx, key) update(&ctx, msg) final(&ctx, derived_tag[:])