Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + const PluginName + var DefaultAgentPathTemplate = agentpathtemplate.MustParse("/{{ .PluginName }}/{{ .Fingerprint }}") + func Fingerprint(cert *x509.Certificate) string + func MakeAgentID(td spiffeid.TrustDomain, agentPathTemplate *agentpathtemplate.Template, ...) (spiffeid.ID, error) + func VerifyChallengeResponse(publicKey interface{}, challenge *Challenge, response *Response) error + func VerifyECDSASignatureResponse(publicKey *ecdsa.PublicKey, challenge *ECDSASignatureChallenge, ...) error + func VerifyRSASignatureResponse(publicKey *rsa.PublicKey, challenge *RSASignatureChallenge, ...) error + type AttestationData struct + Certificates [][]byte + type Challenge struct + ECDSASignature *ECDSASignatureChallenge + RSASignature *RSASignatureChallenge + func GenerateChallenge(cert *x509.Certificate) (*Challenge, error) + type ECDSASignatureChallenge struct + Nonce []byte + func GenerateECDSASignatureChallenge() (*ECDSASignatureChallenge, error) + type ECDSASignatureResponse struct + Nonce []byte + R []byte + S []byte + func CalculateECDSASignatureResponse(privateKey *ecdsa.PrivateKey, challenge *ECDSASignatureChallenge) (*ECDSASignatureResponse, error) + type RSASignatureChallenge struct + Nonce []byte + func GenerateRSASignatureChallenge() (*RSASignatureChallenge, error) + type RSASignatureResponse struct + Nonce []byte + Signature []byte + func CalculateRSASignatureResponse(privateKey *rsa.PrivateKey, challenge *RSASignatureChallenge) (*RSASignatureResponse, error) + type Response struct + ECDSASignature *ECDSASignatureResponse + RSASignature *RSASignatureResponse + func CalculateResponse(privateKey interface{}, challenge *Challenge) (*Response, error)