Score:0

Which P-256 is in Web Crypto?

cd flag
Dee

Web Crypto API allows creating ECC keys with some known curves: https://developer.mozilla.org/en-US/docs/Web/API/EcKeyGenParams

Those are P-256, P-384, P-521.

However as answered at this answer https://crypto.stackexchange.com/a/30273/99862

There are secp256k1, and secp256r1, and maybe more?

Which is the exact P-256 implemented by Web Crypto API?

DannyNiu avatar
vu flag
P-256 always refer to secp256r1, there's no "which". When the context is clearly about bitcoin, then it'd be secp256k1, and this curve is rarely used in more formal internet protocols.
kelalaka avatar
in flag
https://neuromancer.sk/std/nist/P-256
Score:2
ru flag

These are the NIST curves as specified in NIST SP800-186. In terms of the IETF designation of RFC4492 they are the same as secp256r1, secp384r1 and secp521r1 (see appendix A of the RFC).

Maarten Bodewes avatar
in flag
A bit of history about the Certicom curves and NIST decided to standardize them (at least I presume that's how this went) might be interesting.
Daniel S avatar
ru flag
@MaartenBodewes Definitely interesting, though the background to the choice of elliptic curve parameters has been the subject of "intense debate" in recent times and I'd prefer not to open that particular can of worms.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.