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 24767 - Attributes of KeyAlgorithm should be readonly
Summary: Attributes of KeyAlgorithm should be readonly
Status: RESOLVED FIXED
Alias: None
Product: Web Cryptography
Classification: Unclassified
Component: Web Cryptography API Document (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Mark Watson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-21 18:54 UTC by Eric Roman
Modified: 2014-02-28 02:05 UTC (History)
1 user (show)

See Also:


Attachments

Description Eric Roman 2014-02-21 18:54:43 UTC
Some KeyAlgorithms have readonly attributes others don't. These ones for instance don't:


interface RsaKeyAlgorithm : KeyAlgorithm {
  // The length, in bits, of the RSA modulus
  unsigned long modulusLength;
  // The RSA public exponent
  BigInteger publicExponent;
};

dictionary HmacKeyAlgorithm : KeyAlgorithm {
  // The inner hash function to use.
  KeyAlgorithm hash;
};
    

It be confusing to allow mutating these properties, since it shouldn't have an effect on the key. Hence I recommend making them readonly.
Comment 1 Eric Roman 2014-02-21 19:11:54 UTC
Also, should include the keyword "attribute"
Comment 2 Mark Watson 2014-02-28 01:15:26 UTC
This makes sense to me.
Comment 3 Mark Watson 2014-02-28 02:05:37 UTC
Changeset 2c367832ef72