Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: LayoutTests/crypto/generateKey-expected.txt

Issue 24467004: [webcrypto] Remove MockWebCrypto. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/generateKey.html ('k') | LayoutTests/crypto/importKey.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests cypto.subtle.generateKey. 1 Tests cypto.subtle.generateKey.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: Type error. 6 PASS crypto.subtle.generateKey(aesCbc, extractable, -1) threw exception TypeErro r: Type error.
7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: Type error. 7 PASS crypto.subtle.generateKey(aesCbc, extractable, null) threw exception TypeEr ror: Type error.
8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ eError: Invalid keyUsages argument. 8 PASS crypto.subtle.generateKey(aesCbc, extractable, ['boo']) threw exception Typ eError: Invalid keyUsages argument.
9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing requ ired property. 9 PASS crypto.subtle.generateKey({ name: 'aes-cbc' }, extractable, keyUsages) thre w exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: length: Missing requ ired property.
10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: lengt h: Outside of numeric range. 10 PASS crypto.subtle.generateKey({ name: 'aes-cbc', length: 70000 }, extractable, keyUsages) threw exception TypeError: Algorithm: AES-CBC: AesKeyGenParams: lengt h: Outside of numeric range.
(...skipping 15 matching lines...) Expand all
26 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa ges) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: m odulusLength: Missing required property. 26 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5'}, extractable , keyUsa ges) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: m odulusLength: Missing required property.
27 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array. 27 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
28 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm : RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y. 28 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm : RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y.
29 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: null}, extractable , keyUsages) threw exception TypeError: Algorit hm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Ar ray. 29 PASS crypto.subtle.generateKey({name: 'RSASSA-PKCS1-v1_5', modulusLength: 10, pu blicExponent: null}, extractable , keyUsages) threw exception TypeError: Algorit hm: RSASSA-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Ar ray.
30 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range. 30 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: -30}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Outside of numeric range.
31 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number. 31 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: NaN}, e xtractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: modulusLength: Is not a number.
32 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: mod ulusLength: Missing required property. 32 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5'}, extractable , keyUsag es) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: mod ulusLength: Missing required property.
33 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: R saKeyGenParams: publicExponent: Missing or not a Uint8Array. 33 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10}, ex tractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: R saKeyGenParams: publicExponent: Missing or not a Uint8Array.
34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array. 34 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: 10}, extractable , keyUsages) threw exception TypeError: Algorithm: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Array.
35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Algorith m: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y. 35 PASS crypto.subtle.generateKey({name: 'RSAES-PKCS1-v1_5', modulusLength: 10, pub licExponent: null}, extractable , keyUsages) threw exception TypeError: Algorith m: RSAES-PKCS1-v1_5: RsaKeyGenParams: publicExponent: Missing or not a Uint8Arra y.
36 PASS key.type is 'private'
37 PASS key.extractable is true
38 PASS key.algorithm.name is 'AES-CBC'
39 PASS key.algorithm.length is 1024
40 PASS key.usages.join(',') is 'encrypt,decrypt'
41 PASS key.type is 'private'
42 PASS key.extractable is false
43 PASS key.algorithm.name is 'HMAC'
44 PASS key.algorithm.hash.name is 'SHA-256'
45 PASS key.algorithm.length is null
46 PASS key.usages.join(',') is 'sign'
47 PASS key.type is 'private'
48 PASS key.extractable is false
49 PASS key.algorithm.name is 'HMAC'
50 PASS key.algorithm.hash.name is 'SHA-256'
51 PASS key.algorithm.length is 48
52 PASS key.usages.join(',') is 'sign'
53 PASS keyPair.publicKey is defined.
54 PASS keyPair.privateKey is defined.
55 PASS keyPair.publicKey.type is 'public'
56 PASS keyPair.publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
57 PASS keyPair.privateKey.type is 'private'
58 PASS keyPair.privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
59 PASS keyPair.publicKey.foo is 'bar'
60 PASS keyPair.publicKey.foo is 'bar'
61 PASS successfullyParsed is true 36 PASS successfullyParsed is true
62 37
63 TEST COMPLETE 38 TEST COMPLETE
64 39
OLDNEW
« no previous file with comments | « LayoutTests/crypto/generateKey.html ('k') | LayoutTests/crypto/importKey.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698