This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26320 - RsaHashedKeyAlgorithm inherits from RsaKeyAlgorithm
Summary: RsaHashedKeyAlgorithm inherits from RsaKeyAlgorithm
Status: RESOLVED WONTFIX
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-12 21:03 UTC by Richard Barnes
Modified: 2014-10-22 21:20 UTC (History)
5 users (show)

See Also:


Attachments

Description Richard Barnes 2014-07-12 21:03:41 UTC
With the removal of RSAES-PKCS1-v1_5, the dictionary RsaKeyAlgorithm disappeared as well.  So RsaHashedKeyAlgorithm needs to inherit directly from KeyAlgorithm, not from RsaKeyAlgorithm.
Comment 1 Mark Watson 2014-09-25 22:58:07 UTC
This seems straightforward.
Comment 3 Ryan Sleevi 2014-10-07 02:18:41 UTC
Reopening.

The resolution introduced two dictionaries that are unused, except for inheritance purposes. With the removal of RSAES-PKCS1-v1_5, these dictionaries should be folded as members of RsaHashedKeyGenParams / RsaHashedKeyAlgorithm.
Comment 4 Mark Watson 2014-10-07 14:08:07 UTC
Well, inheritance is a form os use, so they are not unused.

I left these separate because it seemed like it might be useful to have the base definitions available for algorithms that use RSA keys without parameterization with a hash. If the removed RSA-ES is the only such algorithm that will ever exist, then indeed these dictionaries would never be used.

This is entirely editorial anyway.
Comment 5 Ryan Sleevi 2014-10-09 21:37:00 UTC
(In reply to Mark Watson from comment #4)
> Well, inheritance is a form os use, so they are not unused.
> 
> I left these separate because it seemed like it might be useful to have the
> base definitions available for algorithms that use RSA keys without
> parameterization with a hash. If the removed RSA-ES is the only such
> algorithm that will ever exist, then indeed these dictionaries would never
> be used.
> 
> This is entirely editorial anyway.

We had great discussions with the TAG and Boris on the non-idiomatic approach to inheritance, with multiple vendors expressing concerns over the "C++ style" API.

I think we can and should nuke the inheritance, as it's visible (as has been noted before)
Comment 6 Boris Zbarsky 2014-10-09 21:53:50 UTC
Dictionary inheritance is just a spec artifact; it's not visible in any way that I'm aware of...
Comment 7 Mark Watson 2014-10-22 21:20:49 UTC
As per comment#6 there is no visible difference between the current specification and combining the dictionary definitions.