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

Method Open

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected