tink-crypto / tink-crypto/tink-java
Convert AeadParameters to KeyTemplate and vice versa
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 305
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem?
We are using the Aead Evenlope encryption. We are planning to store the DEK KeyTemplate with the encrypted data so that we know which template to use for decryption.
What is the intended way to come from an KeyTemplate to the related Parameters?
template = AeadKeyTemplates.createKmsEnvelopeAeadKeyTemplate(reference.getKeyURI(), AeadKeyTemplates.AES128_GCM);
parameters = /* ? */
Aead aead = KmsEnvelopeAead.create(parameters, remoteAead);
What sort of feature would you like to see?
Util method to convert AeadParameters to a KeyTempleate and vice versa
Have you considered any alternative solutions?
We ware not able to figure out how to convert parameters to key templates
Thx, Regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading AeadParameters, KeyTemplate, AeadKeyTemplates.createKmsEnvelopeAeadKeyTemplate, and KmsEnvelopeAead.create to understand the two representations and their existing relationship. The issue is complete when the intended conversions are defined and a utility approach, including its expected behavior, is established for both directions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100