Versions in this module Expand all Collapse all v1 v1.0.0 Jul 9, 2024 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) (any, error) + func VerifySignature(key any, data []byte, sig []byte) (bool, error) + type COSEAlgorithmIdentifier int + const AlgES256 + const AlgES256K + const AlgES384 + const AlgES512 + const AlgEdDSA + const AlgPS256 + const AlgPS384 + const AlgPS512 + const AlgRS1 + const AlgRS256 + const AlgRS384 + const AlgRS512 + type COSEEllipticCurve int + const Ed25519 + const Ed448 + const EllipticCurveReserved + const P256 + const P384 + const P521 + const Secp256k1 + const X25519 + const X448 + type COSEKeyType int + const EllipticKey + const HSSLMS + const KeyTypeReserved + const OctetKey + const RSAKey + const Symmetric + type EC2PublicKeyData struct + Curve int64 + XCoord []byte + YCoord []byte + func ParseFIDOPublicKey(keyBytes []byte) (data EC2PublicKeyData, err error) + func (k *EC2PublicKeyData) TPMCurveID() tpm2.EllipticCurve + 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