Skip to content

Commit

Permalink
Mark test vectors as test vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
bifurcation committed Jul 16, 2024
1 parent c35571e commit b5889fd
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 300 deletions.
6 changes: 3 additions & 3 deletions reference-implementation/examples/test_vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ mod header {
fn to_markdown(&self) -> String {
let TestVector { kid, ctr, encoded } = self;
format!(
"~~~
"~~~ test-vectors
kid: 0x{kid:016x}
ctr: 0x{ctr:016x}
header: {encoded:8}
Expand Down Expand Up @@ -185,7 +185,7 @@ mod aes_ctr_hmac {
} = self;

format!(
"~~~
"~~~ test-vectors
cipher_suite: 0x{cipher_suite:04x}
key: {key:5}
enc_key: {enc_key:9}
Expand Down Expand Up @@ -302,7 +302,7 @@ mod sframe {
} = self;

format!(
"~~~
"~~~ test-vectors
cipher_suite: 0x{cipher_suite:04x}
kid: 0x{kid:016x}
ctr: 0x{ctr:016x}
Expand Down
6 changes: 3 additions & 3 deletions test-vectors/aes-ctr-hmac.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
~~~
~~~ test-vectors
cipher_suite: 0x0001
key: 000102030405060708090a0b0c0d0e0f
101112131415161718191a1b1c1d1e1f
Expand All @@ -14,7 +14,7 @@ ct: 6339af04ada1d064688a442b8dc69d5b
6bfa40f4bef0583e8081069cc60705
~~~

~~~
~~~ test-vectors
cipher_suite: 0x0002
key: 000102030405060708090a0b0c0d0e0f
101112131415161718191a1b1c1d1e1f
Expand All @@ -30,7 +30,7 @@ ct: 6339af04ada1d064688a442b8dc69d5b
6bfa40f4be6e93b7da076927bb
~~~

~~~
~~~ test-vectors
cipher_suite: 0x0003
key: 000102030405060708090a0b0c0d0e0f
101112131415161718191a1b1c1d1e1f
Expand Down
Loading

0 comments on commit b5889fd

Please sign in to comment.