feat: Replace Poly1305 with RFC 8439 compliant implementation
Copied from se050-wgtest which has verified implementation:
- aead_poly1305_input() for proper AAD + ciphertext processing
- Complete poly1305_final() with full 128-bit MAC output
- Uses s[0..3] (key[16..31]) for correct MAC computation
- Constant-time reduction with proper mask handling
Test results:
- RFC 8439 §2.8.2: ALL PASS ✅
- WireGuard tests: 28 passed, 4 failed (remaining issue: AAD processing)
This commit is contained in:
+465
-696
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user