Commit Graph

2 Commits

Author SHA1 Message Date
km 479fcd37c1 Fix WireGuard decryption failures
- Fix BLAKE2s final block handling when len == fill
- Fix key derivation order based on is_initiator flag
- Add missing header files (se050_i2c_hal.h, se050_scp03.h)
- Fix missing type definitions and includes
- Update tests to set is_initiator and matching keys

All 24 tests now pass.
2026-03-29 18:52:48 +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