Phase 1.1: SMB3 encryption module (AES-CTR + HMAC)

- 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
View File
@@ -24,6 +24,7 @@ md4 = "0.10"
aes = "0.8"
cmac = "0.7"
rc4 = "0.2"
ctr = "0.9" # AES-CTR for SMB3 encryption (simplified approach)
[features]
default = ["localfs"]