Skip to content

Commit

Permalink
Use hex encoded keys to avoid confusion (see #37) (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola authored Jun 23, 2021
1 parent 528061b commit f6cfcaa
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions test_vectors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.2.0",
"version": "0.3.0",
"numberOfTests": 25,
"testGroups": [
{
Expand All @@ -8,7 +8,7 @@
{
"id": 0,
"comment": "Hello world with zero timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 0,
"token": "870S4BYxgHw0KnP3W9fgVUHEhT5g86vJ17etaC5Kh5uIraWHCI1psNQGv298ZmjPwoYbjDQ9chy2z",
Expand All @@ -18,7 +18,7 @@
{
"id": 1,
"comment": "Hello world with max timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 4294967295,
"token": "89i7YCwu5tWAJNHUDdmIqhzOi5hVHOd4afjZcGMcVmM4enl4yeLiDyYv41eMkNmTX6IwYEFErCSqr",
Expand All @@ -28,7 +28,7 @@
{
"id": 2,
"comment": "Hello world with November 27 timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 123206400,
"token": "875GH23U0Dr6nHFA63DhOyd9LkYudBkX8RsCTOMz5xoYAMw9sMd5QwcEqLDRnTDHPenOX7nP2trlT",
Expand All @@ -38,7 +38,7 @@
{
"id": 3,
"comment": "Eight null bytes with zero timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 0,
"token": "1jIBheHbDdkCDFQmtgw4RUZeQoOJgGwTFJSpwOAk3XYpJJr52DEpILLmmwYl4tjdSbbNqcF1",
Expand All @@ -48,7 +48,7 @@
{
"id": 4,
"comment": "Eight null bytes with max timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 4294967295,
"token": "1jrx6DUu5q06oxykef2e2ZMyTcDRTQot9ZnwgifUtzAphGtjsxfbxXNhQyBEOGtpbkBgvIQx",
Expand All @@ -58,7 +58,7 @@
{
"id": 5,
"comment": "Eight null bytes with November 27th timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 123206400,
"token": "1jJDJOEjuwVb9Csz1Ypw1KBWSkr0YDpeBeJN6NzJWx1VgPLmcBhu2SbkpQ9JjZ3nfUf7Aytp",
Expand All @@ -68,7 +68,7 @@
{
"id": 6,
"comment": "Empty payload",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 0,
"token": "4sfD0vPFhIif8cy4nB3BQkHeJqkOkDvinI4zIhMjYX4YXZU5WIq9ycCVjGzB5",
Expand All @@ -78,7 +78,7 @@
{
"id": 7,
"comment": "Non-UTF8 payload",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": "beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef",
"timestamp": 123206400,
"token": "K9u6d0zjXp8RXNUGDyXAsB9AtPo60CD3xxQ2ulL8aQoTzXbvockRff0y1eXoHm",
Expand All @@ -93,7 +93,7 @@
{
"id": 8,
"comment": "Hello world with zero timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "870S4BYxgHw0KnP3W9fgVUHEhT5g86vJ17etaC5Kh5uIraWHCI1psNQGv298ZmjPwoYbjDQ9chy2z",
Expand All @@ -103,7 +103,7 @@
{
"id": 9,
"comment": "Hello world with max timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 4294967295,
"token": "89i7YCwu5tWAJNHUDdmIqhzOi5hVHOd4afjZcGMcVmM4enl4yeLiDyYv41eMkNmTX6IwYEFErCSqr",
Expand All @@ -113,7 +113,7 @@
{
"id": 10,
"comment": "Hello world with November 27 timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 123206400,
"token": "875GH23U0Dr6nHFA63DhOyd9LkYudBkX8RsCTOMz5xoYAMw9sMd5QwcEqLDRnTDHPenOX7nP2trlT",
Expand All @@ -123,7 +123,7 @@
{
"id": 11,
"comment": "Eight null bytes with zero timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "1jIBheHbDdkCDFQmtgw4RUZeQoOJgGwTFJSpwOAk3XYpJJr52DEpILLmmwYl4tjdSbbNqcF1",
Expand All @@ -133,7 +133,7 @@
{
"id": 12,
"comment": "Eight null bytes with max timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 4294967295,
"token": "1jrx6DUu5q06oxykef2e2ZMyTcDRTQot9ZnwgifUtzAphGtjsxfbxXNhQyBEOGtpbkBgvIQx",
Expand All @@ -143,7 +143,7 @@
{
"id": 13,
"comment": "Eight null bytes with November 27th timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 123206400,
"token": "1jJDJOEjuwVb9Csz1Ypw1KBWSkr0YDpeBeJN6NzJWx1VgPLmcBhu2SbkpQ9JjZ3nfUf7Aytp",
Expand All @@ -153,7 +153,7 @@
{
"id": 14,
"comment": "Empty payload",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "4sfD0vPFhIif8cy4nB3BQkHeJqkOkDvinI4zIhMjYX4YXZU5WIq9ycCVjGzB5",
Expand All @@ -163,7 +163,7 @@
{
"id": 15,
"comment": "Non-UTF8 payload",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 123206400,
"token": "K9u6d0zjXp8RXNUGDyXAsB9AtPo60CD3xxQ2ulL8aQoTzXbvockRff0y1eXoHm",
Expand All @@ -173,7 +173,7 @@
{
"id": 16,
"comment": "Wrong version 0xBB",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "89mvl3RkwXjpEj5WMxK7GUDEHEeeeZtwjMIOogTthvr44qBfYtQSIZH5MHOTC0GzoutDIeoPVZk3w",
Expand All @@ -183,7 +183,7 @@
{
"id": 17,
"comment": "Invalid base62 characters",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 123206400,
"token": "875GH23U0Dr6nHFA63DhOyd9LkYudBkX8RsCTOMz5xoYAMw9sMd5QwcEqLDRnTDHPenOX7nP2trlT_",
Expand All @@ -193,7 +193,7 @@
{
"id": 18,
"comment": "Modified version",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "89mvl3S0BE0UCMIY94xxIux4eg1w5oXrhvCEXrDAjusSbO0Yk7AU6FjjTnbTWTqogLfNPJLzecHVb",
Expand All @@ -203,7 +203,7 @@
{
"id": 19,
"comment": "Modified first byte of the nonce",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "875GH233SUysT7fQ711EWd9BXpwOjB72ng3ZLnjWFrmOqVy49Bv93b78JU5331LbcY0EEzhLfpmSx",
Expand All @@ -214,7 +214,7 @@
{
"id": 20,
"comment": "Modified timestamp",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "870g1RCk4lW1YInhaU3TP8u2hGtfol16ettLcTOSoA0JIpjCaQRW7tQeP6dQmTvFIB2s6wL5deMXr",
Expand All @@ -225,7 +225,7 @@
{
"id": 21,
"comment": "Modified last byte of the ciphertext",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "875GH23U0Dr6nHFA63DhOyd9LkYudBkX8RsCTOMz5xoYAMw9sMd5Qw6Jpo96myliI3hHD7VbKZBYh",
Expand All @@ -235,7 +235,7 @@
{
"id": 22,
"comment": "Modified last byte of the Poly1305 tag",
"key": "supersecretkeyyoushouldnotcommit",
"key": "73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "875GH23U0Dr6nHFA63DhOyd9LkYudBkX8RsCTOMz5xoYAMw9sMd5QwcEqLDRnTDHPenOX7nP2trk0",
Expand All @@ -245,7 +245,7 @@
{
"id": 23,
"comment": "Wrong key",
"key": "wrongsecretkeyyoushouldnotcommit",
"key": "77726f6e677365637265746b6579796f7573686f756c646e6f74636f6d6d6974",
"nonce": null,
"timestamp": 0,
"token": "870S4BYxgHw0KnP3W9fgVUHEhT5g86vJ17etaC5Kh5uIraWHCI1psNQGv298ZmjPwoYbjDQ9chy2z",
Expand All @@ -255,7 +255,7 @@
{
"id": 24,
"comment": "Invalid key",
"key": "tooshortkey",
"key": "746f6f73686f72746b6579",
"nonce": null,
"timestamp": 0,
"token": "870S4BYxgHw0KnP3W9fgVUHEhT5g86vJ17etaC5Kh5uIraWHCI1psNQGv298ZmjPwoYbjDQ9chy2z",
Expand Down

0 comments on commit f6cfcaa

Please sign in to comment.