Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm interface {
Sign(algorithm SignatureAlgorithm, digest []byte) (SignResult, error)
Verify(algorithm SignatureAlgorithm, digest, signature []byte) (VerifyResult, error)
}
type ECDsa ¶
type ECDsa struct {
// contains filtered or unexported fields
}
func (ECDsa) Sign ¶
func (c ECDsa) Sign(algorithm SignatureAlgorithm, digest []byte) (SignResult, error)
func (ECDsa) Verify ¶
func (c ECDsa) Verify(algorithm SignatureAlgorithm, digest, signature []byte) (VerifyResult, error)
type SignResult ¶
type SignResult struct {
// Algorithm is algorithm used to sign.
Algorithm SignatureAlgorithm
// KeyID is the key ID used to sign. This key ID should be retained.
KeyID string
// Signature is a signed hash of the data.
Signature []byte
}
type SignatureAlgorithm ¶
type SignatureAlgorithm = azkeys.JSONWebKeySignatureAlgorithm
type VerifyResult ¶
type VerifyResult struct {
// Algorithm is algorithm used to verify.
Algorithm SignatureAlgorithm
// KeyID is the key ID used to verify.
KeyID string
// Valid is true of the signature is valid.
Valid bool
}
Click to show internal directories.
Click to hide internal directories.