crypto

package
v1.10.0-beta.20201225 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2b256

func Blake2b256(msg []byte) []byte

Blake2b256 blake2b.Sum256

func Blake2b384

func Blake2b384(msg []byte) []byte

Blake2b384 blake2b.Sum384

func Blake2b512

func Blake2b512(msg []byte) []byte

Blake2b512 blake2b.Sum512

func Ed25519sign

func Ed25519sign(seed, msg []byte) []byte

Ed25519sign ed25519签名, seed为私钥, msg: 代签数据

(BBC私钥 hex decode 字符串然后反转字节顺序即可,即: HexDecodeThenReverse)

func Ed25519verify

func Ed25519verify(publicKey, message, sig []byte) bool

Ed25519verify 验证签名,公钥 明文 密文

(BBC公钥 hex decode 字符串然后反转字节顺序即可,即: HexDecodeThenReverse)

func HexDecodeThenReverse

func HexDecodeThenReverse(str string) ([]byte, error)

HexDecodeThenReverse hex decode then reverse byte[]

Types

This section is empty.

Jump to

Keyboard shortcuts

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