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

Function cipherAES

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

Source from the content-addressed store, hash-verified

416}
417
418func cipherAES(key, iv []byte, isRead bool) any {
419 block, _ := aes.NewCipher(key)
420 if isRead {
421 return cipher.NewCBCDecrypter(block, iv)
422 }
423 return cipher.NewCBCEncrypter(block, iv)
424}
425
426// macSHA1 returns a SHA-1 based constant time MAC.
427func macSHA1(key []byte) hash.Hash {

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…