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

Function cipher3DES

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

Source from the content-addressed store, hash-verified

408}
409
410func cipher3DES(key, iv []byte, isRead bool) any {
411 block, _ := des.NewTripleDESCipher(key)
412 if isRead {
413 return cipher.NewCBCDecrypter(block, iv)
414 }
415 return cipher.NewCBCEncrypter(block, iv)
416}
417
418func cipherAES(key, iv []byte, isRead bool) any {
419 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…