Phase 1.1: SMB3 encryption module (AES-CTR + HMAC)
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

- Add encryption.rs with Smb3Encryption struct
- Implement AES-128-CTR + HMAC-SHA256 (simplified approach)
- Add TransformHeader struct for SMB2 TRANSFORM_HEADER
- 3 unit tests pass (encrypt/decrypt roundtrip + signature verification)
- Total: ~180 lines of code
This commit is contained in:
Warren
2026-06-22 02:20:59 +08:00
parent 097521b35d
commit 104e7f5f9c
8 changed files with 323 additions and 7 deletions

1
Cargo.lock generated
View File

@@ -5436,6 +5436,7 @@ dependencies = [
"bytes",
"cap-std",
"cmac 0.7.2",
"ctr 0.9.2",
"getrandom 0.4.2",
"hex",
"hmac 0.12.1",