Commit 7f53061
[cryptography/stream] Version SAKE and bind identities before signing
Add sake::Version and cups::Version. V1 commits both static identities
before every handshake signature, so the Syn signature covers the dialer
identity, and uses injective transcript::Version::V1 framing. V0 keeps the
existing transcript byte-for-byte. Both sake::Context::new and
cups::Handshake::new require the version: it is not negotiated, so every
caller chooses it explicitly, and library code never picks one on behalf
of an operator.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent ff558dc commit 7f53061
35 files changed
Lines changed: 609 additions & 211 deletions
File tree
- cryptography
- src/handshake
- sake
- benches
- examples
- bridge/src/bin
- chat/src
- flood/src/bin
- log/src
- glue/src/dkg
- p2p
- fuzz/src
- src/authenticated
- discovery
- actors
- peer
- spawner
- lookup
- actors
- peer
- spawner
- stream
- fuzz/fuzz_targets
- src
- cups
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
384 | 400 | | |
385 | 401 | | |
386 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
0 commit comments