(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestEncryptDecryptAES_ShortKey(t *testing.T) { |
| 73 | // Even a short key should work properly via HKDF derivation |
| 74 | key := "short" |
| 75 | plaintext := "test data" |
| 76 | |
| 77 | encrypted, err := EncryptAES(key, plaintext) |
| 78 | require.NoError(t, err) |
| 79 | |
| 80 | decrypted, err := DecryptAES(key, encrypted) |
| 81 | require.NoError(t, err) |
| 82 | assert.Equal(t, plaintext, decrypted) |
| 83 | } |
| 84 | |
| 85 | func TestEncryptDecryptAES_LongKey(t *testing.T) { |
| 86 | key := strings.Repeat("a", 100) |
nothing calls this directly
no test coverage detected