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

fix(ext/crypto): ecdh spki key import/export roundtrip #16152

Merged
merged 1 commit into from
Oct 4, 2022
Merged

fix(ext/crypto): ecdh spki key import/export roundtrip #16152

merged 1 commit into from
Oct 4, 2022

Conversation

panva
Copy link
Contributor

@panva panva commented Oct 4, 2022

This change removes the use of OID 1.3.132.1.12 (id-ecDH) in ECDH spki export.

  • it is not interoperable with other implementations
  • it cannot be imported by Deno's own implementation

closes #15523

@panva
Copy link
Contributor Author

panva commented Oct 4, 2022

cc @littledivy

@panva panva changed the title fix(ext/crypto): ecdh spki key import/export rountrip fix(ext/crypto): ecdh spki key import/export roundtrip Oct 4, 2022
@littledivy littledivy merged commit aa710aa into denoland:main Oct 4, 2022
littledivy pushed a commit that referenced this pull request Oct 4, 2022
This PR updates RSA key import/export to a state which is interoperable
with other implementations.

For RSA the only OID in and out is `rsaEncryption`.
For EC the only OID in and out is `id-ecpublickey` (fixed in #16152).

see w3c/webcrypto#307 (comment)
see w3c/webcrypto#307
see w3c/webcrypto#305
see nodejs/node#42816
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.

ECDH P-256: Exporting public key to 'spki' format produces an invalid result
2 participants