wintercg / proposal-minimum-common-api

https://min-common-api.proposal.wintercg.org/
Other
227 stars 13 forks source link

WebCrypto opaque/extractable keys? #22

Open littledan opened 2 years ago

littledan commented 2 years ago

When creating a key in WebCrypto, the extractable parameter/property indicates whether a key should be treated as opaque. This makes sense on the Web Platform where you could put something in IndexedDB and read it back out without compromising opacity, but makes less sense natively--how would it be used? Should WinterCG platforms be expected to support non-extractable keys?

panva commented 2 years ago

I don't see a case for carving non-extractable keys out. The API is simple and its placement in a non-browser context is not problematic (as seen by implementation in deno, node, workers).

As a library developer I don't need another place to branch code based on iffy runtime detection.