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