haikuwebkit/LayoutTests/crypto/subtle/rsa-indexeddb-private-expec...

17 lines
539 B
Plaintext
Raw Permalink Normal View History

[WebCrypto] Migrate some tests from webkitSubtle to subtle https://bugs.webkit.org/show_bug.cgi?id=165554 Reviewed by Brent Fulgham. To improve test coverage for subtle. * crypto/crypto-key-algorithm-gc-expected.txt: Renamed from LayoutTests/crypto/webkitSubtle/crypto-key-algorithm-gc-expected.txt. * crypto/crypto-key-algorithm-gc.html: Renamed from LayoutTests/crypto/webkitSubtle/crypto-key-algorithm-gc.html. * crypto/crypto-key-usages-gc-expected.txt: Renamed from LayoutTests/crypto/webkitSubtle/crypto-key-usages-gc-expected.txt. * crypto/crypto-key-usages-gc.html: Renamed from LayoutTests/crypto/webkitSubtle/crypto-key-usages-gc.html. * crypto/subtle/resources/rsa-indexeddb-non-exportable.js: Added. * crypto/subtle/resources/rsa-indexeddb.js: Added. * crypto/subtle/rsa-indexeddb-expected.txt: Added. * crypto/subtle/rsa-indexeddb-non-exportable-expected.txt: Added. * crypto/subtle/rsa-indexeddb-non-exportable-private-expected.txt: Added. * crypto/subtle/rsa-indexeddb-non-exportable-private.html: Added. * crypto/subtle/rsa-indexeddb-non-exportable.html: Added. * crypto/subtle/rsa-indexeddb-private-expected.txt: Added. * crypto/subtle/rsa-indexeddb-private.html: Added. * crypto/subtle/rsa-indexeddb.html: Added. * crypto/subtle/rsa-oaep-plaintext-length-expected.txt: Added. * crypto/subtle/rsa-oaep-plaintext-length.html: Added. * crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent-expected.txt: Added. * crypto/subtle/rsassa-pkcs1-v1_5-generate-key-with-leading-zeroes-in-exponent.html: Added. * platform/ios-simulator-wk1/TestExpectations: Canonical link: https://commits.webkit.org/183395@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-13 01:32:56 +00:00
Test storing a private RSA key in IndexedDB, and retrieving it.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS retrievedKey.type is 'private'
PASS retrievedKey.extractable is true
PASS retrievedKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
PASS retrievedKey.algorithm.modulusLength is 2048
PASS bytesToHexString(retrievedKey.algorithm.publicExponent) is '010001'
PASS retrievedKey.algorithm.hash.name is 'SHA-256'
PASS retrievedKey.usages is ["sign"]
PASS successfullyParsed is true
TEST COMPLETE