Commit 6408448
authored
Since KEMs require randomness and unconditionally enables the
`rand_core` feature of `crypto-common`, this unconditionally re-exports
the `Generate` trait, which can be used to generate decapsulation keys
(though the bounds on `Decapsulate` remain unchanged).
This also adds a passthrough feature for `getrandom` to enable
`crypto-common/getrandom`. Ideally this would also add a method to
`Encapsulate` which can use `getrandom::SysRng` as the RNG for
encapsulating, but since there isn't yet a prerelease with that feature
this doesn't attempt to add it yet.
1 parent 84b88b2 commit 6408448
3 files changed
Lines changed: 6 additions & 4 deletions
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 | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments