Skip to content

Add SecretKey type for typed symmetric encryption#382

Draft
Sébastien Duquette (sduquette-devolutions) wants to merge 4 commits intomasterfrom
SEC-16740-key-derivation
Draft

Add SecretKey type for typed symmetric encryption#382
Sébastien Duquette (sduquette-devolutions) wants to merge 4 commits intomasterfrom
SEC-16740-key-derivation

Conversation

@sduquette-devolutions
Copy link
Copy Markdown
Contributor

Add a wrapped SecretKey type analogous to PrivateKey/PublicKey.
Ciphertext::encrypt_with_secret_key and Ciphertext::decrypt_with_secret_key
take the key as a SecretKey instead of raw bytes.

Methods encrypt_with_raw_key and decrypt_with_raw_key were defined,
encrypt/decrypt call these methods.

Add a wrapped SecretKey type analogous to PrivateKey/PublicKey.
`Ciphertext::encrypt_with_secret_key` and `Ciphertext::decrypt_with_secret_key`
take the key as a SecretKey instead of raw bytes.

Methods encrypt_with_raw_key and decrypt_with_raw_key were defined,
encrypt/decrypt call these methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant