crypto

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocationHash

func CreateLocationHash(encryptedData []byte) multihash.Multihash

func CreateMessageHash

func CreateMessageHash(encodedData []byte) multihash.Multihash

CreateMessageHash used to verify if the contents of the message match the hash.

Types

type PrivateKey

type PrivateKey interface {
	// Bytes returns the byte representation of the private key
	Bytes() []byte
	// PublicKey from the PrivateKey
	PublicKey() PublicKey
}

PrivateKey definition usable in all mailchain crypto operations

type PublicKey

type PublicKey interface {
	// Bytes returns the byte representation of the public key
	Bytes() []byte
	// Address returns the byte representation of the address
	Address() []byte
}

PublicKey definition usable in all mailchain crypto operations

Directories

Path Synopsis
aes256cbc
package aes256cbc Advanced Encryption Standard, with a 256 bit key length, operating in the Chain Block Cipher mode (AES-256-CBC).
package aes256cbc Advanced Encryption Standard, with a 256 bit key length, operating in the Chain Block Cipher mode (AES-256-CBC).
ciphertest
Package ciphertest is a generated GoMock package.
Package ciphertest is a generated GoMock package.

Jump to

Keyboard shortcuts

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