Documentation ¶
Index ¶
- func AsCryptoSigner(signer dsse.SignerVerifier) (crypto.Signer, error)
- func ConvertToPEM(ecdsaPubKey *ecdsa.PublicKey) ([]byte, error)
- func GenKeyPair() (dsse.SignerVerifier, error)
- func GetAWSSigner(ctx context.Context, keyARN string, region string) (dsse.SignerVerifier, error)
- func GetGCPSigner(ctx context.Context, reference string, opts ...option.ClientOption) (dsse.SignerVerifier, error)
- func KeyID(pubKey crypto.PublicKey) (string, error)
- func LoadKeyPair(priv []byte) (dsse.SignerVerifier, error)
- func NewECDSASignerVerifier(signer crypto.Signer) (dsse.SignerVerifier, error)
- func NewECDSAVerifier(publicKey crypto.PublicKey) (dsse.Verifier, error)
- func ParseECDSAPublicKey(pubkeyBytes []byte) (*ecdsa.PublicKey, error)
- func ParsePublicKey(pubkeyBytes []byte) (crypto.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsCryptoSigner ¶ added in v0.6.0
func AsCryptoSigner(signer dsse.SignerVerifier) (crypto.Signer, error)
func GenKeyPair ¶
func GenKeyPair() (dsse.SignerVerifier, error)
func GetAWSSigner ¶
using AWS KMS.
func GetGCPSigner ¶
func GetGCPSigner(ctx context.Context, reference string, opts ...option.ClientOption) (dsse.SignerVerifier, error)
using GCP KMS reference should be in the format projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEY_RING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION].
func LoadKeyPair ¶
func LoadKeyPair(priv []byte) (dsse.SignerVerifier, error)
func NewECDSASignerVerifier ¶ added in v0.6.0
func NewECDSASignerVerifier(signer crypto.Signer) (dsse.SignerVerifier, error)
func NewECDSAVerifier ¶ added in v0.6.0
func ParseECDSAPublicKey ¶ added in v0.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.