Skip to content

Add support for symmetric ciphers #110

@maraino

Description

@maraino

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions