fix: Remove incorrect datalen limit in HMAC-BLAKE2s
Bug 15: Incorrect datalen check - Removed: datalen > 64 check - HMAC can handle arbitrary length data However, testing revealed that se050_blake2s itself fails RFC 7693 test vectors: - Empty message: Expected 69217a30..., Got 00000000... - "abc": Expected ba80a53f..., Got 508c5e8c... This is the ROOT CAUSE of the WireGuard packet encryption/decryption failures. The blake2s implementation needs to be fixed first. Test results: 28 passed, 4 failed (root cause identified)
This commit is contained in:
@@ -19,7 +19,7 @@ int se050_hmac_blake2s(uint8_t out[32],
|
||||
uint8_t inner_with_key[128];
|
||||
int i;
|
||||
|
||||
if (!out || !key || keylen == 0 || !data || datalen > 64) {
|
||||
if (!out || !key || keylen == 0 || !data) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user