Documentation ¶
Index ¶
- Constants
- type SoftKMS
- func (k *SoftKMS) Close() error
- func (k *SoftKMS) CreateDecrypter(req *apiv1.CreateDecrypterRequest) (crypto.Decrypter, error)
- func (k *SoftKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)
- func (k *SoftKMS) CreateSigner(req *apiv1.CreateSignerRequest) (crypto.Signer, error)
- func (k *SoftKMS) GetPublicKey(req *apiv1.GetPublicKeyRequest) (crypto.PublicKey, error)
Constants ¶
View Source
const DefaultRSAKeySize = 3072
DefaultRSAKeySize is the default size for RSA keys.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoftKMS ¶
type SoftKMS struct{}
SoftKMS is a key manager that uses keys stored in disk.
func (*SoftKMS) CreateDecrypter ¶ added in v0.15.16
CreateDecrypter creates a new crypto.Decrypter backed by disk/software
func (*SoftKMS) CreateKey ¶
func (k *SoftKMS) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)
CreateKey generates a new key using Golang crypto and returns both public and private key.
func (*SoftKMS) CreateSigner ¶
CreateSigner returns a new signer configured with the given signing key.
func (*SoftKMS) GetPublicKey ¶
GetPublicKey returns the public key from the file passed in the request name.
Click to show internal directories.
Click to hide internal directories.