prefixNonceAEAD wraps an AEAD and prefixes a fixed portion of the nonce to each call.
| 447 | // prefixNonceAEAD wraps an AEAD and prefixes a fixed portion of the nonce to |
| 448 | // each call. |
| 449 | type prefixNonceAEAD struct { |
| 450 | // nonce contains the fixed part of the nonce in the first four bytes. |
| 451 | nonce [aeadNonceLength]byte |
| 452 | aead cipher.AEAD |
| 453 | } |
| 454 | |
| 455 | func (f *prefixNonceAEAD) NonceSize() int { return aeadNonceLength - noncePrefixLength } |
| 456 | func (f *prefixNonceAEAD) Overhead() int { return f.aead.Overhead() } |
nothing calls this directly
no outgoing calls
no test coverage detected