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

Function TestEncrypt_InvalidKey

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

Source from the content-addressed store, hash-verified

237}
238
239func TestEncrypt_InvalidKey(t *testing.T) {
240 // AES requires 16, 24, or 32 byte keys
241 _, err := Encrypt("test", []byte{1, 2, 3})
242 assert.Error(t, err)
243}
244
245func TestDecrypt_InvalidKey(t *testing.T) {
246 // First encrypt with a valid key

Callers

nothing calls this directly

Calls 1

EncryptFunction · 0.85

Tested by

no test coverage detected