MCPcopy Index your code
hub / github.com/XTLS/REALITY / xorNonceAEAD

Struct xorNonceAEAD

cipher_suites.go:475–478  ·  view source on GitHub ↗

xorNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce before each call.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected