MCPcopy Create free account
hub / github.com/XTLS/REALITY / Open

Method Open

cipher_suites.go:468–471  ·  view source on GitHub ↗
(out, nonce, ciphertext, additionalData []byte)

Source from the content-addressed store, hash-verified

466}
467
468func (f *prefixNonceAEAD) Open(out, nonce, ciphertext, additionalData []byte) ([]byte, error) {
469 copy(f.nonce[4:], nonce)
470 return f.aead.Open(out, f.nonce[:], ciphertext, additionalData)
471}
472
473// xorNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce
474// before each call.

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected