encrypting

package
v0.0.0-...-ba0cd9c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(privB *ecdsa.PrivateKey, certA *x509.Certificate, cipher []byte) ([]byte, error)

func Encrypt

func Encrypt(privA *ecdsa.PrivateKey, certA, certB *x509.Certificate, message []byte) ([]byte, error)

Types

type EncryptedMessage

type EncryptedMessage struct {
	Rx, Ry *big.Int
	C      string
	E, Z   *big.Int
}

Jump to

Keyboard shortcuts

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