Documentation ¶
Index ¶
- Constants
- func DecodeBase64(data string) ([]byte, error)
- func EncodeASN1(rawBase64sig string, mechanism int) ([]byte, error)
- func EncodeBase64(data []byte) string
- func EncodeHex(data []byte) string
- func GetECClientMechanism(digest string) int
- func GetHasher(digest string) (hash.Hash, crypto.Hash, []byte)
- func GetRSAClientMechanism(digest string) int
- func ParseCertificates(data [][]byte) ([]*x509.Certificate, error)
- func ParsePEM(data []byte) ([]*x509.Certificate, error)
- func Verify(data []byte, signature []byte, digest string, publicKeyPath string) error
- type PSSMechanism
Constants ¶
View Source
const EcDsa = 4161
View Source
const EcDsaSha1 = 4162
View Source
const EcDsaSha224 = 4163
View Source
const EcDsaSha256 = 4164
View Source
const EcDsaSha384 = 4165
View Source
const EcDsaSha512 = 4166
View Source
const EdDsa = 4183
View Source
const Mgf1Sha1 = 1
View Source
const Mgf1Sha224 = 5
View Source
const Mgf1Sha256 = 2
View Source
const Mgf1Sha384 = 3
View Source
const Mgf1Sha512 = 4
View Source
const RsaPkcs = 1
View Source
const RsaPkcsOaep = 9
View Source
const RsaPkcsPss = 13
View Source
const RsaPssSha1 = 14
View Source
const RsaPssSha224 = 71
View Source
const RsaPssSha256 = 67
View Source
const RsaPssSha384 = 68
View Source
const RsaPssSha512 = 69
View Source
const RsaSha1 = 6
View Source
const RsaSha224 = 70
View Source
const RsaSha256 = 64
View Source
const RsaSha384 = 65
View Source
const RsaSha512 = 66
View Source
const Sha1 = 544
View Source
const Sha224 = 597
View Source
const Sha256 = 592
View Source
const Sha384 = 608
View Source
const Sha512 = 624
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func GetECClientMechanism ¶
func GetRSAClientMechanism ¶
func ParseCertificates ¶
func ParseCertificates(data [][]byte) ([]*x509.Certificate, error)
Types ¶
type PSSMechanism ¶
func GetPSSMechanism ¶
func GetPSSMechanism(digest string) PSSMechanism
Click to show internal directories.
Click to hide internal directories.