-
ap@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=124738 Reviewed by Anders Carlsson. Source/WebCore: Tests: crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html crypto/subtle/aes-cbc-wrap-rsa.html * bindings/js/JSSubtleCryptoCustom.cpp: (WebCore::exportKey): Factored out the actual operation that can be chained with encryption for wrapKey. (WebCore::JSSubtleCrypto::exportKey): (WebCore::JSSubtleCrypto::wrapKey): (WebCore::JSSubtleCrypto::unwrapKey): Fixed a memory leak in failure code path. * crypto/SubtleCrypto.idl: Added wrapKey. LayoutTests: * crypto/subtle/aes-cbc-wrap-rsa-expected.txt: Added. * crypto/subtle/aes-cbc-wrap-rsa-non-extractable-expected.txt: Added. * crypto/subtle/aes-cbc-wrap-rsa-non-extractable.html: Added. * crypto/subtle/aes-cbc-wrap-rsa.html: Added. * crypto/subtle/aes-export-key-expected.txt: * crypto/subtle/hmac-export-key-expected.txt: There is no longer a console message, the error is in an exception. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
abd0bbca