Repository navigation
Commit 40c39a2
committed
refactor(eql-bindings): take the Rust primitives as the v4 number and boolean plaintexts
Integer, Bigint, Boolean, Real and Double, and their equality types, now
take i32, i64, bool, f32 and f64, as the text types take String. The
encryption::plaintext newtypes are gone: the derive and the by-name
dispatch need nothing a primitive lacks, and the dispatch still accepts
only the matching runtime kind.
A typed decrypt now reads a leaf as vitaminc reads it into the primitive:
an integer of another width that fits opens unchanged, and an f64 opens an
f32. A value that does not fit, or of another kind, is still refused. The
newtypes refused every other width, but every writer seals at the type's
width, so that refused only payloads none of them writes.
eql-bindings no longer depends on vitaminc-aead directly.1 parent 7c8e018 commit 40c39a2
17 files changed
Lines changed: 182 additions & 408 deletions
File tree
- .changeset
- languages/golang/encrypt/guest
- packages/eql
- crates
- eql-bindings
- src
- encryption
- v4
- eql-codegen/src
- tests/encryption/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
66 | 61 | | |
67 | 62 | | |
68 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
402 | 401 | | |
403 | 402 | | |
404 | 403 | | |
405 | | - | |
406 | | - | |
407 | 404 | | |
408 | 405 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
414 | 411 | | |
415 | 412 | | |
416 | 413 | | |
| |||
460 | 457 | | |
461 | 458 | | |
462 | 459 | | |
463 | | - | |
| 460 | + | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
468 | | - | |
| 465 | + | |
469 | 466 | | |
470 | 467 | | |
471 | 468 | | |
| |||
475 | 472 | | |
476 | 473 | | |
477 | 474 | | |
478 | | - | |
| 475 | + | |
479 | 476 | | |
480 | 477 | | |
481 | 478 | | |
482 | 479 | | |
483 | 480 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
489 | 486 | | |
490 | 487 | | |
491 | 488 | | |
| |||
0 commit comments