ASSERT(extractable()) when storing a non-extractable key in IndexedDB
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Aug 2014 02:33:07 +0000 (02:33 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Aug 2014 02:33:07 +0000 (02:33 +0000)
commit041b334df67c614fee3de732faf81837bb9c7e25
treecc7a2270cc7d6ad0a60828667d4792ba7da567b6
parent671967060c62865f524fc8c985c365029a22025d
ASSERT(extractable()) when storing a non-extractable key in IndexedDB
https://bugs.webkit.org/show_bug.cgi?id=136202
rdar://problem/17993967

Reviewed by Darin Adler.

Source/WebCore:

Test: crypto/subtle/rsa-indexeddb-non-exportable.html

Removed the obsolete assertion.

* crypto/keys/CryptoKeyAES.cpp: (WebCore::CryptoKeyAES::exportData):
* crypto/keys/CryptoKeyHMAC.cpp: (WebCore::CryptoKeyHMAC::exportData):
* crypto/mac/CryptoKeyRSAMac.cpp: (WebCore::CryptoKeyRSA::exportData):

LayoutTests:

* crypto/subtle/rsa-indexeddb-non-exportable-expected.txt: Added.
* crypto/subtle/rsa-indexeddb-non-exportable.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172898 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/crypto/subtle/rsa-indexeddb-non-exportable-expected.txt [new file with mode: 0644]
LayoutTests/crypto/subtle/rsa-indexeddb-non-exportable.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/crypto/keys/CryptoKeyAES.cpp
Source/WebCore/crypto/keys/CryptoKeyHMAC.cpp
Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp