core/crypto/poly1305: Relax the tag length check on the verify helper

This commit is contained in:
Yawning Angel
2024-02-04 15:21:48 +09:00
parent 1cc639bc93
commit 56516ee8b2

View File

@@ -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[:])