| 66 | } |
| 67 | |
| 68 | type aes256 struct { |
| 69 | aead cipher.AEAD |
| 70 | // digest is the first 7 bytes of the hex-encoded SHA-256 digest of aead. |
| 71 | digest string |
| 72 | } |
| 73 | |
| 74 | func (a *aes256) Encrypt(plaintext []byte) ([]byte, error) { |
| 75 | nonce := make([]byte, a.aead.NonceSize()) |
nothing calls this directly
no outgoing calls
no test coverage detected