signatureCheck

package
v0.0.0-...-a51d5c8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicKey

func GetPublicKey(signAlgo x509.SignatureAlgorithm, pubOID asn1.ObjectIdentifier, pubBytes []byte, curve asn1.ObjectIdentifier) (pubKey interface{}, err error)

func VerifySignature

func VerifySignature(signInfo SignatureInfo) (bool, error)

Types

type SignatureInfo

type SignatureInfo struct {
	PublicKey     []byte
	Signature     []byte
	PlainText     []byte
	SignatureAlgo asn1.ObjectIdentifier
	PublicAlgo    asn1.ObjectIdentifier
	Curve         asn1.ObjectIdentifier
}

Jump to

Keyboard shortcuts

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