internal

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(key, ciphertext []byte) ([]byte, error)

DecryptAES decrypts ciphertext in AES-256-CBC.

func DecryptRSA

func DecryptRSA(privateKey, ciphertext []byte) ([]byte, error)

DecryptRSA decrypts ciphertext using private key (x509 format).

func GenerateRSAKeyPair

func GenerateRSAKeyPair() (public []byte, private []byte, err error)

GenerateRSAKeyPair generates a key pair suitable for encryption.

func PKCS7Unpad

func PKCS7Unpad(msg []byte, blockSize int) ([]byte, error)

PKCS7Unpad provides PKCS #7 unpadding mechanism.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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