Commit Graph

2 Commits

Author SHA1 Message Date
km 4ec660de02 fix: WireGuard implementation improvements
- Fixed ChaCha20-Poly1305 context handling
- Added proper session key derivation
- Implemented replay detection
- Fixed nonce handling in encrypt/decrypt
- Added test suite with 27 passing tests

Known issues:
- Some encrypt/decrypt tests fail due to AAD handling
- Key generation needs production RNG integration
2026-03-28 19:52:47 +09:00
km 09620ba4ef test: Add WireGuard protocol test suite
- Comprehensive test coverage for session management
- Encryption/decryption tests
- Replay detection verification
- MAC computation tests
- Key generation and cleanup tests
- Invalid input validation

Note: Some tests depend on RNG and ChaCha20 implementation
which may need integration with SE050 hardware.
2026-03-28 19:45:19 +09:00