(key, iv []byte, isRead bool)
| 412 | } |
| 413 | |
| 414 | func cipherAES(key, iv []byte, isRead bool) any { |
| 415 | block, _ := aes.NewCipher(key) |
| 416 | if isRead { |
| 417 | return cipher.NewCBCDecrypter(block, iv) |
| 418 | } |
| 419 | return cipher.NewCBCEncrypter(block, iv) |
| 420 | } |
| 421 | |
| 422 | // macSHA1 returns a SHA-1 based constant time MAC. |
| 423 | func macSHA1(key []byte) hash.Hash { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…