Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for symmetric ciphers #110

Open
maraino opened this issue Oct 26, 2022 · 0 comments
Open

Add support for symmetric ciphers #110

maraino opened this issue Oct 26, 2022 · 0 comments
Labels
enhancement New feature or request needs triage

Comments

@maraino
Copy link
Contributor

maraino commented Oct 26, 2022

Description

Some KMS will support symmetric ciphers PKCS#11 is one of them.

We will probably need to add something like:

type Cipher interface {
	CreateCipher(req *CreateCipherRequest) (*CreateCipherResponse, error)
	CreateSecretKey(req *CreateSecretKeyRequest) (*CreateSecretKeyResponse, error)
}

CreateCipher can load a previously created secret key, or we can remove CreateSecretKey and do both operations in CreateCipher.

We might either add different fields for different cipher types (cipher.AEAD, cipher.Block, cipher.BlockMode, cipher.Stream) or use something like crypto11.SecretKey

@maraino maraino added enhancement New feature or request needs triage labels Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage
Projects
None yet
Development

No branches or pull requests

1 participant