Commit 5dcd891
otp_crypto: reject zero iterations in PBKDF2
PBKDF2 with zero iterations would silently produce weak/empty output.
Explicitly reject iterations == 0 with a clear error message.
Amp-Thread-ID: https://ampcode.com/threads/T-019d108a-c8e4-72f4-924c-997ffe14adac
Co-authored-by: Amp <amp@ampcode.com>1 parent 782713a commit 5dcd891
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3534 | 3534 | | |
3535 | 3535 | | |
3536 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
3537 | 3542 | | |
3538 | 3543 | | |
3539 | 3544 | | |
| |||
0 commit comments