haikuwebkit/LayoutTests/crypto/subtle/hmac-import-jwk-key-export-...

17 lines
440 B
Plaintext
Raw Permalink Normal View History

Add more tests for SubtleCrypto::importKey and SubtleCrypto::exportKey https://bugs.webkit.org/show_bug.cgi?id=164815 <rdar://problem/29281660> Reviewed by Brent Fulgham. Source/WebCore: Tests: crypto/subtle/aes-import-jwk-key-export-jwk-key.html crypto/subtle/aes-import-jwk-key-export-raw-key.html crypto/subtle/aes-import-raw-key-export-jwk-key.html crypto/subtle/aes-import-raw-key-export-raw-key.html crypto/subtle/hmac-import-jwk-key-export-jwk-key.html crypto/subtle/hmac-import-jwk-key-export-raw-key.html crypto/subtle/hmac-import-raw-key-export-jwk-key.html crypto/subtle/hmac-import-raw-key-export-raw-key.html crypto/subtle/rsa-import-jwk-key-export-jwk-key-private.html crypto/subtle/rsa-import-jwk-key-export-jwk-key-public.html * crypto/mac/CryptoKeyRSAMac.cpp: (WebCore::CryptoKeyRSA::create): Add a comment. LayoutTests: * crypto/subtle/aes-import-jwk-key-export-jwk-key.html: Added. * crypto/subtle/aes-import-jwk-key-export-raw-key.html: Added. * crypto/subtle/aes-import-raw-key-export-jwk-key.html: Added. * crypto/subtle/aes-import-raw-key-export-raw-key.html: Added. * crypto/subtle/hmac-import-jwk-key-export-jwk-key.html: Added. * crypto/subtle/hmac-import-jwk-key-export-raw-key.html: Added. * crypto/subtle/hmac-import-raw-key-export-jwk-key.html: Added. * crypto/subtle/hmac-import-raw-key-export-raw-key.html: Added. * crypto/subtle/rsa-import-jwk-key-export-jwk-key-private.html: Added. * crypto/subtle/rsa-import-jwk-key-export-jwk-key-public.html: Added. Canonical link: https://commits.webkit.org/182513@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-11-16 20:18:45 +00:00
Test importing a JWK HMAC key with SHA-1 and then export it in JWK format
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Importing a key...
Exporting a key...
PASS exportedJwkKey.kty is jwkKey.kty
PASS exportedJwkKey.k is jwkKey.k
PASS exportedJwkKey.alg is jwkKey.alg
PASS exportedJwkKey.key_ops is jwkKey.key_ops
PASS exportedJwkKey.ext is jwkKey.ext
PASS successfullyParsed is true
TEST COMPLETE