Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeB64Std ¶
DecodeB64Std is used for signatures returned as base64 (standard) from the API.
func ValidateAndParseES256Key ¶
func ValidateAndParseES256Key(jwk definitions.JWK, allowedKid map[string]struct{}) (*ecdsa.PublicKey, error)
ValidateAndParseES256Key validates a JWK and returns a usable ECDSA public key.
Validation matches server + .NET SDK behavior: - alg must be ES256 - curve must be P-256 - kid must equal sha1(x||y) + "ES256"
func VerifySignedDefinitions ¶
func VerifySignedDefinitions(env *definitions.SignedDefinitionsResponse, jwks *definitions.JWKSet, allowedKid map[string]struct{}) error
VerifySignedDefinitions verifies a signed definitions response.
It expects: - env.Defs is the exact raw JSON bytes from the "defs" property - env.Timestamp is the integer timestamp (Unix seconds) - env.Signature is base64 (standard) encoding of the ES256 signature
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.