<?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>151308</bug_id>
          
          <creation_ts>2015-11-16 08:49:15 -0800</creation_ts>
          <short_desc>Not possible to import RSA-OAEP keys with hash: {name: &quot;SHA-256&quot;}</short_desc>
          <delta_ts>2016-11-10 12:27:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=164446</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>160894</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Roustem">roustem</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>piotr</cc>
    
    <cc>rob</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1142234</commentid>
    <comment_count>0</comment_count>
    <who name="Roustem">roustem</who>
    <bug_when>2015-11-16 08:49:15 -0800</bug_when>
    <thetext>When trying to import RSA-OAEP private key with hash parameter == SHA-256, the result uses SHA-1 instead.


IMPORTING KEY:  
Uint8Array [123, 34, 97, 108, 103, 34, 58, 34, 82, 83, …] 
Object
hash: {name: &quot;SHA-256&quot;}
modulusLength: 2048
name: &quot;RSA-OAEP&quot;
publicExponent: Uint8Array [1, 0, 1] 

IMPORTED KEY: 
algorithm: {name: &quot;RSA-OAEP&quot;, modulusLength: 2048, publicExponent: Uint8Array [1, 0, 1], hash: {name: &quot;SHA-1&quot;}}
extractable: true
type: &quot;private&quot;
usages: [&quot;decrypt&quot;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1142439</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-11-16 18:49:15 -0800</bug_when>
    <thetext>Yes, the older version of WebCrypto spec that WebKit currently implements didn&apos;t take a hash when importing, so SHA-256 here is just ignored. We also don&apos;t support the RSA-OAEP-256 JWK algorithm yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1210221</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-07-12 16:05:36 -0700</bug_when>
    <thetext>&lt;rdar://problem/27311678&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1221425</commentid>
    <comment_count>3</comment_count>
    <who name="Rob">rob</who>
    <bug_when>2016-08-19 12:22:28 -0700</bug_when>
    <thetext>I keep scanning the Safari TP release notes in hopes that I&apos;ll see some progress on this. Safari is still unsupported for many 1Password customers who created accounts last year using Chrome or Firefox, which support RSA-OAEP-256.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1249913</commentid>
    <comment_count>4</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2016-11-10 12:26:46 -0800</bug_when>
    <thetext>The bug is resolved by Bug 164446.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>