Commit 85be9ff
committed
Fix Camellia key size in encrypt/decrypt
wc_CamelliaSetKey was passed `block` (cipher block size, always 16)
instead of `size / 8` (key size in bytes). The `size` parameter is in
bits (128/192/256) so it must be divided by 8. The old code happened
to work for camellia-128 since block == 128/8 == 16.1 parent bcd3742 commit 85be9ff
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
0 commit comments