Documentation ¶
Index ¶
- func DecodePrivateKey(privPEM []byte) *ecdsa.PrivateKey
- func DecodePublicKey(pubPEM []byte) *ecdsa.PublicKey
- func EncodeKeys(pk *ecdsa.PrivateKey) ([]byte, []byte)
- func FetchPrivateKeyFromVault(endpoint, token, mountPath, secretPath string) ([]byte, error)
- func FetchPublicKeyFromVault(endpoint, token string) ([]byte, error)
- func Sign(imgID string, privKey *ecdsa.PrivateKey) (string, error)
- func Validate(imgID string, pubKey *ecdsa.PublicKey, sign string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivateKey ¶
func DecodePrivateKey(privPEM []byte) *ecdsa.PrivateKey
func DecodePublicKey ¶
func EncodeKeys ¶
func EncodeKeys(pk *ecdsa.PrivateKey) ([]byte, []byte)
func FetchPublicKeyFromVault ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.