fix(crashes): trying to investigate the causes of crash.

New unit tests to that end.
This commit is contained in:
Houmgaor
2025-10-19 19:02:29 +02:00
parent 02d5195611
commit 8a92a7957e
9 changed files with 1699 additions and 19 deletions

View File

@@ -86,7 +86,7 @@ func TestDecrypt(t *testing.T) {
for k, tt := range tests {
testname := fmt.Sprintf("decrypt_test_%d", k)
t.Run(testname, func(t *testing.T) {
out, cc, c0, c1, c2 := Crypto(tt.decryptedData, tt.key, false, nil)
out, cc, c0, c1, c2 := Crypto(tt.encryptedData, tt.key, false, nil)
if cc != tt.ecc {
t.Errorf("got cc 0x%X, want 0x%X", cc, tt.ecc)
} else if c0 != tt.ec0 {