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