mcrypto

package
v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NACL_ENC_ALGO ("com.misakey.nacl-enc") is the default encryption algorithm
	NACL_ENC_ALGO = "com.misakey.nacl-enc"
	// AES_RSA_ENC_ALGO ("com.misakey.aes-rsa-enc") is an alternate encryption algorithm
	// designed for the needs of EPI Use Labs
	AES_RSA_ENC_ALGO = "com.misakey.aes-rsa-enc"
)

Variables

This section is empty.

Functions

func GetPublicKeyEncryptionAlgorithm

func GetPublicKeyEncryptionAlgorithm(pk string) string

func ValidateNaClPublicKey

func ValidateNaClPublicKey(pk interface{}) error

func ValidatePublicKey

func ValidatePublicKey(pk interface{}) error

Validate implements interface v.Rule (so that it can be used as "v.By(ValidatePublicKey)")

Types

type Hash

type Hash string

func (*Hash) Validate

func (h *Hash) Validate() error

type KeyShare

type KeyShare string

func (*KeyShare) Validate

func (s *KeyShare) Validate() error

type PublicKey

type PublicKey string

func (*PublicKey) Validate

func (pk *PublicKey) Validate() error

Jump to

Keyboard shortcuts

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