rsa

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Overview

Package rsa provides RSA encryption, decryption, signing and verification with hashing

Index

Constants

This section is empty.

Variables

View Source
var HashSum []byte

HashSum ...

View Source
var PrivateKey *rsa.PrivateKey

PrivateKey ...

Functions

func DecryptSHA256

func DecryptSHA256(encryptedBytes []byte) ([]byte, error)

DecryptSHA256 ...

func EncryptSHA256

func EncryptSHA256(content []byte) ([]byte, error)

EncryptSHA256 ...

func GenerateHash256Sum

func GenerateHash256Sum(message []byte)

GenerateHash256Sum ...

func GeneratePrivateKey

func GeneratePrivateKey(privateKey *rsa.PrivateKey)

GeneratePrivateKey ...

func SignSHA256

func SignSHA256() ([]byte, error)

SignSHA256 ...

func VerifySHA256

func VerifySHA256(signature []byte) error

VerifySHA256 ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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