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