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

Support generating ECDH keys in TEE with access control #2282

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

cpetrov
Copy link
Member

@cpetrov cpetrov commented Dec 13, 2023

Previously, the options inTee and usageRequiresAuth of generateKey() were only supported for ECDSA keys. This commit extends the support for those options to ECDH keys as well.

It also provides an example for deriving AES keys from ECDH keys and encrypting/decrypting data with them, using the new options.

Boyscouting: reduce code duplication in the crypto-sign.ts snippet.

Previously, the options `inTee` and `usageRequiresAuth` of
`generateKey()` were only supported for ECDSA keys. This commit extends
the support for those options to ECDH keys as well.

It also provides an example for deriving AES keys from ECDH keys and
encrypting/decrypting data with them, using the new options.

Boyscouting: reduce code duplication in the `crypto-sign.ts` snippet.
snippets/crypto-derive.ts Show resolved Hide resolved
snippets/crypto-derive.ts Show resolved Hide resolved
@cpetrov cpetrov merged commit 6c2026a into master Dec 18, 2023
1 check passed
@cpetrov cpetrov deleted the pr-ecdh-intee branch December 18, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants