func writeWithPadding(p *poly1305.MAC, b []byte) { … } func writeUint64(p *poly1305.MAC, n int) { … } func (c *chacha20poly1305) sealGeneric(dst, nonce, plaintext, additionalData []byte) []byte { … } func (c *chacha20poly1305) openGeneric(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) { … }