You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
I know this is more verbose, but it tells you a few things:
For new DEKs we will use the above parameter set.
For old DEKs, we will assume that they are AES GCM keys.
Note that in order for things to work properly they need to fit, but it also is clear that you cannot easily change this.
More generally, it is always possible to convert a com.google.crypto.tink.proto.KeyTemplate into a parameters with TinkProtoParametersFormat.parse(t.toByteArray());
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 relatedParameters
?What sort of feature would you like to see?
Util method to convert
AeadParameters
to aKeyTempleate
and vice versaHave you considered any alternative solutions?
We ware not able to figure out how to convert parameters to key templates
Thx, Regards
The text was updated successfully, but these errors were encountered: