(key, iv []byte, isRead bool)
| 416 | } |
| 417 | |
| 418 | func 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. |
| 427 | func macSHA1(key []byte) hash.Hash { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…