Versions in this module Expand all Collapse all v0 v0.9.0 Apr 14, 2022 Changes in this version + var ErrSigNotProvidedOrInvalid = &Error + var ErrUnsupportedAlgorithm = &Error + var ErrUnsupportedKey = &Error + var SignatureAlgorithmDetails = []struct{ ... } + func DisplayPublicKey(cpk []byte) string + func HasherFromCOSEAlg(coseAlg COSEAlgorithmIdentifier) func() hash.Hash + func ParsePublicKey(keyBytes []byte) (interface{}, error) + func VerifySignature(key interface{}, data []byte, sig []byte) (bool, error) + type COSEAlgorithmIdentifier int + const AlgES256 + const AlgES384 + const AlgES512 + const AlgEdDSA + const AlgPS256 + const AlgPS384 + const AlgPS512 + const AlgRS1 + const AlgRS256 + const AlgRS384 + const AlgRS512 + type COSEKeyType int + const EllipticKey + const OctetKey + const RSAKey + type EC2PublicKeyData struct + Curve int64 + XCoord []byte + YCoord []byte + func ParseFIDOPublicKey(keyBytes []byte) (EC2PublicKeyData, error) + func (k *EC2PublicKeyData) Verify(data []byte, sig []byte) (bool, error) + type Error struct + Details string + DevInfo string + Type string + func (err *Error) Error() string + func (passedError *Error) WithDetails(details string) *Error + type OKPPublicKeyData struct + Curve int64 + XCoord []byte + func (k *OKPPublicKeyData) Verify(data []byte, sig []byte) (bool, error) + type PublicKeyData struct + Algorithm int64 + KeyType int64 + type RSAPublicKeyData struct + Exponent []byte + Modulus []byte + func (k *RSAPublicKeyData) Verify(data []byte, sig []byte) (bool, error) + type SignatureAlgorithm int + const DSAWithSHA1 + const DSAWithSHA256 + const ECDSAWithSHA1 + const ECDSAWithSHA256 + const ECDSAWithSHA384 + const ECDSAWithSHA512 + const MD2WithRSA + const MD5WithRSA + const SHA1WithRSA + const SHA256WithRSA + const SHA256WithRSAPSS + const SHA384WithRSA + const SHA384WithRSAPSS + const SHA512WithRSA + const SHA512WithRSAPSS + const UnknownSignatureAlgorithm + func SigAlgFromCOSEAlg(coseAlg COSEAlgorithmIdentifier) SignatureAlgorithm