MCPcopy Index your code
hub / github.com/coder/coder / aes256

Struct aes256

enterprise/dbcrypt/cipher.go:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68type 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
74func (a *aes256) Encrypt(plaintext []byte) ([]byte, error) {
75 nonce := make([]byte, a.aead.NonceSize())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected