beaconcrypt 0.5.1__tar.gz → 0.5.2__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.5.1 → beaconcrypt-0.5.2}/Cargo.lock +101 -134
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/PKG-INFO +1 -1
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/Cargo.toml +6 -6
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/pqxdh.rs +4 -1
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/pybinds.rs +1 -1
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/shared.rs +12 -1
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/wycheproof.rs +2 -6
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/Cargo.toml +2 -2
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt.pyi +20 -21
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/Cargo.toml +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/LICENSE +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/LICENSE +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/README.md +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/bindings.h +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/build.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/examples/rust/README.md +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/examples/rust/main.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/beacon.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/cbinds.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/deser.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/error.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/lib.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/persistence.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/ratchet.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/schema/cryptoframe.capnp +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/schema/phase1.capnp +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/schema/phase2.capnp +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/ser.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/src/server.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/beacon.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/c_persistence.c +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/construction.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/protocol.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/raw_receive.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/record_opening.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/registration_completion.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/registration_response_alias.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/rooterberg.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt/tests/server.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/LICENSE +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/README.md +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/commitment.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/constants.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/lib.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/pqxdh/concrete.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/pqxdh.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/ratchet/concrete.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/ratchet/control.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/ratchet/refined.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/ratchet.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/src/record.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/tests/general_registration_admission.rs +0 -0
- {beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/pyproject.toml +0 -0
|
@@ -2,12 +2,6 @@
|
|
|
2
2
|
# It is not intended for manual editing.
|
|
3
3
|
version = 4
|
|
4
4
|
|
|
5
|
-
[[package]]
|
|
6
|
-
name = "adler2"
|
|
7
|
-
version = "2.0.1"
|
|
8
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
10
|
-
|
|
11
5
|
[[package]]
|
|
12
6
|
name = "adler32"
|
|
13
7
|
version = "1.2.0"
|
|
@@ -72,13 +66,13 @@ dependencies = [
|
|
|
72
66
|
|
|
73
67
|
[[package]]
|
|
74
68
|
name = "base64"
|
|
75
|
-
version = "0.
|
|
69
|
+
version = "0.23.1"
|
|
76
70
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
77
|
-
checksum = "
|
|
71
|
+
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
78
72
|
|
|
79
73
|
[[package]]
|
|
80
74
|
name = "beaconcrypt"
|
|
81
|
-
version = "0.5.
|
|
75
|
+
version = "0.5.2"
|
|
82
76
|
dependencies = [
|
|
83
77
|
"beaconcrypt-core",
|
|
84
78
|
"capnp",
|
|
@@ -93,16 +87,16 @@ dependencies = [
|
|
|
93
87
|
|
|
94
88
|
[[package]]
|
|
95
89
|
name = "beaconcrypt-core"
|
|
96
|
-
version = "0.1.
|
|
90
|
+
version = "0.1.1"
|
|
97
91
|
dependencies = [
|
|
98
92
|
"zeroize",
|
|
99
93
|
]
|
|
100
94
|
|
|
101
95
|
[[package]]
|
|
102
96
|
name = "bitflags"
|
|
103
|
-
version = "2.13.
|
|
97
|
+
version = "2.13.2"
|
|
104
98
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
105
|
-
checksum = "
|
|
99
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
106
100
|
|
|
107
101
|
[[package]]
|
|
108
102
|
name = "bumpalo"
|
|
@@ -118,18 +112,18 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|
|
118
112
|
|
|
119
113
|
[[package]]
|
|
120
114
|
name = "capnp"
|
|
121
|
-
version = "0.
|
|
115
|
+
version = "0.27.2"
|
|
122
116
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
-
checksum = "
|
|
117
|
+
checksum = "93f7ce2b1b49d58b2b754f9146ef07e3244f9b67e7563bc1292fbd5f01b142f0"
|
|
124
118
|
dependencies = [
|
|
125
119
|
"embedded-io",
|
|
126
120
|
]
|
|
127
121
|
|
|
128
122
|
[[package]]
|
|
129
123
|
name = "capnpc"
|
|
130
|
-
version = "0.
|
|
124
|
+
version = "0.27.0"
|
|
131
125
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
-
checksum = "
|
|
126
|
+
checksum = "82ca16312ddb64529d31c8dc46148671c22e57b80134fa5f17811ad5a6a79492"
|
|
133
127
|
dependencies = [
|
|
134
128
|
"capnp",
|
|
135
129
|
]
|
|
@@ -155,9 +149,9 @@ dependencies = [
|
|
|
155
149
|
|
|
156
150
|
[[package]]
|
|
157
151
|
name = "cc"
|
|
158
|
-
version = "1.
|
|
152
|
+
version = "1.8.0"
|
|
159
153
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
-
checksum = "
|
|
154
|
+
checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838"
|
|
161
155
|
dependencies = [
|
|
162
156
|
"find-msvc-tools",
|
|
163
157
|
"shlex",
|
|
@@ -165,24 +159,24 @@ dependencies = [
|
|
|
165
159
|
|
|
166
160
|
[[package]]
|
|
167
161
|
name = "cfg-if"
|
|
168
|
-
version = "1.0.
|
|
162
|
+
version = "1.0.5"
|
|
169
163
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
-
checksum = "
|
|
164
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
171
165
|
|
|
172
166
|
[[package]]
|
|
173
167
|
name = "clap"
|
|
174
|
-
version = "4.6.
|
|
168
|
+
version = "4.6.7"
|
|
175
169
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
-
checksum = "
|
|
170
|
+
checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
|
|
177
171
|
dependencies = [
|
|
178
172
|
"clap_builder",
|
|
179
173
|
]
|
|
180
174
|
|
|
181
175
|
[[package]]
|
|
182
176
|
name = "clap_builder"
|
|
183
|
-
version = "4.6.
|
|
177
|
+
version = "4.6.7"
|
|
184
178
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
-
checksum = "
|
|
179
|
+
checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
|
|
186
180
|
dependencies = [
|
|
187
181
|
"anstream",
|
|
188
182
|
"anstyle",
|
|
@@ -192,9 +186,9 @@ dependencies = [
|
|
|
192
186
|
|
|
193
187
|
[[package]]
|
|
194
188
|
name = "clap_lex"
|
|
195
|
-
version = "1.1.
|
|
189
|
+
version = "1.1.1"
|
|
196
190
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
-
checksum = "
|
|
191
|
+
checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
|
|
198
192
|
|
|
199
193
|
[[package]]
|
|
200
194
|
name = "colorchoice"
|
|
@@ -204,57 +198,35 @@ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
|
204
198
|
|
|
205
199
|
[[package]]
|
|
206
200
|
name = "crc32fast"
|
|
207
|
-
version = "1.5.
|
|
201
|
+
version = "1.5.2"
|
|
208
202
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
-
checksum = "
|
|
203
|
+
checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
|
|
210
204
|
dependencies = [
|
|
211
205
|
"cfg-if",
|
|
212
206
|
]
|
|
213
207
|
|
|
214
208
|
[[package]]
|
|
215
209
|
name = "ct-codecs"
|
|
216
|
-
version = "1.1.
|
|
210
|
+
version = "1.1.8"
|
|
217
211
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
218
|
-
checksum = "
|
|
212
|
+
checksum = "8fd9f3db6f2cfef61c10613071955154ffdc9e515daebff26de4b54e35038fdd"
|
|
219
213
|
|
|
220
214
|
[[package]]
|
|
221
215
|
name = "ctor"
|
|
222
|
-
version = "0.
|
|
216
|
+
version = "1.0.13"
|
|
223
217
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
-
checksum = "
|
|
218
|
+
checksum = "914a755b7c2d4af2bdcff7ce1739e2db9a1b81a9b07123d8015786ae03c0980d"
|
|
225
219
|
dependencies = [
|
|
226
|
-
"ctor-proc-macro",
|
|
227
|
-
"dtor",
|
|
228
220
|
"link-section",
|
|
221
|
+
"linktime-proc-macro",
|
|
229
222
|
]
|
|
230
223
|
|
|
231
|
-
[[package]]
|
|
232
|
-
name = "ctor-proc-macro"
|
|
233
|
-
version = "0.0.12"
|
|
234
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
235
|
-
checksum = "a7ab264ea985f1bd27887d7b21ea2bb046728e05d11909ca138d700c494730db"
|
|
236
|
-
|
|
237
224
|
[[package]]
|
|
238
225
|
name = "dary_heap"
|
|
239
226
|
version = "0.3.9"
|
|
240
227
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
228
|
checksum = "8b1e3a325bc115f096c8b77bbf027a7c2592230e70be2d985be950d3d5e60ebe"
|
|
242
229
|
|
|
243
|
-
[[package]]
|
|
244
|
-
name = "dtor"
|
|
245
|
-
version = "0.6.0"
|
|
246
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
247
|
-
checksum = "30e4690622ab6700ced40fc370a3f07b7d111f0154bb6fb08f73b4c8834f75b6"
|
|
248
|
-
dependencies = [
|
|
249
|
-
"dtor-proc-macro",
|
|
250
|
-
]
|
|
251
|
-
|
|
252
|
-
[[package]]
|
|
253
|
-
name = "dtor-proc-macro"
|
|
254
|
-
version = "0.0.12"
|
|
255
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
256
|
-
checksum = "8c98b077c7463d01d22dde8a24378ddf1ca7263dc687cffbed38819ea6c21131"
|
|
257
|
-
|
|
258
230
|
[[package]]
|
|
259
231
|
name = "embedded-io"
|
|
260
232
|
version = "0.7.1"
|
|
@@ -263,9 +235,9 @@ checksum = "9eb1aa714776b75c7e67e1da744b81a129b3ff919c8712b5e1b32252c1f07cc7"
|
|
|
263
235
|
|
|
264
236
|
[[package]]
|
|
265
237
|
name = "equivalent"
|
|
266
|
-
version = "1.0.
|
|
238
|
+
version = "1.0.3"
|
|
267
239
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
-
checksum = "
|
|
240
|
+
checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
|
|
269
241
|
|
|
270
242
|
[[package]]
|
|
271
243
|
name = "errno"
|
|
@@ -295,17 +267,16 @@ dependencies = [
|
|
|
295
267
|
|
|
296
268
|
[[package]]
|
|
297
269
|
name = "find-msvc-tools"
|
|
298
|
-
version = "0.1.
|
|
270
|
+
version = "0.1.14"
|
|
299
271
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
-
checksum = "
|
|
272
|
+
checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
|
|
301
273
|
|
|
302
274
|
[[package]]
|
|
303
275
|
name = "flate2"
|
|
304
|
-
version = "1.1.
|
|
276
|
+
version = "1.1.10"
|
|
305
277
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
306
|
-
checksum = "
|
|
278
|
+
checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
|
|
307
279
|
dependencies = [
|
|
308
|
-
"miniz_oxide",
|
|
309
280
|
"zlib-rs",
|
|
310
281
|
]
|
|
311
282
|
|
|
@@ -351,9 +322,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
351
322
|
|
|
352
323
|
[[package]]
|
|
353
324
|
name = "http"
|
|
354
|
-
version = "1.
|
|
325
|
+
version = "1.5.0"
|
|
355
326
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
356
|
-
checksum = "
|
|
327
|
+
checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
|
|
357
328
|
dependencies = [
|
|
358
329
|
"bytes",
|
|
359
330
|
"itoa",
|
|
@@ -367,9 +338,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|
|
367
338
|
|
|
368
339
|
[[package]]
|
|
369
340
|
name = "indexmap"
|
|
370
|
-
version = "2.14.
|
|
341
|
+
version = "2.14.2"
|
|
371
342
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
-
checksum = "
|
|
343
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
373
344
|
dependencies = [
|
|
374
345
|
"equivalent",
|
|
375
346
|
"hashbrown 0.17.1",
|
|
@@ -389,15 +360,15 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
|
389
360
|
|
|
390
361
|
[[package]]
|
|
391
362
|
name = "libc"
|
|
392
|
-
version = "0.2.
|
|
363
|
+
version = "0.2.191"
|
|
393
364
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
394
|
-
checksum = "
|
|
365
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
395
366
|
|
|
396
367
|
[[package]]
|
|
397
368
|
name = "libflate"
|
|
398
|
-
version = "2.3.
|
|
369
|
+
version = "2.3.2"
|
|
399
370
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
400
|
-
checksum = "
|
|
371
|
+
checksum = "561a8da1a50e1428d3c51321dafeca849df992a5bb67720c386131234caba82e"
|
|
401
372
|
dependencies = [
|
|
402
373
|
"adler32",
|
|
403
374
|
"crc32fast",
|
|
@@ -419,9 +390,9 @@ dependencies = [
|
|
|
419
390
|
|
|
420
391
|
[[package]]
|
|
421
392
|
name = "libsodium-rs"
|
|
422
|
-
version = "0.
|
|
393
|
+
version = "0.3.0"
|
|
423
394
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
-
checksum = "
|
|
395
|
+
checksum = "550e3e6ffc3ff73ba09734ce2a110a5346cb928b1004ac292d9b17efe88490be"
|
|
425
396
|
dependencies = [
|
|
426
397
|
"ct-codecs",
|
|
427
398
|
"ctor",
|
|
@@ -434,9 +405,9 @@ dependencies = [
|
|
|
434
405
|
|
|
435
406
|
[[package]]
|
|
436
407
|
name = "libsodium-sys-stable"
|
|
437
|
-
version = "1.24.
|
|
408
|
+
version = "1.24.3"
|
|
438
409
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
-
checksum = "
|
|
410
|
+
checksum = "1f55c1c508d31e2cf0a649c9c889e4bcf554cbfb2a6803f049f219784b044283"
|
|
440
411
|
dependencies = [
|
|
441
412
|
"cc",
|
|
442
413
|
"libc",
|
|
@@ -451,9 +422,15 @@ dependencies = [
|
|
|
451
422
|
|
|
452
423
|
[[package]]
|
|
453
424
|
name = "link-section"
|
|
454
|
-
version = "0.
|
|
425
|
+
version = "0.19.3"
|
|
426
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
427
|
+
checksum = "39c29a617ce3df32c08497bdc1ab6e2376e0b17948ac166a2fbe5977c5954cd9"
|
|
428
|
+
|
|
429
|
+
[[package]]
|
|
430
|
+
name = "linktime-proc-macro"
|
|
431
|
+
version = "0.2.3"
|
|
455
432
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
456
|
-
checksum = "
|
|
433
|
+
checksum = "7e57c38c1e860fd37c604281cdfb1dd2216977fd76a50f85ba2f388ef3219616"
|
|
457
434
|
|
|
458
435
|
[[package]]
|
|
459
436
|
name = "linux-raw-sys"
|
|
@@ -463,9 +440,9 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
|
463
440
|
|
|
464
441
|
[[package]]
|
|
465
442
|
name = "log"
|
|
466
|
-
version = "0.4.
|
|
443
|
+
version = "0.4.34"
|
|
467
444
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
-
checksum = "
|
|
445
|
+
checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
|
|
469
446
|
|
|
470
447
|
[[package]]
|
|
471
448
|
name = "memchr"
|
|
@@ -479,16 +456,6 @@ version = "0.2.5"
|
|
|
479
456
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
457
|
checksum = "22f9645cb765ea72b8111f36c522475d2daa0d22c957a9826437e97534bc4e9e"
|
|
481
458
|
|
|
482
|
-
[[package]]
|
|
483
|
-
name = "miniz_oxide"
|
|
484
|
-
version = "0.8.9"
|
|
485
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
486
|
-
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
|
487
|
-
dependencies = [
|
|
488
|
-
"adler2",
|
|
489
|
-
"simd-adler32",
|
|
490
|
-
]
|
|
491
|
-
|
|
492
459
|
[[package]]
|
|
493
460
|
name = "no_std_io2"
|
|
494
461
|
version = "0.9.4"
|
|
@@ -518,15 +485,15 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
|
518
485
|
|
|
519
486
|
[[package]]
|
|
520
487
|
name = "pkg-config"
|
|
521
|
-
version = "0.3.
|
|
488
|
+
version = "0.3.34"
|
|
522
489
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
523
|
-
checksum = "
|
|
490
|
+
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
|
|
524
491
|
|
|
525
492
|
[[package]]
|
|
526
493
|
name = "portable-atomic"
|
|
527
|
-
version = "1.
|
|
494
|
+
version = "1.15.0"
|
|
528
495
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
529
|
-
checksum = "
|
|
496
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
530
497
|
|
|
531
498
|
[[package]]
|
|
532
499
|
name = "proc-macro2"
|
|
@@ -539,9 +506,9 @@ dependencies = [
|
|
|
539
506
|
|
|
540
507
|
[[package]]
|
|
541
508
|
name = "pyo3"
|
|
542
|
-
version = "0.
|
|
509
|
+
version = "0.30.1"
|
|
543
510
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
544
|
-
checksum = "
|
|
511
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
545
512
|
dependencies = [
|
|
546
513
|
"libc",
|
|
547
514
|
"once_cell",
|
|
@@ -553,18 +520,18 @@ dependencies = [
|
|
|
553
520
|
|
|
554
521
|
[[package]]
|
|
555
522
|
name = "pyo3-build-config"
|
|
556
|
-
version = "0.
|
|
523
|
+
version = "0.30.1"
|
|
557
524
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
558
|
-
checksum = "
|
|
525
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
559
526
|
dependencies = [
|
|
560
527
|
"target-lexicon",
|
|
561
528
|
]
|
|
562
529
|
|
|
563
530
|
[[package]]
|
|
564
531
|
name = "pyo3-ffi"
|
|
565
|
-
version = "0.
|
|
532
|
+
version = "0.30.1"
|
|
566
533
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
567
|
-
checksum = "
|
|
534
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
568
535
|
dependencies = [
|
|
569
536
|
"libc",
|
|
570
537
|
"pyo3-build-config",
|
|
@@ -572,26 +539,26 @@ dependencies = [
|
|
|
572
539
|
|
|
573
540
|
[[package]]
|
|
574
541
|
name = "pyo3-macros"
|
|
575
|
-
version = "0.
|
|
542
|
+
version = "0.30.1"
|
|
576
543
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
577
|
-
checksum = "
|
|
544
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
578
545
|
dependencies = [
|
|
579
546
|
"proc-macro2",
|
|
580
547
|
"pyo3-macros-backend",
|
|
581
548
|
"quote",
|
|
582
|
-
"syn
|
|
549
|
+
"syn 3.0.9",
|
|
583
550
|
]
|
|
584
551
|
|
|
585
552
|
[[package]]
|
|
586
553
|
name = "pyo3-macros-backend"
|
|
587
|
-
version = "0.
|
|
554
|
+
version = "0.30.1"
|
|
588
555
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
589
|
-
checksum = "
|
|
556
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
590
557
|
dependencies = [
|
|
591
558
|
"heck",
|
|
592
559
|
"proc-macro2",
|
|
593
560
|
"quote",
|
|
594
|
-
"syn
|
|
561
|
+
"syn 3.0.9",
|
|
595
562
|
]
|
|
596
563
|
|
|
597
564
|
[[package]]
|
|
@@ -617,9 +584,9 @@ checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
|
|
|
617
584
|
|
|
618
585
|
[[package]]
|
|
619
586
|
name = "rustix"
|
|
620
|
-
version = "1.1.
|
|
587
|
+
version = "1.1.5"
|
|
621
588
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
622
|
-
checksum = "
|
|
589
|
+
checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
|
|
623
590
|
dependencies = [
|
|
624
591
|
"bitflags",
|
|
625
592
|
"errno",
|
|
@@ -655,14 +622,14 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
|
655
622
|
dependencies = [
|
|
656
623
|
"proc-macro2",
|
|
657
624
|
"quote",
|
|
658
|
-
"syn 3.0.
|
|
625
|
+
"syn 3.0.9",
|
|
659
626
|
]
|
|
660
627
|
|
|
661
628
|
[[package]]
|
|
662
629
|
name = "serde_json"
|
|
663
|
-
version = "1.0.
|
|
630
|
+
version = "1.0.154"
|
|
664
631
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
665
|
-
checksum = "
|
|
632
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
666
633
|
dependencies = [
|
|
667
634
|
"itoa",
|
|
668
635
|
"memchr",
|
|
@@ -673,9 +640,9 @@ dependencies = [
|
|
|
673
640
|
|
|
674
641
|
[[package]]
|
|
675
642
|
name = "serde_spanned"
|
|
676
|
-
version = "1.1.
|
|
643
|
+
version = "1.1.2"
|
|
677
644
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
678
|
-
checksum = "
|
|
645
|
+
checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
|
|
679
646
|
dependencies = [
|
|
680
647
|
"serde_core",
|
|
681
648
|
]
|
|
@@ -711,9 +678,9 @@ dependencies = [
|
|
|
711
678
|
|
|
712
679
|
[[package]]
|
|
713
680
|
name = "syn"
|
|
714
|
-
version = "3.0.
|
|
681
|
+
version = "3.0.9"
|
|
715
682
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
716
|
-
checksum = "
|
|
683
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
717
684
|
dependencies = [
|
|
718
685
|
"proc-macro2",
|
|
719
686
|
"quote",
|
|
@@ -752,22 +719,22 @@ dependencies = [
|
|
|
752
719
|
|
|
753
720
|
[[package]]
|
|
754
721
|
name = "thiserror"
|
|
755
|
-
version = "
|
|
722
|
+
version = "2.0.21"
|
|
756
723
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
757
|
-
checksum = "
|
|
724
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
758
725
|
dependencies = [
|
|
759
726
|
"thiserror-impl",
|
|
760
727
|
]
|
|
761
728
|
|
|
762
729
|
[[package]]
|
|
763
730
|
name = "thiserror-impl"
|
|
764
|
-
version = "
|
|
731
|
+
version = "2.0.21"
|
|
765
732
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
766
|
-
checksum = "
|
|
733
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
767
734
|
dependencies = [
|
|
768
735
|
"proc-macro2",
|
|
769
736
|
"quote",
|
|
770
|
-
"syn
|
|
737
|
+
"syn 3.0.9",
|
|
771
738
|
]
|
|
772
739
|
|
|
773
740
|
[[package]]
|
|
@@ -796,18 +763,18 @@ dependencies = [
|
|
|
796
763
|
|
|
797
764
|
[[package]]
|
|
798
765
|
name = "toml_parser"
|
|
799
|
-
version = "1.1.
|
|
766
|
+
version = "1.1.5+spec-1.1.0"
|
|
800
767
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
801
|
-
checksum = "
|
|
768
|
+
checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
|
|
802
769
|
dependencies = [
|
|
803
770
|
"winnow 1.0.4",
|
|
804
771
|
]
|
|
805
772
|
|
|
806
773
|
[[package]]
|
|
807
774
|
name = "toml_writer"
|
|
808
|
-
version = "1.1.
|
|
775
|
+
version = "1.1.3+spec-1.1.0"
|
|
809
776
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
810
|
-
checksum = "
|
|
777
|
+
checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770"
|
|
811
778
|
|
|
812
779
|
[[package]]
|
|
813
780
|
name = "typed-path"
|
|
@@ -817,15 +784,15 @@ checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e"
|
|
|
817
784
|
|
|
818
785
|
[[package]]
|
|
819
786
|
name = "unicode-ident"
|
|
820
|
-
version = "1.0.
|
|
787
|
+
version = "1.0.27"
|
|
821
788
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
822
|
-
checksum = "
|
|
789
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
823
790
|
|
|
824
791
|
[[package]]
|
|
825
792
|
name = "ureq"
|
|
826
|
-
version = "3.
|
|
793
|
+
version = "3.4.2"
|
|
827
794
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
828
|
-
checksum = "
|
|
795
|
+
checksum = "9a7ac20be9b7726e0bbdbf974c059676d9acb1cd414961f570a4e8231cacd7fc"
|
|
829
796
|
dependencies = [
|
|
830
797
|
"base64",
|
|
831
798
|
"log",
|
|
@@ -836,9 +803,9 @@ dependencies = [
|
|
|
836
803
|
|
|
837
804
|
[[package]]
|
|
838
805
|
name = "ureq-proto"
|
|
839
|
-
version = "0.6.
|
|
806
|
+
version = "0.6.4"
|
|
840
807
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
841
|
-
checksum = "
|
|
808
|
+
checksum = "f86fd172ccca569e458f61b6bdd6220965a9ef36e672a6852953b51a0e1583be"
|
|
842
809
|
dependencies = [
|
|
843
810
|
"base64",
|
|
844
811
|
"http",
|
|
@@ -903,9 +870,9 @@ dependencies = [
|
|
|
903
870
|
|
|
904
871
|
[[package]]
|
|
905
872
|
name = "zeroize"
|
|
906
|
-
version = "1.9.
|
|
873
|
+
version = "1.9.1"
|
|
907
874
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
908
|
-
checksum = "
|
|
875
|
+
checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
|
|
909
876
|
dependencies = [
|
|
910
877
|
"zeroize_derive",
|
|
911
878
|
]
|
|
@@ -937,9 +904,9 @@ dependencies = [
|
|
|
937
904
|
|
|
938
905
|
[[package]]
|
|
939
906
|
name = "zlib-rs"
|
|
940
|
-
version = "0.6.
|
|
907
|
+
version = "0.6.8"
|
|
941
908
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
942
|
-
checksum = "
|
|
909
|
+
checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
|
|
943
910
|
|
|
944
911
|
[[package]]
|
|
945
912
|
name = "zmij"
|
|
@@ -949,9 +916,9 @@ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
|
949
916
|
|
|
950
917
|
[[package]]
|
|
951
918
|
name = "zopfli"
|
|
952
|
-
version = "0.8.
|
|
919
|
+
version = "0.8.4"
|
|
953
920
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
954
|
-
checksum = "
|
|
921
|
+
checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11"
|
|
955
922
|
dependencies = [
|
|
956
923
|
"bumpalo",
|
|
957
924
|
"crc32fast",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "beaconcrypt"
|
|
3
|
-
version = "0.5.
|
|
3
|
+
version = "0.5.2"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
license-file = "LICENSE"
|
|
6
6
|
readme = "README.md"
|
|
@@ -43,7 +43,7 @@ path = "tests/wycheproof.rs"
|
|
|
43
43
|
required-features = ["pqxdh"]
|
|
44
44
|
|
|
45
45
|
[build-dependencies]
|
|
46
|
-
capnpc = "0.
|
|
46
|
+
capnpc = "0.27"
|
|
47
47
|
cbindgen = "0.29"
|
|
48
48
|
|
|
49
49
|
[dev-dependencies]
|
|
@@ -52,11 +52,11 @@ serde = { version = "1", features = ["derive"] }
|
|
|
52
52
|
serde_json = "1"
|
|
53
53
|
|
|
54
54
|
[dependencies]
|
|
55
|
-
beaconcrypt-core = { version = "0.1.
|
|
56
|
-
capnp = "0.
|
|
57
|
-
libsodium-rs = "=0.
|
|
55
|
+
beaconcrypt-core = { version = "0.1.1", path = "../beaconcrypt-core" }
|
|
56
|
+
capnp = "0.27.2"
|
|
57
|
+
libsodium-rs = "=0.3.0"
|
|
58
58
|
zeroize = "1.9"
|
|
59
|
-
pyo3 = { version = "0.
|
|
59
|
+
pyo3 = { version = "0.30.1", features = ["abi3-py311", "experimental-inspect"], optional = true }
|
|
60
60
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
61
61
|
serde_json = { version = "1", optional = true }
|
|
62
62
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// SPDX-License-Identifier: 0BSD
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
#[cfg(feature = "server")]
|
|
4
|
+
use crate::shared::SignaturePk;
|
|
5
|
+
use crate::shared::{DhSecret, KEX_KDF_OUT_LEN, KexDerivedSecret};
|
|
4
6
|
use beaconcrypt_core::pqxdh as verified_pqxdh;
|
|
5
7
|
use libsodium_rs::{crypto_kdf, crypto_kem, crypto_kx, crypto_sign};
|
|
6
8
|
use zeroize::Zeroize;
|
|
@@ -17,6 +19,7 @@ const _: () =
|
|
|
17
19
|
const _: () =
|
|
18
20
|
assert!(crypto_kem::mlkem768::SHAREDSECRETBYTES == verified_pqxdh::SHARED_SECRET_SIZE);
|
|
19
21
|
|
|
22
|
+
#[cfg(feature = "server")]
|
|
20
23
|
impl SignaturePk for crypto_sign::PublicKey {}
|
|
21
24
|
|
|
22
25
|
pub(crate) fn shared_secrets(
|
|
@@ -58,7 +58,7 @@ fn persistence_result<T>(
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/// Immutable comparison token obtained from authoritative snapshot storage.
|
|
61
|
-
#[pyclass(name = "SnapshotHead", frozen, eq
|
|
61
|
+
#[pyclass(name = "SnapshotHead", frozen, eq)]
|
|
62
62
|
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
|
63
63
|
pub struct SnapshotHeadPy {
|
|
64
64
|
inner: SnapshotHead,
|
|
@@ -11,7 +11,9 @@ use std::marker::{PhantomData, PhantomPinned};
|
|
|
11
11
|
use std::vec;
|
|
12
12
|
use zeroize::Zeroizing;
|
|
13
13
|
|
|
14
|
-
use crate::ratchet::
|
|
14
|
+
use crate::ratchet::KDF_STATE_SIZE;
|
|
15
|
+
#[cfg(any(feature = "server", test))]
|
|
16
|
+
use crate::ratchet::RatchetManager;
|
|
15
17
|
|
|
16
18
|
#[cfg(test)]
|
|
17
19
|
use crate::ratchet::{
|
|
@@ -177,6 +179,7 @@ pub(crate) mod systems {
|
|
|
177
179
|
#[cfg(feature = "server")]
|
|
178
180
|
#[derive(PartialEq)]
|
|
179
181
|
pub struct Ed25519;
|
|
182
|
+
#[cfg(any(feature = "server", test))]
|
|
180
183
|
#[derive(PartialEq)]
|
|
181
184
|
pub struct HkdfSha512;
|
|
182
185
|
#[derive(PartialEq)]
|
|
@@ -240,12 +243,17 @@ pub(crate) mod systems {
|
|
|
240
243
|
}
|
|
241
244
|
}
|
|
242
245
|
pub mod roles {
|
|
246
|
+
#[cfg(feature = "server")]
|
|
243
247
|
pub trait ChainKey {}
|
|
244
248
|
#[derive(PartialEq)]
|
|
245
249
|
pub struct DerivedSecret;
|
|
250
|
+
#[cfg(any(feature = "server", test))]
|
|
246
251
|
pub struct ChainSendKey;
|
|
252
|
+
#[cfg(feature = "server")]
|
|
247
253
|
impl ChainKey for ChainSendKey {}
|
|
254
|
+
#[cfg(any(feature = "server", test))]
|
|
248
255
|
pub struct ChainRecvKey;
|
|
256
|
+
#[cfg(feature = "server")]
|
|
249
257
|
impl ChainKey for ChainRecvKey {}
|
|
250
258
|
#[cfg(feature = "server")]
|
|
251
259
|
pub struct EncryptionRecvKey;
|
|
@@ -426,13 +434,16 @@ impl<const S: usize, System, Role> Clone for SecretArr<S, System, Role> {
|
|
|
426
434
|
pub type DhSecret = SecretArr<DH_OUT_LEN, systems::X25519, roles::DerivedSecret>;
|
|
427
435
|
pub type KexDerivedSecret = SecretArr<KDF_STATE_SIZE, systems::Pqxdh, roles::DerivedSecret>;
|
|
428
436
|
|
|
437
|
+
#[cfg(any(feature = "server", test))]
|
|
429
438
|
pub trait SignaturePk {}
|
|
430
439
|
|
|
440
|
+
#[cfg(any(feature = "server", test))]
|
|
431
441
|
pub struct EstablishedRemote<PkType: SignaturePk> {
|
|
432
442
|
pk: PkType,
|
|
433
443
|
ratchet: RatchetManager,
|
|
434
444
|
}
|
|
435
445
|
|
|
446
|
+
#[cfg(any(feature = "server", test))]
|
|
436
447
|
impl<PkType: SignaturePk> EstablishedRemote<PkType> {
|
|
437
448
|
pub(crate) fn new(pk: PkType, ratchet: RatchetManager) -> Self {
|
|
438
449
|
Self { pk, ratchet }
|
|
@@ -443,12 +443,8 @@ fn mlkem768_encapsulation_wycheproof() {
|
|
|
443
443
|
let randomness = decode_hex(&test.m);
|
|
444
444
|
assert_eq!(randomness.len(), 32, "{label}");
|
|
445
445
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
// the native function consumes the first 32 bytes.
|
|
449
|
-
let mut deterministic_seed = [0u8; mlkem768::SEEDBYTES];
|
|
450
|
-
deterministic_seed[..randomness.len()].copy_from_slice(&randomness);
|
|
451
|
-
let deterministic_seed = mlkem768::Seed::from(deterministic_seed);
|
|
446
|
+
let deterministic_seed =
|
|
447
|
+
mlkem768::EncapsulationSeed::from_bytes(&randomness).expect(&label);
|
|
452
448
|
let actual = mlkem768::PublicKey::from_bytes(&public_key).and_then(|public_key| {
|
|
453
449
|
mlkem768::encapsulate_deterministic(&public_key, &deterministic_seed)
|
|
454
450
|
});
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from
|
|
3
|
-
from typing import Any, final
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from typing import Any, SupportsIndex, final
|
|
4
3
|
|
|
5
4
|
@final
|
|
6
5
|
class BeaconCryptBeacon:
|
|
7
|
-
def __new__(cls, /, server_kid:
|
|
8
|
-
def decrypt_server_message(self, /, data:
|
|
9
|
-
def encrypt_message_to_server(self, /, data:
|
|
6
|
+
def __new__(cls, /, server_kid: SupportsIndex, server_id_pk: bytes) -> BeaconCryptBeacon: ...
|
|
7
|
+
def decrypt_server_message(self, /, data: SupportsGetItem[int, SupportsIndex]) -> bytes |None: ...
|
|
8
|
+
def encrypt_message_to_server(self, /, data: SupportsGetItem[int, SupportsIndex]) -> bytes |None: ...
|
|
10
9
|
def generate_registration(self, /) -> bytes |None:
|
|
11
10
|
"""
|
|
12
11
|
Begin the beacon registration process. The output buffer should be sent as-is over the network.
|
|
13
12
|
"""
|
|
14
|
-
def process_initial_message(self, /, data:
|
|
13
|
+
def process_initial_message(self, /, data: SupportsGetItem[int, SupportsIndex]) -> bytes |None:
|
|
15
14
|
"""
|
|
16
15
|
Process the registration response and optional initial data. The raw buffer sent by the server must be passed as-is as `data`.
|
|
17
16
|
The response contains the contents of the initial message, or `0xFF` if there was none. Once this function returns, the beacon is registered
|
|
@@ -22,27 +21,27 @@ class BeaconCryptServer:
|
|
|
22
21
|
"""
|
|
23
22
|
Server backed by trusted snapshot storage. Store callbacks must not reenter this server.
|
|
24
23
|
"""
|
|
25
|
-
def __new__(cls, /, kid:
|
|
24
|
+
def __new__(cls, /, kid: SupportsIndex, id_seed: bytes |None) -> BeaconCryptServer: ...
|
|
26
25
|
@staticmethod
|
|
27
|
-
def create_with_store(kid:
|
|
26
|
+
def create_with_store(kid: SupportsIndex, id_seed: bytes |None, store: Any, lineage: bytes |None = None) -> BeaconCryptServer:
|
|
28
27
|
"""
|
|
29
28
|
Create a server whose results are released only after the store durably commits them.
|
|
30
29
|
The store supplies load() -> bytes | None and compare_and_swap(expected, replacement) -> bool.
|
|
31
30
|
Callbacks must atomically validate and compare the complete trusted head, preserve rollback resistance, and never reenter this server.
|
|
32
31
|
"""
|
|
33
|
-
def decrypt_and_update(self, /, data:
|
|
34
|
-
def decrypt_and_update_json(self, /, data:
|
|
35
|
-
def decrypt_beacon_message(self, /, data:
|
|
36
|
-
def encrypt_and_update(self, /, data:
|
|
37
|
-
def encrypt_and_update_json(self, /, data:
|
|
38
|
-
def encrypt_to_beacon(self, /, data:
|
|
32
|
+
def decrypt_and_update(self, /, data: SupportsGetItem[int, SupportsIndex]) -> EncryptState |None: ...
|
|
33
|
+
def decrypt_and_update_json(self, /, data: SupportsGetItem[int, SupportsIndex]) -> str |None: ...
|
|
34
|
+
def decrypt_beacon_message(self, /, data: SupportsGetItem[int, SupportsIndex]) -> bytes |None: ...
|
|
35
|
+
def encrypt_and_update(self, /, data: SupportsGetItem[int, SupportsIndex], kid: SupportsIndex) -> EncryptState |None: ...
|
|
36
|
+
def encrypt_and_update_json(self, /, data: SupportsGetItem[int, SupportsIndex], kid: SupportsIndex) -> str |None: ...
|
|
37
|
+
def encrypt_to_beacon(self, /, data: SupportsGetItem[int, SupportsIndex], kid: SupportsIndex) -> bytes |None: ...
|
|
39
38
|
def export_state(self, /) -> bytes:
|
|
40
39
|
"""
|
|
41
40
|
Read this owner's committed plaintext checkpoint from the trusted store.
|
|
42
41
|
For the default in-memory store, save after every potentially mutating call, including failures; rejected receives leave the checkpoint unchanged.
|
|
43
42
|
"""
|
|
44
43
|
@staticmethod
|
|
45
|
-
def from_state(state:
|
|
44
|
+
def from_state(state: SupportsGetItem[int, SupportsIndex]) -> BeaconCryptServer:
|
|
46
45
|
"""
|
|
47
46
|
Restore trusted checkpoint bytes. Save the advanced checkpoint before using the server.
|
|
48
47
|
Standalone bytes contain plaintext secrets and cannot authenticate themselves or detect rollback.
|
|
@@ -79,10 +78,10 @@ class SnapshotHead:
|
|
|
79
78
|
"""
|
|
80
79
|
Immutable comparison token obtained from authoritative snapshot storage.
|
|
81
80
|
"""
|
|
82
|
-
def __eq__(self,
|
|
81
|
+
def __eq__(self, value: object, /) -> bool: ...
|
|
83
82
|
def __hash__(self, /) -> int: ...
|
|
84
|
-
def __ne__(self,
|
|
85
|
-
def __new__(cls, /, lineage: bytes, generation:
|
|
83
|
+
def __ne__(self, value: object, /) -> bool: ...
|
|
84
|
+
def __new__(cls, /, lineage: bytes, generation: SupportsIndex, digest: bytes) -> SnapshotHead: ...
|
|
86
85
|
@property
|
|
87
86
|
def digest(self, /) -> bytes: ...
|
|
88
87
|
@property
|
|
@@ -90,12 +89,12 @@ class SnapshotHead:
|
|
|
90
89
|
@property
|
|
91
90
|
def lineage(self, /) -> bytes: ...
|
|
92
91
|
|
|
93
|
-
def snapshot_head(data:
|
|
92
|
+
def snapshot_head(data: SupportsGetItem[int, SupportsIndex]) -> SnapshotHead:
|
|
94
93
|
"""
|
|
95
94
|
Parse an envelope comparison token; this does not authenticate its bytes.
|
|
96
95
|
"""
|
|
97
96
|
|
|
98
|
-
def validate_snapshot_successor(data:
|
|
97
|
+
def validate_snapshot_successor(data: SupportsGetItem[int, SupportsIndex], expected: SnapshotHead |None = None) -> SnapshotHead:
|
|
99
98
|
"""
|
|
100
99
|
Validate envelope succession inside the store's atomic comparison transaction.
|
|
101
100
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beaconcrypt-0.5.1 → beaconcrypt-0.5.2}/beaconcrypt-core/tests/general_registration_admission.rs
RENAMED
|
File without changes
|
|
File without changes
|