Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deriveBits and deriveKey tests #3305

Merged
merged 24 commits into from
Sep 2, 2016
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
cc53dc9
Starting PBKDF2
Jun 15, 2016
2e301f6
Starting to set up test vectors for derive bits
Jun 22, 2016
45d3aa1
WIP - building PBKDF2 tests
Jun 23, 2016
df1c833
PBKDF2 tests complete
Jun 24, 2016
105e502
Removed console logging statements
Jun 24, 2016
ed46a66
Derive key tests added for successful parameters
Jun 24, 2016
074d894
Test more deriveKey tests that match the deriveBits failure modes
Jun 28, 2016
07f339c
Fully test PBKDF2 derive operations
Jun 28, 2016
296b04e
Run corrected derive bits/key tests under multiple browsers
Jun 29, 2016
7c5b486
Add back 192 bit tests
Jun 29, 2016
0bda18f
Fixed calls to deriveBits that should have been deriveKey
Jul 8, 2016
8ef5e31
Fixup merge
Jul 11, 2016
d9825b9
Added HKDF tests
Jul 14, 2016
474510b
Starting ECDH tests
Jul 14, 2016
a428912
ECDH deriveBits complete
Jul 15, 2016
e58e24a
ECDH deriveBits tests done
Jul 15, 2016
d51d131
ECDH tests complete
Jul 15, 2016
7a6d98d
Cleaned up deriveBits and deriveKey tests
Jul 18, 2016
43b7ce7
Removed console logging
Jul 18, 2016
31c9089
Merge branch 'derive_bits_keys' of github.com:engelke/web-platform-te…
Aug 4, 2016
37bf4a5
Removed needless namedCurve parameter, per https://github.com/w3c/web…
Aug 30, 2016
5d233f9
Removed needless namedCurve parameter, per https://github.com/w3c/web…
Aug 30, 2016
47fb964
Derived HMAC keys instead of cipher key, per comment https://github.c…
Aug 30, 2016
5ee7ac5
Changed 'password' to 'derivedKey' per comment at https://github.com/…
Aug 30, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
269 changes: 269 additions & 0 deletions WebCryptoAPI/derive_bits_keys/ecdh_bits.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions WebCryptoAPI/derive_bits_keys/ecdh_bits.worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
importScripts("/resources/testharness.js");
importScripts("ecdh_bits.js");

run_test();
238 changes: 238 additions & 0 deletions WebCryptoAPI/derive_bits_keys/ecdh_keys.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions WebCryptoAPI/derive_bits_keys/ecdh_keys.worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
importScripts("/resources/testharness.js");
importScripts("ecdh_keys.js");

run_test();
294 changes: 294 additions & 0 deletions WebCryptoAPI/derive_bits_keys/hkdf.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions WebCryptoAPI/derive_bits_keys/hkdf.worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
importScripts("/resources/testharness.js");
importScripts("hkdf_vectors.js");
importScripts("hkdf.js");

run_test();
276 changes: 276 additions & 0 deletions WebCryptoAPI/derive_bits_keys/hkdf_vectors.js

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions WebCryptoAPI/derive_bits_keys/pbkdf2.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions WebCryptoAPI/derive_bits_keys/pbkdf2.worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
importScripts("/resources/testharness.js");
importScripts("pbkdf2_vectors.js");
importScripts("pbkdf2.js");

run_test();
269 changes: 269 additions & 0 deletions WebCryptoAPI/derive_bits_keys/pbkdf2_vectors.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions WebCryptoAPI/derive_bits_keys/test_ecdh_bits.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>WebCryptoAPI: deriveBits() Using ECDH</title>
<link rel="author" title="Charles Engelke" href="mailto:w3c@engelke.com">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveBits">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script src="ecdh_bits.js"></script>

<h1>deriveBits Tests for ECDH</h1>

<div id="log"></div>
<script>
run_test();
</script>
17 changes: 17 additions & 0 deletions WebCryptoAPI/derive_bits_keys/test_ecdh_keys.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>WebCryptoAPI:deriveKey() Using ECDH</title>
<link rel="author" title="Charles Engelke" href="mailto:w3c@engelke.com">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveKey">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script src="ecdh_keys.js"></script>

<h1>deriveKey Tests for ECDH</h1>

<div id="log"></div>
<script>
run_test();
</script>
19 changes: 19 additions & 0 deletions WebCryptoAPI/derive_bits_keys/test_hkdf.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>WebCryptoAPI: deriveBits() and deriveKey() Using HKDF</title>
<link rel="author" title="Charles Engelke" href="mailto:w3c@engelke.com">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveBits">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveKey">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script src="hkdf_vectors.js"></script>
<script src="hkdf.js"></script>

<h1>deriveBits and deriveKey Tests for HKDF</h1>

<div id="log"></div>
<script>
run_test();
</script>
19 changes: 19 additions & 0 deletions WebCryptoAPI/derive_bits_keys/test_pbkdf2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>WebCryptoAPI: deriveBits() and deriveKey() Using PBKDF2</title>
<link rel="author" title="Charles Engelke" href="mailto:w3c@engelke.com">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveBits">
<link rel="help" href="https://w3c.github.io/webcrypto/Overview.html#SubtleCrypto-method-deriveKey">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script src="pbkdf2_vectors.js"></script>
<script src="pbkdf2.js"></script>

<h1>deriveBits and deriveKey Tests for PBKDF2</h1>

<div id="log"></div>
<script>
run_test();
</script>