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

Passphrase support for Context Imprint (and Token Protect) #1044

Open
ashughes opened this issue Feb 16, 2024 · 0 comments
Open

Passphrase support for Context Imprint (and Token Protect) #1044

ashughes opened this issue Feb 16, 2024 · 0 comments
Labels
core Themis Core written in C, its packages feature request

Comments

@ashughes
Copy link

Is your feature request related to a problem? Please describe.
The documentation here states that all modes have passphrase support. However, there does not appear to be passphrase support for Context Imprint or Token Protect modes (at least in the Java/Kotlin API).

Describe the solution you'd like to see
Similar to the SealWithPassphrase API, it would be helpful if there was a ContextImprintWithPassphrase (and TokenProtectWithPassphrase) API.

Describe alternatives you've considered
In order to use Context Imprint with a passphrase, we would need to generate a SymmetricKey to use with Context Imprint, then use SealWithPassphrase to encrypt the SymmetricKey and prepend it our output data. During decryption we would then have to decrypt the SymmetricKey in our header with the passphrase and then use the SymmetricKey to decrypt the data using Context Imprint.

This alternative is definitely workable, but it would be helpful if we could use the passphrase API directly to skip this extra step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Themis Core written in C, its packages feature request
Projects
None yet
Development

No branches or pull requests

2 participants