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