Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWK ¶
type JWK struct { Kty string `json:"kty"` Crv string `json:"crv"` X string `json:"x"` Y string `json:"y"` PublicKey *ecdsa.PublicKey `json:"-"` }
JWK represents a JSON Web Key
func (*JWK) FromECPublicKey ¶
FromECPublicKey creates JWK from elliptic curve public key
func (*JWK) GenerateECKey ¶
func (obj *JWK) GenerateECKey() *ecdsa.PrivateKey
GenerateECKey generate ECDSA key pair using secp256r1 curve
func (*JWK) ToECPublicKey ¶
ToECPublicKey to ECDSA public key
Click to show internal directories.
Click to hide internal directories.