primitives

package
v0.0.0-...-7579eda Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package primitives bundles various cryptographic algorithms to enable modular usage in the messaging protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(data ...[]byte) []byte

Concat joins multiple bytes arrays.

func Decode

func Decode(data []byte, obj interface{}) error

Decode gob decodes a given byte array into an object.

func Digest

func Digest(f hash.Hash, data ...[]byte) []byte

Digest applies the hash function f on the provided data.

func Encode

func Encode(obj interface{}) ([]byte, error)

Encode gob encodes a given structure.

func Xor

func Xor(a, b []byte) []byte

Xor two byte slices.

Types

This section is empty.

Directories

Path Synopsis
Package encryption bundles various symmetric and asymmetric encryption schemes.
Package encryption bundles various symmetric and asymmetric encryption schemes.
Package hibe bundles different HIBE schemes under a common interface.
Package hibe bundles different HIBE schemes under a common interface.
Package signature bundles various digital signature schemes.
Package signature bundles various digital signature schemes.

Jump to

Keyboard shortcuts

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