### NewWithManualNonces Source: https://pkg.go.dev/filippo.io/xaes256gcm Documentation for the NewWithManualNonces function, which creates an XAES-256-GCM AEAD instance with manual nonce management. ```APIDOC ## NewWithManualNonces(key []byte) (cipher.AEAD, error) ### Description Returns a new XAES-256-GCM instance that expects 24-byte nonces to be passed to Open and Seal. Nonces can be safely generated with crypto/rand.Read. The key must be exactly 32 bytes long. ### Function Signature func NewWithManualNonces(key []byte) (cipher.AEAD, error) ### Parameters - **key** ([]byte) - Required - The encryption key, must be exactly 32 bytes long. ### Returns - **cipher.AEAD** - The AEAD instance for encryption/decryption. - **error** - An error if the key length is invalid. ### Usage Notes Most applications should use New instead, which automatically generates random nonces and prepends them to the ciphertext. (Note that New is not implemented yet.) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.