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