Commit 1e6209e
committed
Fix Camellia key size in encrypt/decrypt
wc_CamelliaSetKey was passed `block` (cipher block size, always 16)
instead of `size` (actual key size). This caused camellia-192 and
camellia-256 to use only 16 bytes of the key, producing incorrect
output. camellia-128 was unaffected since block == size == 16.1 parent bcd3742 commit 1e6209e
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