xoredNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce before each call.
| 469 | // xoredNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce |
| 470 | // before each call. |
| 471 | type xorNonceAEAD struct { |
| 472 | nonceMask [aeadNonceLength]byte |
| 473 | aead cipher.AEAD |
| 474 | } |
| 475 | |
| 476 | func (f *xorNonceAEAD) NonceSize() int { return 8 } // 64-bit sequence number |
| 477 | func (f *xorNonceAEAD) Overhead() int { return f.aead.Overhead() } |
nothing calls this directly
no outgoing calls
no test coverage detected