beaconcrypt 0.3.9__tar.gz → 0.3.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/Cargo.lock +1 -384
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/Cargo.toml +4 -6
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/PKG-INFO +1 -1
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/README.md +3 -1
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/beaconcrypt_test.go +4 -3
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/bindings.h +77 -14
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/doc/protocol.md +4 -3
- beaconcrypt-0.3.11/examples/c/CMakeLists.txt +70 -0
- beaconcrypt-0.3.11/examples/c/README.md +16 -0
- beaconcrypt-0.3.11/examples/c/main.c +308 -0
- beaconcrypt-0.3.11/examples/go/README.md +6 -0
- beaconcrypt-0.3.11/examples/go/go.mod +7 -0
- beaconcrypt-0.3.11/examples/go/go.sum +2 -0
- beaconcrypt-0.3.11/examples/go/main.go +152 -0
- beaconcrypt-0.3.11/examples/python/.gitignore +1 -0
- beaconcrypt-0.3.11/examples/python/README.md +4 -0
- beaconcrypt-0.3.11/examples/python/main.py +58 -0
- beaconcrypt-0.3.11/examples/python/pyproject.toml +11 -0
- beaconcrypt-0.3.11/examples/python/uv.lock +176 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/beacon.rs +2 -2
- beaconcrypt-0.3.11/src/cbinds.rs +340 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/error.rs +22 -5
- beaconcrypt-0.3.11/src/gobinds.rs +340 -0
- beaconcrypt-0.3.11/src/lib.rs +90 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/pqxdh.rs +253 -37
- beaconcrypt-0.3.11/src/pybinds.rs +129 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/schema/cryptoframe.capnp +1 -1
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/server.rs +0 -13
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/shared.rs +237 -17
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/tests/protocol.rs +3 -1
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/tests/test_registration.py +3 -1
- beaconcrypt-0.3.9/src/lib.rs +0 -551
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.cargo/config.toml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.github/workflows/codeql.yml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.github/workflows/go.yml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.github/workflows/python.yml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.github/workflows/release.yml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.github/workflows/rust.yml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/.gitignore +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/LICENSE +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/beaconcrypt.go +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/beaconcrypt.pyi +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/build.rs +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/clippy.toml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/doc/rationale.md +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/doc/threat_model.md +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/go.mod +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/pyproject.toml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/rustfmt.toml +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/scripts/generate_python_stubs.py +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/cnsa2.rs +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/schema/phase1.capnp +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/schema/phase2.capnp +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/src/schema/protogram.capnp +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/tests/beacon.rs +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/tests/server.rs +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/tests/test_encryption.py +0 -0
- {beaconcrypt-0.3.9 → beaconcrypt-0.3.11}/uv.lock +0 -0
|
@@ -70,12 +70,6 @@ dependencies = [
|
|
|
70
70
|
"windows-sys",
|
|
71
71
|
]
|
|
72
72
|
|
|
73
|
-
[[package]]
|
|
74
|
-
name = "autocfg"
|
|
75
|
-
version = "1.5.1"
|
|
76
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
77
|
-
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
78
|
-
|
|
79
73
|
[[package]]
|
|
80
74
|
name = "base64"
|
|
81
75
|
version = "0.22.1"
|
|
@@ -84,14 +78,11 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
|
84
78
|
|
|
85
79
|
[[package]]
|
|
86
80
|
name = "beaconcrypt"
|
|
87
|
-
version = "0.3.
|
|
81
|
+
version = "0.3.11"
|
|
88
82
|
dependencies = [
|
|
89
83
|
"capnp",
|
|
90
84
|
"capnpc",
|
|
91
85
|
"cbindgen",
|
|
92
|
-
"libcrux-aesgcm",
|
|
93
|
-
"libcrux-ml-dsa",
|
|
94
|
-
"libcrux-ml-kem",
|
|
95
86
|
"libsodium-rs",
|
|
96
87
|
"pyo3",
|
|
97
88
|
"zeroize",
|
|
@@ -168,17 +159,6 @@ version = "1.0.4"
|
|
|
168
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
160
|
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
170
161
|
|
|
171
|
-
[[package]]
|
|
172
|
-
name = "chacha20"
|
|
173
|
-
version = "0.10.1"
|
|
174
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
-
checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
|
|
176
|
-
dependencies = [
|
|
177
|
-
"cfg-if",
|
|
178
|
-
"cpufeatures",
|
|
179
|
-
"rand_core",
|
|
180
|
-
]
|
|
181
|
-
|
|
182
162
|
[[package]]
|
|
183
163
|
name = "clap"
|
|
184
164
|
version = "4.6.2"
|
|
@@ -212,26 +192,6 @@ version = "1.0.5"
|
|
|
212
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
193
|
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
214
194
|
|
|
215
|
-
[[package]]
|
|
216
|
-
name = "core-models"
|
|
217
|
-
version = "0.0.6"
|
|
218
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
-
checksum = "1c406a8d3cdec6393dc8975b623d806ce2d586653c620f86f7fab2e043df1cb2"
|
|
220
|
-
dependencies = [
|
|
221
|
-
"hax-lib",
|
|
222
|
-
"pastey",
|
|
223
|
-
"rand",
|
|
224
|
-
]
|
|
225
|
-
|
|
226
|
-
[[package]]
|
|
227
|
-
name = "cpufeatures"
|
|
228
|
-
version = "0.3.0"
|
|
229
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
-
checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
|
|
231
|
-
dependencies = [
|
|
232
|
-
"libc",
|
|
233
|
-
]
|
|
234
|
-
|
|
235
195
|
[[package]]
|
|
236
196
|
name = "crc32fast"
|
|
237
197
|
version = "1.5.0"
|
|
@@ -345,30 +305,6 @@ version = "0.2.0"
|
|
|
345
305
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
346
306
|
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
347
307
|
|
|
348
|
-
[[package]]
|
|
349
|
-
name = "futures-core"
|
|
350
|
-
version = "0.3.32"
|
|
351
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
352
|
-
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
|
353
|
-
|
|
354
|
-
[[package]]
|
|
355
|
-
name = "futures-task"
|
|
356
|
-
version = "0.3.32"
|
|
357
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
358
|
-
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
|
359
|
-
|
|
360
|
-
[[package]]
|
|
361
|
-
name = "futures-util"
|
|
362
|
-
version = "0.3.32"
|
|
363
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
364
|
-
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
|
365
|
-
dependencies = [
|
|
366
|
-
"futures-core",
|
|
367
|
-
"futures-task",
|
|
368
|
-
"pin-project-lite",
|
|
369
|
-
"slab",
|
|
370
|
-
]
|
|
371
|
-
|
|
372
308
|
[[package]]
|
|
373
309
|
name = "getrandom"
|
|
374
310
|
version = "0.4.3"
|
|
@@ -378,7 +314,6 @@ dependencies = [
|
|
|
378
314
|
"cfg-if",
|
|
379
315
|
"libc",
|
|
380
316
|
"r-efi",
|
|
381
|
-
"rand_core",
|
|
382
317
|
]
|
|
383
318
|
|
|
384
319
|
[[package]]
|
|
@@ -398,43 +333,6 @@ version = "0.17.1"
|
|
|
398
333
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
399
334
|
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
400
335
|
|
|
401
|
-
[[package]]
|
|
402
|
-
name = "hax-lib"
|
|
403
|
-
version = "0.3.6"
|
|
404
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
405
|
-
checksum = "543f93241d32b3f00569201bfce9d7a93c92c6421b23c77864ac929dc947b9fc"
|
|
406
|
-
dependencies = [
|
|
407
|
-
"hax-lib-macros",
|
|
408
|
-
"num-bigint",
|
|
409
|
-
"num-traits",
|
|
410
|
-
]
|
|
411
|
-
|
|
412
|
-
[[package]]
|
|
413
|
-
name = "hax-lib-macros"
|
|
414
|
-
version = "0.3.6"
|
|
415
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
-
checksum = "f8755751e760b11021765bb04cb4a6c4e24742688d9f3aa14c2079638f537b0f"
|
|
417
|
-
dependencies = [
|
|
418
|
-
"hax-lib-macros-types",
|
|
419
|
-
"proc-macro-error2",
|
|
420
|
-
"proc-macro2",
|
|
421
|
-
"quote",
|
|
422
|
-
"syn",
|
|
423
|
-
]
|
|
424
|
-
|
|
425
|
-
[[package]]
|
|
426
|
-
name = "hax-lib-macros-types"
|
|
427
|
-
version = "0.3.6"
|
|
428
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
429
|
-
checksum = "f177c9ae8ea456e2f71ff3c1ea47bf4464f772a05133fcbba56cd5ba169035a2"
|
|
430
|
-
dependencies = [
|
|
431
|
-
"proc-macro2",
|
|
432
|
-
"quote",
|
|
433
|
-
"serde",
|
|
434
|
-
"serde_json",
|
|
435
|
-
"uuid",
|
|
436
|
-
]
|
|
437
|
-
|
|
438
336
|
[[package]]
|
|
439
337
|
name = "heck"
|
|
440
338
|
version = "0.5.0"
|
|
@@ -479,125 +377,12 @@ version = "1.0.18"
|
|
|
479
377
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
378
|
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
481
379
|
|
|
482
|
-
[[package]]
|
|
483
|
-
name = "js-sys"
|
|
484
|
-
version = "0.3.103"
|
|
485
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
486
|
-
checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
|
|
487
|
-
dependencies = [
|
|
488
|
-
"cfg-if",
|
|
489
|
-
"futures-util",
|
|
490
|
-
"wasm-bindgen",
|
|
491
|
-
]
|
|
492
|
-
|
|
493
380
|
[[package]]
|
|
494
381
|
name = "libc"
|
|
495
382
|
version = "0.2.186"
|
|
496
383
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
384
|
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
498
385
|
|
|
499
|
-
[[package]]
|
|
500
|
-
name = "libcrux-aesgcm"
|
|
501
|
-
version = "0.0.8"
|
|
502
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
-
checksum = "b934645bf352ac97dcd15d3320d112fb666e0d6e36d43f775fd56f798d8076ef"
|
|
504
|
-
dependencies = [
|
|
505
|
-
"libcrux-intrinsics",
|
|
506
|
-
"libcrux-platform",
|
|
507
|
-
"libcrux-secrets",
|
|
508
|
-
"libcrux-traits",
|
|
509
|
-
]
|
|
510
|
-
|
|
511
|
-
[[package]]
|
|
512
|
-
name = "libcrux-intrinsics"
|
|
513
|
-
version = "0.0.7"
|
|
514
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
515
|
-
checksum = "95b254f1797aecd888f76e9647e6bec7b4c26fb6d60a73fd9856e4a1e535c704"
|
|
516
|
-
dependencies = [
|
|
517
|
-
"core-models",
|
|
518
|
-
"hax-lib",
|
|
519
|
-
]
|
|
520
|
-
|
|
521
|
-
[[package]]
|
|
522
|
-
name = "libcrux-macros"
|
|
523
|
-
version = "0.0.3"
|
|
524
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
525
|
-
checksum = "ffd6aa2dcd5be681662001b81d493f1569c6d49a32361f470b0c955465cd0338"
|
|
526
|
-
dependencies = [
|
|
527
|
-
"quote",
|
|
528
|
-
"syn",
|
|
529
|
-
]
|
|
530
|
-
|
|
531
|
-
[[package]]
|
|
532
|
-
name = "libcrux-ml-dsa"
|
|
533
|
-
version = "0.0.9"
|
|
534
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
-
checksum = "b067d3ea26eea867aad034b4567f7410ddf1807cab36aa82d3d610a18a06e70e"
|
|
536
|
-
dependencies = [
|
|
537
|
-
"core-models",
|
|
538
|
-
"hax-lib",
|
|
539
|
-
"libcrux-intrinsics",
|
|
540
|
-
"libcrux-macros",
|
|
541
|
-
"libcrux-platform",
|
|
542
|
-
"libcrux-sha3",
|
|
543
|
-
]
|
|
544
|
-
|
|
545
|
-
[[package]]
|
|
546
|
-
name = "libcrux-ml-kem"
|
|
547
|
-
version = "0.0.9"
|
|
548
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
549
|
-
checksum = "e2679da115a0131b77bd68cb7021a5bf0c91dcac6f5201e697dc5f5f1b887eb6"
|
|
550
|
-
dependencies = [
|
|
551
|
-
"hax-lib",
|
|
552
|
-
"libcrux-intrinsics",
|
|
553
|
-
"libcrux-platform",
|
|
554
|
-
"libcrux-secrets",
|
|
555
|
-
"libcrux-sha3",
|
|
556
|
-
"libcrux-traits",
|
|
557
|
-
"rand",
|
|
558
|
-
"tls_codec",
|
|
559
|
-
]
|
|
560
|
-
|
|
561
|
-
[[package]]
|
|
562
|
-
name = "libcrux-platform"
|
|
563
|
-
version = "0.0.3"
|
|
564
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
565
|
-
checksum = "1d9e21d7ed31a92ac539bd69a8c970b183ee883872d2d19ce27036e24cb8ecc4"
|
|
566
|
-
dependencies = [
|
|
567
|
-
"libc",
|
|
568
|
-
]
|
|
569
|
-
|
|
570
|
-
[[package]]
|
|
571
|
-
name = "libcrux-secrets"
|
|
572
|
-
version = "0.0.5"
|
|
573
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
574
|
-
checksum = "1ce650f3041b44ba40d4263852347d007cd2cd9d1cc856a6f6c8b2e10c3fd40b"
|
|
575
|
-
dependencies = [
|
|
576
|
-
"hax-lib",
|
|
577
|
-
]
|
|
578
|
-
|
|
579
|
-
[[package]]
|
|
580
|
-
name = "libcrux-sha3"
|
|
581
|
-
version = "0.0.9"
|
|
582
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
583
|
-
checksum = "f314521d5115afff6466e35e82cecd3b3bdf1dbed80d69285769a0f51c74fcc7"
|
|
584
|
-
dependencies = [
|
|
585
|
-
"hax-lib",
|
|
586
|
-
"libcrux-intrinsics",
|
|
587
|
-
"libcrux-platform",
|
|
588
|
-
"libcrux-traits",
|
|
589
|
-
]
|
|
590
|
-
|
|
591
|
-
[[package]]
|
|
592
|
-
name = "libcrux-traits"
|
|
593
|
-
version = "0.0.7"
|
|
594
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
595
|
-
checksum = "2613bf3dbf3670777bd6ecc3bcdd2d7a642663656b35ed2823529c4f1db0c9e9"
|
|
596
|
-
dependencies = [
|
|
597
|
-
"libcrux-secrets",
|
|
598
|
-
"rand",
|
|
599
|
-
]
|
|
600
|
-
|
|
601
386
|
[[package]]
|
|
602
387
|
name = "libflate"
|
|
603
388
|
version = "2.3.0"
|
|
@@ -703,34 +488,6 @@ dependencies = [
|
|
|
703
488
|
"memchr",
|
|
704
489
|
]
|
|
705
490
|
|
|
706
|
-
[[package]]
|
|
707
|
-
name = "num-bigint"
|
|
708
|
-
version = "0.4.8"
|
|
709
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
710
|
-
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
711
|
-
dependencies = [
|
|
712
|
-
"num-integer",
|
|
713
|
-
"num-traits",
|
|
714
|
-
]
|
|
715
|
-
|
|
716
|
-
[[package]]
|
|
717
|
-
name = "num-integer"
|
|
718
|
-
version = "0.1.46"
|
|
719
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
720
|
-
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
721
|
-
dependencies = [
|
|
722
|
-
"num-traits",
|
|
723
|
-
]
|
|
724
|
-
|
|
725
|
-
[[package]]
|
|
726
|
-
name = "num-traits"
|
|
727
|
-
version = "0.2.19"
|
|
728
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
729
|
-
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
730
|
-
dependencies = [
|
|
731
|
-
"autocfg",
|
|
732
|
-
]
|
|
733
|
-
|
|
734
491
|
[[package]]
|
|
735
492
|
name = "once_cell"
|
|
736
493
|
version = "1.21.4"
|
|
@@ -743,24 +500,12 @@ version = "1.70.2"
|
|
|
743
500
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
744
501
|
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
745
502
|
|
|
746
|
-
[[package]]
|
|
747
|
-
name = "pastey"
|
|
748
|
-
version = "0.2.3"
|
|
749
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
750
|
-
checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
|
|
751
|
-
|
|
752
503
|
[[package]]
|
|
753
504
|
name = "percent-encoding"
|
|
754
505
|
version = "2.3.2"
|
|
755
506
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
756
507
|
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
757
508
|
|
|
758
|
-
[[package]]
|
|
759
|
-
name = "pin-project-lite"
|
|
760
|
-
version = "0.2.17"
|
|
761
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
762
|
-
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
763
|
-
|
|
764
509
|
[[package]]
|
|
765
510
|
name = "pkg-config"
|
|
766
511
|
version = "0.3.33"
|
|
@@ -773,28 +518,6 @@ version = "1.14.0"
|
|
|
773
518
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
774
519
|
checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
|
|
775
520
|
|
|
776
|
-
[[package]]
|
|
777
|
-
name = "proc-macro-error-attr2"
|
|
778
|
-
version = "2.0.0"
|
|
779
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
780
|
-
checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5"
|
|
781
|
-
dependencies = [
|
|
782
|
-
"proc-macro2",
|
|
783
|
-
"quote",
|
|
784
|
-
]
|
|
785
|
-
|
|
786
|
-
[[package]]
|
|
787
|
-
name = "proc-macro-error2"
|
|
788
|
-
version = "2.0.1"
|
|
789
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
790
|
-
checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802"
|
|
791
|
-
dependencies = [
|
|
792
|
-
"proc-macro-error-attr2",
|
|
793
|
-
"proc-macro2",
|
|
794
|
-
"quote",
|
|
795
|
-
"syn",
|
|
796
|
-
]
|
|
797
|
-
|
|
798
521
|
[[package]]
|
|
799
522
|
name = "proc-macro2"
|
|
800
523
|
version = "1.0.106"
|
|
@@ -876,23 +599,6 @@ version = "6.0.0"
|
|
|
876
599
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
877
600
|
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
878
601
|
|
|
879
|
-
[[package]]
|
|
880
|
-
name = "rand"
|
|
881
|
-
version = "0.10.2"
|
|
882
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
883
|
-
checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
|
|
884
|
-
dependencies = [
|
|
885
|
-
"chacha20",
|
|
886
|
-
"getrandom",
|
|
887
|
-
"rand_core",
|
|
888
|
-
]
|
|
889
|
-
|
|
890
|
-
[[package]]
|
|
891
|
-
name = "rand_core"
|
|
892
|
-
version = "0.10.1"
|
|
893
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
894
|
-
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
|
895
|
-
|
|
896
602
|
[[package]]
|
|
897
603
|
name = "rle-decode-fast"
|
|
898
604
|
version = "1.0.3"
|
|
@@ -912,12 +618,6 @@ dependencies = [
|
|
|
912
618
|
"windows-sys",
|
|
913
619
|
]
|
|
914
620
|
|
|
915
|
-
[[package]]
|
|
916
|
-
name = "rustversion"
|
|
917
|
-
version = "1.0.23"
|
|
918
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
919
|
-
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
920
|
-
|
|
921
621
|
[[package]]
|
|
922
622
|
name = "serde"
|
|
923
623
|
version = "1.0.228"
|
|
@@ -982,12 +682,6 @@ version = "0.3.10"
|
|
|
982
682
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
983
683
|
checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
|
|
984
684
|
|
|
985
|
-
[[package]]
|
|
986
|
-
name = "slab"
|
|
987
|
-
version = "0.4.12"
|
|
988
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
989
|
-
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
990
|
-
|
|
991
685
|
[[package]]
|
|
992
686
|
name = "strsim"
|
|
993
687
|
version = "0.11.1"
|
|
@@ -1055,27 +749,6 @@ dependencies = [
|
|
|
1055
749
|
"syn",
|
|
1056
750
|
]
|
|
1057
751
|
|
|
1058
|
-
[[package]]
|
|
1059
|
-
name = "tls_codec"
|
|
1060
|
-
version = "0.4.2"
|
|
1061
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1062
|
-
checksum = "0de2e01245e2bb89d6f05801c564fa27624dbd7b1846859876c7dad82e90bf6b"
|
|
1063
|
-
dependencies = [
|
|
1064
|
-
"tls_codec_derive",
|
|
1065
|
-
"zeroize",
|
|
1066
|
-
]
|
|
1067
|
-
|
|
1068
|
-
[[package]]
|
|
1069
|
-
name = "tls_codec_derive"
|
|
1070
|
-
version = "0.4.2"
|
|
1071
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1072
|
-
checksum = "2d2e76690929402faae40aebdda620a2c0e25dd6d3b9afe48867dfd95991f4bd"
|
|
1073
|
-
dependencies = [
|
|
1074
|
-
"proc-macro2",
|
|
1075
|
-
"quote",
|
|
1076
|
-
"syn",
|
|
1077
|
-
]
|
|
1078
|
-
|
|
1079
752
|
[[package]]
|
|
1080
753
|
name = "toml"
|
|
1081
754
|
version = "0.9.12+spec-1.1.0"
|
|
@@ -1164,68 +837,12 @@ version = "0.2.2"
|
|
|
1164
837
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1165
838
|
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
1166
839
|
|
|
1167
|
-
[[package]]
|
|
1168
|
-
name = "uuid"
|
|
1169
|
-
version = "1.24.0"
|
|
1170
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1171
|
-
checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239"
|
|
1172
|
-
dependencies = [
|
|
1173
|
-
"getrandom",
|
|
1174
|
-
"js-sys",
|
|
1175
|
-
"wasm-bindgen",
|
|
1176
|
-
]
|
|
1177
|
-
|
|
1178
840
|
[[package]]
|
|
1179
841
|
name = "vcpkg"
|
|
1180
842
|
version = "0.2.15"
|
|
1181
843
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1182
844
|
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
|
1183
845
|
|
|
1184
|
-
[[package]]
|
|
1185
|
-
name = "wasm-bindgen"
|
|
1186
|
-
version = "0.2.126"
|
|
1187
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1188
|
-
checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
|
|
1189
|
-
dependencies = [
|
|
1190
|
-
"cfg-if",
|
|
1191
|
-
"once_cell",
|
|
1192
|
-
"rustversion",
|
|
1193
|
-
"wasm-bindgen-macro",
|
|
1194
|
-
"wasm-bindgen-shared",
|
|
1195
|
-
]
|
|
1196
|
-
|
|
1197
|
-
[[package]]
|
|
1198
|
-
name = "wasm-bindgen-macro"
|
|
1199
|
-
version = "0.2.126"
|
|
1200
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1201
|
-
checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
|
|
1202
|
-
dependencies = [
|
|
1203
|
-
"quote",
|
|
1204
|
-
"wasm-bindgen-macro-support",
|
|
1205
|
-
]
|
|
1206
|
-
|
|
1207
|
-
[[package]]
|
|
1208
|
-
name = "wasm-bindgen-macro-support"
|
|
1209
|
-
version = "0.2.126"
|
|
1210
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1211
|
-
checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
|
|
1212
|
-
dependencies = [
|
|
1213
|
-
"bumpalo",
|
|
1214
|
-
"proc-macro2",
|
|
1215
|
-
"quote",
|
|
1216
|
-
"syn",
|
|
1217
|
-
"wasm-bindgen-shared",
|
|
1218
|
-
]
|
|
1219
|
-
|
|
1220
|
-
[[package]]
|
|
1221
|
-
name = "wasm-bindgen-shared"
|
|
1222
|
-
version = "0.2.126"
|
|
1223
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1224
|
-
checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
|
|
1225
|
-
dependencies = [
|
|
1226
|
-
"unicode-ident",
|
|
1227
|
-
]
|
|
1228
|
-
|
|
1229
846
|
[[package]]
|
|
1230
847
|
name = "windows-link"
|
|
1231
848
|
version = "0.2.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "beaconcrypt"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.11"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license-file = "LICENSE"
|
|
6
6
|
readme = "README.md"
|
|
@@ -20,19 +20,17 @@ cbindgen = "0.29"
|
|
|
20
20
|
capnp = "0.26"
|
|
21
21
|
libsodium-rs = "0.2"
|
|
22
22
|
zeroize = "1.9"
|
|
23
|
-
libcrux-ml-dsa = { version = "0.0.9", optional = true }
|
|
24
|
-
libcrux-ml-kem = { version = "0.0.9", optional = true }
|
|
25
|
-
libcrux-aesgcm = { version = "0.0.8", optional = true }
|
|
26
23
|
pyo3 = { version = "0.29.0", features = ["abi3-py311", "experimental-inspect"], optional = true }
|
|
27
24
|
|
|
28
25
|
[features]
|
|
29
26
|
default = ["beacon", "server", "pqxdh"]
|
|
30
27
|
server = []
|
|
31
28
|
beacon = []
|
|
32
|
-
cnsa2 = ["dep:libcrux-ml-dsa", "dep:libcrux-ml-kem", "dep:libcrux-aesgcm"]
|
|
33
29
|
pqxdh = []
|
|
34
30
|
gobinds = ["beacon", "server", "pqxdh"]
|
|
35
|
-
|
|
31
|
+
cbinds = ["beacon", "server", "pqxdh"]
|
|
32
|
+
pybinds = ["dep:pyo3", "beacon", "server", "pqxdh"]
|
|
33
|
+
all = ["gobinds", "pybinds", "cbinds"]
|
|
36
34
|
|
|
37
35
|
[profile.release]
|
|
38
36
|
strip = true
|
|
@@ -59,11 +59,13 @@ Build and run all tests:
|
|
|
59
59
|
```bash
|
|
60
60
|
cargo test
|
|
61
61
|
cargo build --features gobinds --target x86_64-pc-windows-gnu
|
|
62
|
-
go test
|
|
62
|
+
go test -a -count=1 .
|
|
63
63
|
uv run maturin develop --uv
|
|
64
64
|
uv run pytest tests
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
The `-a` flag is required after rebuilding the Rust static library because Go's build cache does not detect changes to libraries linked through cgo. `-count=1` also prevents reuse of a cached successful test result.
|
|
68
|
+
|
|
67
69
|
## Profiles
|
|
68
70
|
The reference implementation has two profiles: `PQXDH` and `CNSA2`. Profiles are controlled by cargo features. The CNSA2 profile only exists as a test for now. It uses a simple ML-KEM encapsulation for key exchange and the underlying libraries are not FIPS-approved. It is experimental and is likely broken. PQXDH is the intended target and the default.
|
|
69
71
|
|
|
@@ -87,7 +87,7 @@ func TestRegister(t *testing.T) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
func
|
|
90
|
+
func TestRegisterWithoutInitialMessageReturnsWitness(t *testing.T) {
|
|
91
91
|
server := newServer(t)
|
|
92
92
|
serverPK, err := server.IdentityPK()
|
|
93
93
|
if err != nil {
|
|
@@ -103,8 +103,9 @@ func TestRegisterWithoutInitialMessage(t *testing.T) {
|
|
|
103
103
|
if err != nil {
|
|
104
104
|
t.Fatal(err)
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
witness := []byte{0xff}
|
|
107
|
+
if !bytes.Equal(phase2, witness) {
|
|
108
|
+
t.Fatalf("registration witness mismatch: got %x want %x", phase2, witness)
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
|