MCPcopy Create free account
hub / github.com/XTLS/Go / cipher3DES

Function cipher3DES

cipher_suites.go:406–412  ·  view source on GitHub ↗
(key, iv []byte, isRead bool)

Source from the content-addressed store, hash-verified

404}
405
406func cipher3DES(key, iv []byte, isRead bool) any {
407 block, _ := des.NewTripleDESCipher(key)
408 if isRead {
409 return cipher.NewCBCDecrypter(block, iv)
410 }
411 return cipher.NewCBCEncrypter(block, iv)
412}
413
414func cipherAES(key, iv []byte, isRead bool) any {
415 block, _ := aes.NewCipher(key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…