cipher

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

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESGCMDecrypt

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

AESGCMDecrypt decrypts ciphertext with the provided key using the Galois/Counter Mode of operation with the AES algorithm.

func AESGCMEncrypt

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

AESGCMEncrypt encrypts plaintext with the provided key using the Galois/Counter Mode of operation with the AES algorithm.

func RSADecrypt

func RSADecrypt(ciphertext *[]byte, privateKey *rsa.PrivateKey) ([]byte, error)

RSADecrypt decrypts the given ciphertext using RSA-OAEP.

func RSAEncrypt

func RSAEncrypt(content *[]byte, publicKey *rsa.PublicKey) ([]byte, error)

RSAEncrypt encrypts the given content using RSA-OAEP.

Types

This section is empty.

Jump to

Keyboard shortcuts

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