Changeset 205755 in webkit
- Timestamp:
- Sep 9, 2016 11:38:47 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r205750 r205755 1 2016-09-09 Jiewen Tan <jiewen_tan@apple.com> 2 3 Rename Key to CryptoKey 4 https://bugs.webkit.org/show_bug.cgi?id=161665 5 <rdar://problem/28083391> 6 7 Reviewed by Brent Fulgham. 8 9 * crypto/subtle/aes-cbc-unwrap-rsa-expected.txt: 10 * crypto/subtle/aes-cbc-unwrap-rsa.html: 11 * crypto/subtle/aes-kw-key-manipulation-expected.txt: 12 * crypto/subtle/aes-kw-key-manipulation.html: 13 * crypto/subtle/aes-kw-wrap-unwrap-aes-expected.txt: 14 * crypto/subtle/aes-kw-wrap-unwrap-aes.html: 15 * crypto/subtle/rsa-oaep-wrap-unwrap-aes-expected.txt: 16 * crypto/subtle/rsa-oaep-wrap-unwrap-aes.html: 17 * crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt: 18 * crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html: 19 * crypto/subtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt: 20 * crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html: 21 * platform/mac/js/dom/global-constructors-attributes-expected.txt: 22 * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: 23 1 24 2016-09-09 Youenn Fablet <youenn@apple.com> 2 25 -
trunk/LayoutTests/crypto/subtle/aes-cbc-unwrap-rsa-expected.txt
r160491 r205755 7 7 PASS unwrappingKey.algorithm.name is 'AES-CBC' 8 8 Unwrapping a key... 9 PASS unwrappedKey.toString() is '[object Key]'9 PASS unwrappedKey.toString() is '[object CryptoKey]' 10 10 PASS unwrappedKey.type is 'public' 11 11 PASS unwrappedKey.usages is ['sign','verify'] -
trunk/LayoutTests/crypto/subtle/aes-cbc-unwrap-rsa.html
r160491 r205755 39 39 unwrappedKey = result; 40 40 41 shouldBe("unwrappedKey.toString()", "'[object Key]'");41 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 42 42 shouldBe("unwrappedKey.type", "'public'"); 43 43 shouldBe("unwrappedKey.usages", "['sign','verify']"); -
trunk/LayoutTests/crypto/subtle/aes-kw-key-manipulation-expected.txt
r203333 r205755 5 5 6 6 Generating a key... 7 PASS key.toString() is '[object Key]'7 PASS key.toString() is '[object CryptoKey]' 8 8 PASS key.type is 'secret' 9 9 PASS key.algorithm.name is 'AES-KW' … … 16 16 PASS exportedKey.toString() is '[object ArrayBuffer]' 17 17 Importing it back... 18 PASS importedKey.toString() is '[object Key]'18 PASS importedKey.toString() is '[object CryptoKey]' 19 19 PASS importedKey.type is 'secret' 20 20 PASS importedKey.algorithm.name is 'AES-KW' -
trunk/LayoutTests/crypto/subtle/aes-kw-key-manipulation.html
r160491 r205755 19 19 crypto.subtle.generateKey({name: "aes-kw", length: 256}, extractable, ["encrypt", "decrypt", "wrapKey", "unwrapKey"]).then(function(result) { 20 20 key = result; 21 shouldBe("key.toString()", "'[object Key]'");21 shouldBe("key.toString()", "'[object CryptoKey]'"); 22 22 shouldBe("key.type", "'secret'"); 23 23 shouldBe("key.algorithm.name", "'AES-KW'"); … … 38 38 importedKey = result; 39 39 40 shouldBe("importedKey.toString()", "'[object Key]'");40 shouldBe("importedKey.toString()", "'[object CryptoKey]'"); 41 41 shouldBe("importedKey.type", "'secret'"); 42 42 shouldBe("importedKey.algorithm.name", "'AES-KW'"); -
trunk/LayoutTests/crypto/subtle/aes-kw-wrap-unwrap-aes-expected.txt
r163244 r205755 9 9 PASS bytesToHexString(wrappedKey) is '1fa68b0a8112b447aef34bd8fb5a7b829d3e862371d2cfe5' 10 10 Unwrapping it... 11 PASS unwrappedKey.toString() is '[object Key]'11 PASS unwrappedKey.toString() is '[object CryptoKey]' 12 12 PASS unwrappedKey.type is 'secret' 13 13 PASS unwrappedKey.extractable is true -
trunk/LayoutTests/crypto/subtle/aes-kw-wrap-unwrap-aes.html
r163244 r205755 37 37 }).then(function(result) { 38 38 unwrappedKey = result; 39 shouldBe("unwrappedKey.toString()", "'[object Key]'");39 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 40 40 shouldBe("unwrappedKey.type", "'secret'"); 41 41 shouldBe("unwrappedKey.extractable", "true"); -
trunk/LayoutTests/crypto/subtle/rsa-oaep-wrap-unwrap-aes-expected.txt
r160547 r205755 9 9 PASS wrappedKey.toString() is '[object ArrayBuffer]' 10 10 Unwrapping it... 11 PASS unwrappedKey.toString() is '[object Key]'11 PASS unwrappedKey.toString() is '[object CryptoKey]' 12 12 PASS unwrappedKey.type is 'secret' 13 13 PASS unwrappedKey.extractable is true … … 21 21 PASS wrappedKey.toString() is '[object ArrayBuffer]' 22 22 Unwrapping it... 23 PASS unwrappedKey.toString() is '[object Key]'23 PASS unwrappedKey.toString() is '[object CryptoKey]' 24 24 PASS unwrappedKey.type is 'secret' 25 25 PASS unwrappedKey.extractable is true -
trunk/LayoutTests/crypto/subtle/rsa-oaep-wrap-unwrap-aes.html
r160547 r205755 60 60 }).then(function(result) { 61 61 unwrappedKey = result; 62 shouldBe("unwrappedKey.toString()", "'[object Key]'");62 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 63 63 shouldBe("unwrappedKey.type", "'secret'"); 64 64 shouldBe("unwrappedKey.extractable", "true"); … … 83 83 }).then(function(result) { 84 84 unwrappedKey = result; 85 shouldBe("unwrappedKey.toString()", "'[object Key]'");85 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 86 86 shouldBe("unwrappedKey.type", "'secret'"); 87 87 shouldBe("unwrappedKey.extractable", "true"); -
trunk/LayoutTests/crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes-expected.txt
r160547 r205755 9 9 PASS wrappedKey.toString() is '[object ArrayBuffer]' 10 10 Unwrapping it... 11 PASS unwrappedKey.toString() is '[object Key]'11 PASS unwrappedKey.toString() is '[object CryptoKey]' 12 12 PASS unwrappedKey.type is 'secret' 13 13 PASS unwrappedKey.extractable is true … … 21 21 PASS wrappedKey.toString() is '[object ArrayBuffer]' 22 22 Unwrapping it... 23 PASS unwrappedKey.toString() is '[object Key]'23 PASS unwrappedKey.toString() is '[object CryptoKey]' 24 24 PASS unwrappedKey.type is 'secret' 25 25 PASS unwrappedKey.extractable is true -
trunk/LayoutTests/crypto/subtle/rsaes-pkcs1-v1_5-wrap-unwrap-aes.html
r160547 r205755 60 60 }).then(function(result) { 61 61 unwrappedKey = result; 62 shouldBe("unwrappedKey.toString()", "'[object Key]'");62 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 63 63 shouldBe("unwrappedKey.type", "'secret'"); 64 64 shouldBe("unwrappedKey.extractable", "true"); … … 83 83 }).then(function(result) { 84 84 unwrappedKey = result; 85 shouldBe("unwrappedKey.toString()", "'[object Key]'");85 shouldBe("unwrappedKey.toString()", "'[object CryptoKey]'"); 86 86 shouldBe("unwrappedKey.type", "'secret'"); 87 87 shouldBe("unwrappedKey.extractable", "true"); -
trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-import-jwk-expected.txt
r160491 r205755 5 5 6 6 Importing a public key... 7 PASS publicKey.toString() is '[object Key]'7 PASS publicKey.toString() is '[object CryptoKey]' 8 8 PASS publicKey.type is 'public' 9 9 PASS publicKey.usages is ['sign','verify'] … … 14 14 15 15 Importing a private key... 16 PASS privateKey.toString() is '[object Key]'16 PASS privateKey.toString() is '[object CryptoKey]' 17 17 PASS privateKey.type is 'private' 18 18 PASS privateKey.usages is ['sign','verify'] -
trunk/LayoutTests/crypto/subtle/rsassa-pkcs1-v1_5-import-jwk.html
r160491 r205755 39 39 crypto.subtle.importKey("jwk", asciiToUint8Array(JSON.stringify(publicKeyJSON)), null, extractable, ["sign", "verify"]).then(function(result) { 40 40 publicKey = result; 41 shouldBe("publicKey.toString()", "'[object Key]'");41 shouldBe("publicKey.toString()", "'[object CryptoKey]'"); 42 42 shouldBe("publicKey.type", "'public'"); 43 43 shouldBe("publicKey.usages", "['sign','verify']"); … … 50 50 }).then(function(result) { 51 51 privateKey = result; 52 shouldBe("privateKey.toString()", "'[object Key]'");52 shouldBe("privateKey.toString()", "'[object CryptoKey]'"); 53 53 shouldBe("privateKey.type", "'private'"); 54 54 shouldBe("privateKey.usages", "['sign','verify']"); -
trunk/LayoutTests/imported/w3c/ChangeLog
r205750 r205755 1 2016-09-09 Jiewen Tan <jiewen_tan@apple.com> 2 3 Rename Key to CryptoKey 4 https://bugs.webkit.org/show_bug.cgi?id=161665 5 <rdar://problem/28083391> 6 7 Reviewed by Brent Fulgham. 8 9 * WebCryptoAPI/idlharness-expected.txt: 10 1 11 2016-09-09 Youenn Fablet <youenn@apple.com> 2 12 -
trunk/LayoutTests/imported/w3c/WebCryptoAPI/idlharness-expected.txt
r203476 r205755 16 16 PASS Crypto interface: crypto must inherit property "getRandomValues" with the proper type (1) 17 17 PASS Crypto interface: calling getRandomValues(ArrayBufferView) on crypto with too few arguments must throw TypeError 18 FAIL CryptoKey interface: existence and properties of interface object assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 19 FAIL CryptoKey interface object length assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 20 FAIL CryptoKey interface object name assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 21 FAIL CryptoKey interface: existence and properties of interface prototype object assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 22 FAIL CryptoKey interface: existence and properties of interface prototype object's "constructor" property assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 23 FAIL CryptoKey interface: attribute type assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 24 FAIL CryptoKey interface: attribute extractable assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 25 FAIL CryptoKey interface: attribute algorithm assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 26 FAIL CryptoKey interface: attribute usages assert_own_property: self does not have own property "CryptoKey" expected property "CryptoKey" missing 18 PASS CryptoKey interface: existence and properties of interface object 19 PASS CryptoKey interface object length 20 PASS CryptoKey interface object name 21 PASS CryptoKey interface: existence and properties of interface prototype object 22 PASS CryptoKey interface: existence and properties of interface prototype object's "constructor" property 23 PASS CryptoKey interface: attribute type 24 PASS CryptoKey interface: attribute extractable 25 PASS CryptoKey interface: attribute algorithm 26 PASS CryptoKey interface: attribute usages 27 27 FAIL SubtleCrypto interface: existence and properties of interface object assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing 28 28 FAIL SubtleCrypto interface object length assert_own_property: self does not have own property "SubtleCrypto" expected property "SubtleCrypto" missing -
trunk/LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
r205024 r205755 299 299 PASS Object.getOwnPropertyDescriptor(global, 'Crypto').enumerable is false 300 300 PASS Object.getOwnPropertyDescriptor(global, 'Crypto').configurable is true 301 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').value is CryptoKey 302 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').hasOwnProperty('get') is false 303 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').hasOwnProperty('set') is false 304 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').enumerable is false 305 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').configurable is true 301 306 PASS Object.getOwnPropertyDescriptor(global, 'CustomElementRegistry').value is CustomElementRegistry 302 307 PASS Object.getOwnPropertyDescriptor(global, 'CustomElementRegistry').hasOwnProperty('get') is false -
trunk/LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
r205024 r205755 299 299 PASS Object.getOwnPropertyDescriptor(global, 'Crypto').enumerable is false 300 300 PASS Object.getOwnPropertyDescriptor(global, 'Crypto').configurable is true 301 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').value is CryptoKey 302 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').hasOwnProperty('get') is false 303 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').hasOwnProperty('set') is false 304 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').enumerable is false 305 PASS Object.getOwnPropertyDescriptor(global, 'CryptoKey').configurable is true 301 306 PASS Object.getOwnPropertyDescriptor(global, 'CustomElementRegistry').value is CustomElementRegistry 302 307 PASS Object.getOwnPropertyDescriptor(global, 'CustomElementRegistry').hasOwnProperty('get') is false -
trunk/Source/WebCore/ChangeLog
r205752 r205755 1 2016-09-09 Jiewen Tan <jiewen_tan@apple.com> 2 3 Rename Key to CryptoKey 4 https://bugs.webkit.org/show_bug.cgi?id=161665 5 <rdar://problem/28083391> 6 7 Reviewed by Brent Fulgham. 8 9 A link to the spec: https://www.w3.org/TR/WebCryptoAPI/#cryptokey-interface 10 11 * crypto/CryptoKey.idl: 12 Remove some unnecessary IDL attributes and reorder KeyType enum to match the spec. 13 * crypto/CryptoKeyType.h: 14 1 15 2016-09-09 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WebCore/crypto/CryptoKey.idl
r204336 r205755 25 25 26 26 enum KeyType { 27 "secret",28 27 "public", 29 "private" 28 "private", 29 "secret" 30 30 }; 31 31 … … 44 44 Conditional=SUBTLE_CRYPTO, 45 45 GenerateIsReachable=Impl, 46 InterfaceName=Key,47 NoInterfaceObject,48 46 SkipVTableValidation 49 47 ] interface CryptoKey { -
trunk/Source/WebCore/crypto/CryptoKeyType.h
r160687 r205755 32 32 33 33 enum class CryptoKeyType { 34 Secret,35 34 Public, 36 Private 35 Private, 36 Secret 37 37 }; 38 38
Note: See TracChangeset
for help on using the changeset viewer.