crypto

package
v0.0.0-...-f096b25 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCiphertextLengthIsInvalid = errors.New("ciphertext length is invalid")

Functions

func AES128CBCDecrypt

func AES128CBCDecrypt(key, iv, ciphertext []byte) ([]byte, error)

func AES128CBCEncrypt

func AES128CBCEncrypt(key, iv, plaintext []byte) ([]byte, error)

func AESGCMDecrypt

func AESGCMDecrypt(key, nounce, ciphertext []byte) ([]byte, error)

AESGCMDecrypt chromium > 80 https://source.chromium.org/chromium/chromium/src/+/master:components/os_crypt/sync/os_crypt_win.cc

func AESGCMEncrypt

func AESGCMEncrypt(key, nonce, plaintext []byte) ([]byte, error)

AESGCMEncrypt encrypts plaintext using AES encryption in GCM mode.

func DES3Decrypt

func DES3Decrypt(key, iv, ciphertext []byte) ([]byte, error)

func DES3Encrypt

func DES3Encrypt(key, iv, plaintext []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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