Documentation ¶
Overview ¶
Package alg_ecdsa provides a signers and verifiers for ecdsa-p256-sha256 and ecdsa-p384-sha384
Index ¶
Constants ¶
const P256_SHA256 = `ecdsa-p256-sha256`
const P384_SHA384 = `ecdsa-p384-sha384`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P256 ¶
type P256 struct { PrivateKey *ecdsa.PrivateKey PublicKey *ecdsa.PublicKey Attrs any }
func NewP256Signer ¶
func NewP256Signer(key *ecdsa.PrivateKey) *P256
NewP256Signer returns a signing algorithm based on the provided ecdsa private key.
func NewP256Verifier ¶
NewP256Verifier returns a verification algorithm based on the provided ecdsa public key.
func (P256) Attributes ¶
Attributes returns server-side attributes associated with the key.
func (P256) ContentDigest ¶
func (a P256) ContentDigest() contentdigest.Digester
type P384 ¶ added in v0.2.0
type P384 struct { PrivateKey *ecdsa.PrivateKey PublicKey *ecdsa.PublicKey Attrs any }
func NewP384Signer ¶ added in v0.2.0
func NewP384Signer(key *ecdsa.PrivateKey) *P384
NewP384Signer returns a signing algorithm based on the provided ecdsa private key.
func NewP384Verifier ¶ added in v0.2.0
NewP384Verifier returns a verification algorithm based on the provided ecdsa public key.
func (P384) Attributes ¶ added in v0.2.0
Attributes returns server-side attributes associated with the key.
func (P384) ContentDigest ¶ added in v0.2.0
func (a P384) ContentDigest() contentdigest.Digester
type P384StaticKeyDirectory ¶ added in v0.2.0
P384StaticKeyDirectory implements the verifier.KeyDirectory interface for ECDSA P384 keys. It returns a static key regardless of the provided Key ID argument.
type StaticKeyDirectory ¶
StaticKeyDirectory implements the verifier.KeyDirectory interface for ECDSA P256 keys. It returns a static key regardless of the provided Key ID argument.