Spec for RSA-OAEP doesn't say what to do for null or missing or array buffer view labels

The spec IDL says:

dictionary RsaOaepParams : Algorithm {
   // The optional label/application data to associate with the message
   CryptoOperationData? label;
};

but the prose assumes that "label" is an ArrayBuffer.  Specifically, the 
prose says:

   the contents of label member of normalizedAlgorithm as the label, L,

where "content of" links to 
https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#concept-contents-of-arraybuffer 
which is only defined for ArrayBuffer instances.  But 
CryptoOperationData can be an array buffer view, and "label" might be 
null or missing given the above IDL.

I expect we actually want to remove the '?' from the IDL there, say what 
L should be if "label" is missing, and define "content of" to work on 
all CryptoOperationData, not just ArrayBuffers.

-Boris

Received on Wednesday, 9 July 2014 19:05:37 UTC