Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 Changes in this version + func ParseECDSAPubKey2SM2PubKey(key *ecdsa.PublicKey) *sm2.PublicKey + type AuthConfig struct + IntermediateCerts [][]byte + RevocationList [][]byte + RootCerts [][]byte + func GetAuthConfig(dir string) (*AuthConfig, error) + type Validator interface + GetCertFromSignature func(signature []byte) ([]byte, error) + Setup func(config *AuthConfig) error + Validate func(cert []byte, pubKey []byte) error + func GetLocalValidator(authConfig *AuthConfig, signType int) (Validator, error) + func NewEcdsaValidator() Validator + func NewGmValidator() Validator + func NewNoneValidator() (Validator, error)