Repository navigation
Commit 2d506d4
[CRYPTO] geode: use consistent IV copy
It is enough if the IV is copied before and after the while loop.
With DM-Crypt is seems not be required to save the IV after encrytion
because a new one is used in the request (dunno about other users).
It is not save to load the IV within while loop and not save afterwards
because we mill end up with the wrong IV if the request goes consists
of more than one page.
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent 89e1265 commit 2d506d4
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
237 | | - | |
238 | | - | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
242 | 240 | | |
243 | | - | |
244 | 241 | | |
245 | 242 | | |
246 | 243 | | |
| 244 | + | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
| |||
258 | 256 | | |
259 | 257 | | |
260 | 258 | | |
| 259 | + | |
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
| |||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | | - | |
270 | | - | |
271 | 268 | | |
272 | 269 | | |
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
| 273 | + | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| |||
0 commit comments