Commit cd6df6d
authored
Due to the `&self` requirement in the `Kdf` trait, this seems like the
only existing type that a `Kdf` impl makes sense for, since `derive_key`
needs to be able to input IKM.
The "salt" parameter of `Kdf::derive_key` has been mapped to the HKDF
`info` parameter, as what HKDF calls the "salt" (the non-secret value
that goes into the extract step) has already been (potentially)
configured via `&self`, whereas the "info" parameter (the non-secret
value that goes into the expand step) is the one we can actually
configure through this API.
1 parent 03d63d3 commit cd6df6d
3 files changed
+23
-0
lines changedSome 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 | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
65 | 78 | | |
66 | 79 | | |
67 | 80 | | |
| |||
0 commit comments