<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25389</bug_id>
          
          <creation_ts>2014-04-18 08:37:25 +0000</creation_ts>
          <short_desc>Define octet string</short_desc>
          <delta_ts>2014-09-24 21:00:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Web Cryptography</product>
          <component>Web Cryptography API Document</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Mark Watson">watsonm</assigned_to>
          <cc>public-webcrypto</cc>
    
    <cc>watsonm</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104074</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-04-18 08:37:25 +0000</bug_when>
    <thetext>It&apos;s not really clear what that means.

(Aligning with http://encoding.spec.whatwg.org/#terminology and such would be good here I think.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111945</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-22 17:42:02 +0000</bug_when>
    <thetext>I propose: &quot;An octet string is an ordered sequence of zero or more integers, each in the range 0 to 255 inclusive.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112097</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 18:50:34 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcrypto-api/rev/245fcde1bf6f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112111</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 20:00:14 +0000</bug_when>
    <thetext>Why can&apos;t we call this a byte sequence as the Encoding standard recommends? Seems weird to use different terminology here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112120</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 20:15:53 +0000</bug_when>
    <thetext>(In reply to Anne from comment #3)
&gt; Why can&apos;t we call this a byte sequence as the Encoding standard recommends?
&gt; Seems weird to use different terminology here.

I don&apos;t see a definition of &apos;byte sequence&apos; at the link you provided. I see a definition of &apos;byte&apos; which looks odd to me (I would think a byte is an integer between 0 and 255 inclusive without any implication about how it is &apos;represented&apos;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112121</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 20:25:20 +0000</bug_when>
    <thetext>Well, you have to represent it somehow in a document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112122</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 20:27:16 +0000</bug_when>
    <thetext>(In reply to Anne from comment #5)
&gt; Well, you have to represent it somehow in a document.

What we need in the WebCrypto spec is an abstract type for describing the processing of information within our procedures and in particular passing information to / from cryptographic algorithms described in other specifications. We don&apos;t need to define / assume any particular way to represent members of that type, whether in a document, in memory or elsewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112124</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 20:46:27 +0000</bug_when>
    <thetext>If you don&apos;t represent it you don&apos;t have to worry about that part. The larger point here is that we use byte everywhere, not octet. And &quot;ByteString&quot; already has a particular meaning you&apos;re not employing here. So byte sequence would be best.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112126</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Watson">watsonm</who>
    <bug_when>2014-09-24 20:56:12 +0000</bug_when>
    <thetext>WebIDL defines both byte and octet, with byte being signed and octet unsigned: http://www.w3.org/TR/WebIDL/#idl-octet.

This is itself an odd definition of byte.

I&apos;m all for consistency / alignment, it&apos;s just not clear who we should be consistent / aligned with ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>112128</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-09-24 21:00:05 +0000</bug_when>
    <thetext>Fair. I think there&apos;s an open bug on IDL.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>