MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestDecrypt_InvalidBase64

Function TestDecrypt_InvalidBase64

pkg/utils/crypto_test.go:48–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

46}
47
48func 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
55func TestDecrypt_TruncatedCiphertext(t *testing.T) {
56 key := make([]byte, 32)

Callers

nothing calls this directly

Calls 1

DecryptFunction · 0.85

Tested by

no test coverage detected