Commit 2187175
authored
kdf:
Expands documentation and renames the second parameter (not counting
`self`) to the KDF from `salt` => `non_secret`.
When impl'ing this trait for `hkdf` it became clear that, using the
existing structs, `info` was the only parameter that made sense
(something @newpavlov hinted at), as `salt` is the only one that can be
statefully configured and accessed via `self`.
So this renames it to a much more nonspecific `non_secret` and notes in
the documentation that such a parameter goes by many different names
that all generally serve the same function: customizing the outputs in a
non-correlated/indistinguishable manner.
It suggests consulting the algorithm-specific documentation for what
parameter it actually maps to, except for `Kdf`s marked `Pbkdf` where it
says it always maps to the salt.Kdf trait documentation improvements (#2211)1 parent 16deb21 commit 2187175
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
20 | 35 | | |
21 | 36 | | |
22 | 37 | | |
| |||
0 commit comments