Method
Seal
(out, nonce, plaintext, additionalData []byte)
Source from the content-addressed store, hash-verified
| 457 | func (f *prefixNonceAEAD) explicitNonceLen() int { return f.NonceSize() } |
| 458 | |
| 459 | func (f *prefixNonceAEAD) Seal(out, nonce, plaintext, additionalData []byte) []byte { |
| 460 | copy(f.nonce[4:], nonce) |
| 461 | return f.aead.Seal(out, f.nonce[:], plaintext, additionalData) |
| 462 | } |
| 463 | |
| 464 | func (f *prefixNonceAEAD) Open(out, nonce, ciphertext, additionalData []byte) ([]byte, error) { |
| 465 | copy(f.nonce[4:], nonce) |
Callers
nothing calls this directly
Tested by
no test coverage detected