(out, nonce, ciphertext, additionalData []byte)
| 466 | } |
| 467 | |
| 468 | func (f *prefixNonceAEAD) Open(out, nonce, ciphertext, additionalData []byte) ([]byte, error) { |
| 469 | copy(f.nonce[4:], nonce) |
| 470 | return f.aead.Open(out, f.nonce[:], ciphertext, additionalData) |
| 471 | } |
| 472 | |
| 473 | // xorNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce |
| 474 | // before each call. |