aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2024-02-04 15:21:48 +0900
committerYawning Angel <yawning@schwanenlied.me>2024-02-07 00:42:01 +0900
commit56516ee8b267c1be0ca714db4b6c43bc8be508cb (patch)
treed41f009197461d952db866d66b999e3fc63e8dc6 /core
parent1cc639bc93d4067c6fdc92f7b5142ba7b7d186f5 (diff)
core/crypto/poly1305: Relax the tag length check on the verify helper
Diffstat (limited to 'core')
-rw-r--r--core/crypto/poly1305/poly1305.odin4
1 files changed, 0 insertions, 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[:])