usecrets

package
v0.0.0-...-fa1878a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDecrypt

func AesCBCDecrypt(cipherData, key, iv []byte) ([]byte, error)

func AesCBCEncrypt

func AesCBCEncrypt(plainData, key, iv []byte) ([]byte, error)

AesCBCEncrypt aes encryptor,len of key corresponding to algo, 16 is AES-128, 24 is AES-192, 32 is AES-256.

func AesCTRDecrypt

func AesCTRDecrypt(data, key, iv []byte) ([]byte, error)

func AesCTREncrypt

func AesCTREncrypt(data, key, iv []byte) ([]byte, error)

func PKCS7Padding

func PKCS7Padding(data []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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