encrypt

package
v0.0.0-...-bbfb1e9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInfo

func CreateInfo(infoType string, context []byte) string

Create an encoded info

func Encrypt

func Encrypt(clientPublicKey, clientAuthToken, text string) map[string]interface{}

func GenerateBytes

func GenerateBytes(size int) []byte

Generate an array of bytes with random seed

func GenerateContext

func GenerateContext(clientPublic, serverPublic []byte) ([]byte, error)

Generate context for encryption It is based on section 4.2 of RFC

func Hkdf

func Hkdf(salt, ikm, info []byte, lenght int) []byte

Generate a Secured Key

Types

This section is empty.

Jump to

Keyboard shortcuts

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