Repository navigation
Commit 9241c40
authored
Allow using KMAC with an empty key (#55)
The requirement that the key length is non-zero was copied from HMAC,
but NIST SP 800-185 section 4.2 explicitly says:
> K is a key bit string of any length, including zero.
(with a caveat about the security strength depending on the length of
the key, of course).
So, match the underlying spec and allow using KMAC with an empty key.1 parent 696b345 commit 9241c40
1 file changed
Lines changed: 3 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6352 | 6352 | | |
6353 | 6353 | | |
6354 | 6354 | | |
6355 | | - | |
6356 | | - | |
6357 | | - | |
6358 | | - | |
6359 | | - | |
6360 | | - | |
6361 | | - | |
6362 | | - | |
6363 | | - | |
6364 | | - | |
6365 | | - | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
6366 | 6358 | | |
6367 | 6359 | | |
6368 | 6360 | | |
| |||
6570 | 6562 | | |
6571 | 6563 | | |
6572 | 6564 | | |
6573 | | - | |
6574 | | - | |
6575 | | - | |
6576 | | - | |
6577 | | - | |
6578 | | - | |
6579 | | - | |
6580 | 6565 | | |
6581 | 6566 | | |
6582 | 6567 | | |
| |||
0 commit comments