(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestDecrypt_InvalidBase64(t *testing.T) { |
| 49 | key := make([]byte, 32) |
| 50 | |
| 51 | _, err := Decrypt("enc:!!!invalid-base64!!!", key) |
| 52 | assert.Error(t, err) |
| 53 | } |
| 54 | |
| 55 | func TestDecrypt_TruncatedCiphertext(t *testing.T) { |
| 56 | key := make([]byte, 32) |