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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>177226</bug_id>
          
          <creation_ts>2017-09-20 05:54:51 -0700</creation_ts>
          <short_desc>wrapKey_unwrapKey.worker.html is flaky</short_desc>
          <delta_ts>2017-09-21 07:14:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=176759</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=177301</see_also>
          <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="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1350715</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</who>
    <bug_when>2017-09-20 05:54:51 -0700</bug_when>
    <thetext>With a diff like

+PASS Can wrap and unwrap RSA-OAEP private key keys using pkcs8 and AES-KW 
+PASS Can wrap and unwrap RSA-OAEP private key keys as non-extractable using pkcs8 and AES-KW 

where I&apos;ve also seen RSA-PSS instead of RSA-OAEP. That is, these tests sometimes run, and sometimes don&apos;t.

The tests will run if the following function returns true:

    function wrappingIsPossible(exportedKey, algorithmName) {
        if (&quot;byteLength&quot; in exportedKey &amp;&amp; algorithmName === &quot;AES-KW&quot;) {
            return exportedKey.byteLength % 8 === 0;
        }
        ...

I suspect that we don&apos;t guarantee that the length is correct (but it might also be something else entirely).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1350862</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2017-09-20 11:16:44 -0700</bug_when>
    <thetext>(In reply to Ms2ger from comment #0)
&gt; With a diff like
&gt; 
&gt; +PASS Can wrap and unwrap RSA-OAEP private key keys using pkcs8 and AES-KW 
&gt; +PASS Can wrap and unwrap RSA-OAEP private key keys as non-extractable using
&gt; pkcs8 and AES-KW 
&gt; 
&gt; where I&apos;ve also seen RSA-PSS instead of RSA-OAEP. That is, these tests
&gt; sometimes run, and sometimes don&apos;t.
&gt; 
&gt; The tests will run if the following function returns true:
&gt; 
&gt;     function wrappingIsPossible(exportedKey, algorithmName) {
&gt;         if (&quot;byteLength&quot; in exportedKey &amp;&amp; algorithmName === &quot;AES-KW&quot;) {
&gt;             return exportedKey.byteLength % 8 === 0;
&gt;         }
&gt;         ...
&gt; 
&gt; I suspect that we don&apos;t guarantee that the length is correct (but it might
&gt; also be something else entirely).

That seems tree.

Does this sound the same? https://github.com/w3c/web-platform-tests/pull/6102

I have filed a PR long time ago but no reviewers wish to take any actions or maybe I am missing something to motivate them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351149</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger (he/him; ⌚ UTC+1/+2)">Ms2ger</who>
    <bug_when>2017-09-21 00:30:19 -0700</bug_when>
    <thetext>(In reply to Jiewen Tan from comment #1)
&gt; (In reply to Ms2ger from comment #0)
&gt; &gt; With a diff like
&gt; &gt; 
&gt; &gt; +PASS Can wrap and unwrap RSA-OAEP private key keys using pkcs8 and AES-KW 
&gt; &gt; +PASS Can wrap and unwrap RSA-OAEP private key keys as non-extractable using
&gt; &gt; pkcs8 and AES-KW 
&gt; &gt; 
&gt; &gt; where I&apos;ve also seen RSA-PSS instead of RSA-OAEP. That is, these tests
&gt; &gt; sometimes run, and sometimes don&apos;t.
&gt; &gt; 
&gt; &gt; The tests will run if the following function returns true:
&gt; &gt; 
&gt; &gt;     function wrappingIsPossible(exportedKey, algorithmName) {
&gt; &gt;         if (&quot;byteLength&quot; in exportedKey &amp;&amp; algorithmName === &quot;AES-KW&quot;) {
&gt; &gt;             return exportedKey.byteLength % 8 === 0;
&gt; &gt;         }
&gt; &gt;         ...
&gt; &gt; 
&gt; &gt; I suspect that we don&apos;t guarantee that the length is correct (but it might
&gt; &gt; also be something else entirely).
&gt; 
&gt; That seems tree.
&gt; 
&gt; Does this sound the same? https://github.com/w3c/web-platform-tests/pull/6102
&gt; 
&gt; I have filed a PR long time ago but no reviewers wish to take any actions or
&gt; maybe I am missing something to motivate them.

I don&apos;t think it&apos;s the same, but it seems similar. (If you rebase the PR and ping me there, I can probably merge it.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>