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

Web Crypto API - Curve25519 Now Available on MDN #28287

Closed
suchislife801 opened this issue Feb 25, 2025 · 0 comments
Closed

Web Crypto API - Curve25519 Now Available on MDN #28287

suchislife801 opened this issue Feb 25, 2025 · 0 comments

Comments

@suchislife801
Copy link

Today, I wanted to test this Curve in Deno after seeing it available in the Web Crypto API but I got the following error instead:

error: Uncaught (in promise) NotSupportedError: Curve not supported
    return await crypto.subtle.generateKey(
                               ^
    at generateKey (ext:deno_crypto/00_crypto.js:1907:15)
    at SubtleCrypto.generateKey (ext:deno_crypto/00_crypto.js:1671:26)

Is it because Browsers don't support it yet or Deno has not yet exposed it?

SubtleCrypto: generateKey() method

Note: This feature is available in Web Workers.

The generateKey() method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).

Syntax

function generateKey(algorithm, extractable, keyUsages)

Parameters

algorithm An object defining the type of key to generate and providing extra algorithm-specific parameters.

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

No branches or pull requests

1 participant