cbckit

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText []byte, key []byte) ([]byte, error)

func DecryptWithNonceSize

func DecryptWithNonceSize(cipherBytes []byte, key []byte, nonceSize int) ([]byte, error)

func Encrypt

func Encrypt(plain []byte, key []byte) ([]byte, error)

func EncryptWithNonce

func EncryptWithNonce(plain []byte, key []byte, nonce []byte) ([]byte, error)

func EncryptWithNonceSize

func EncryptWithNonceSize(plain []byte, key []byte, nonceSize int) ([]byte, error)

32 bit key for AES-256 24 bit key for AES-192 16 bit key for AES-128

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL