Commit 95c177b
committed
Set MAX_ENCODED_SIG_SZ to FP_MAX_BITS / 16 rather than / 8
FP_MAX_BITS is the largest possible size of any intermediate operand.
RSA requires multiplying together integers with the size of signatures
(N), resulting in a size of 2N. So we must assume FP_MAX_BITS is 2N, not
N (in bits: 16N, not 8N).1 parent 6ac0f82 commit 95c177b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2315 | 2315 | | |
2316 | 2316 | | |
2317 | 2317 | | |
2318 | | - | |
| 2318 | + | |
2319 | 2319 | | |
2320 | 2320 | | |
2321 | 2321 | | |
| |||
0 commit comments