Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeySize = 32 NonceSize = 24 TagSize = 32 )
Variables ¶
View Source
var (
ErrOpen = errors.New("xchacha20blake3: error decrypting ciphertext")
)
Functions ¶
This section is empty.
Types ¶
type XChaCha20Sha256 ¶
type XChaCha20Sha256 struct {
// contains filtered or unexported fields
}
func New ¶
func New(key []byte) (*XChaCha20Sha256, error)
func (*XChaCha20Sha256) NonceSize ¶
func (*XChaCha20Sha256) NonceSize() int
func (*XChaCha20Sha256) Open ¶
func (x *XChaCha20Sha256) Open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error)
func (*XChaCha20Sha256) Overhead ¶
func (*XChaCha20Sha256) Overhead() int
func (*XChaCha20Sha256) Seal ¶
func (x *XChaCha20Sha256) Seal(dst, nonce, plaintext, additionalData []byte) []byte
Click to show internal directories.
Click to hide internal directories.