- From: <bugzilla@jessica.w3.org>
- Date: Tue, 05 Aug 2014 16:46:33 +0000
- To: public-webcrypto@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26411 --- Comment #4 from Richard Barnes <rlb@ipv.sx> --- Another way you could go about this is to add a way to get the public key that corresponds to a given private key. This is clearly possible for EC and DH keys, and should pretty much always be possible for RSA keys. That way the API could default to private key import if the private parameters are present, then you could translate over to the public if you need it. As a bonus, this seems like something that could be useful more generally. partial interface CryptoKey { readonly attribute CryptoKey correspondingPublicKey; // or CryptoKey correspondingPublicKey(); } ... then return null or throw if there's not a public key available (e.g., if the underlying key is a symmetric key). -- You are receiving this mail because: You are on the CC list for the bug.
Received on Tuesday, 5 August 2014 16:46:37 UTC