MCPcopy Create free account
hub / github.com/XTLS/Go / xorNonceAEAD

Struct xorNonceAEAD

cipher_suites.go:471–474  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected