cipher

package
v0.0.0-...-7c1f5ed Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecryptGCM

func AESDecryptGCM(k string, ct string, iv []byte, additionalData []byte) (string, error)

AESDecryptGCM ...

func AESEncryptGCM

func AESEncryptGCM(k string, plaintext string, iv []byte, additionalData []byte) (string, error)

AESEncryptGCM ...

func AESTestGcm

func AESTestGcm()

AESTestGcm ...

func DecryptRSA

func DecryptRSA(rsaPriKey *rsa.PrivateKey, data string) (string, error)

DecryptRSA ...

func EncryptRSA

func EncryptRSA(rsaPubKey *rsa.PublicKey, data string) (string, error)

EncryptRSA ...

func GetKeyWithIvByRSA

func GetKeyWithIvByRSA(rsaPriKey *rsa.PrivateKey, encKey string) ([]string, error)

GetKeyWithIvByRSA ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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