Commit 34b7f4d
authored
Use shorter message to avoid error in RSA/ECB/NoPadding benchmark (#1227)
The message needs to be smaller than the key not just in
number of bytes, but in absolute bitwise value. Having the
key and message be the exact same number of bytes (when no
padding is added) and be created randomly leads to cases
where this condition does not apply and the operations fail.
To ensure that this doesn't happen, we make the message one
byte smaller.
Signed-off-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>1 parent 4cf54a2 commit 34b7f4d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments