cryptoalgo

package
v1.25.1-0...-2fdc35d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cryptoalgo provides functionality for working with various cryptographic signature algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalKey

func UnmarshalKey(algo SignatureAlgorithm, binKey []byte) (neofscrypto.PublicKey, error)

UnmarshalKey unmarshals neofscrypto.PublicKey from a binary representation according to SignatureAlgorithm.

If algo is not supported, an error returns.

Types

type SignatureAlgorithm

type SignatureAlgorithm int

SignatureAlgorithm represents enumeration of cryptographic signature algorithms.

const (

	// ECDSA is a SignatureAlgorithm for Elliptic Curve Digital Signature Algorithm,
	// as defined in FIPS 186-3.
	ECDSA SignatureAlgorithm

	// RFC6979 is a SignatureAlgorithm for RFC 6979's deterministic DSA.
	RFC6979
)

Jump to

Keyboard shortcuts

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