On 11/15/19 3:49 PM, Tudor Ambarus - M18064 wrote: > static void atmel_tdes_finish_req(struct atmel_tdes_dev *dd, int err) > { > struct skcipher_request *req = dd->req; > @@ -580,6 +605,8 @@ static void atmel_tdes_finish_req(struct atmel_tdes_dev *dd, int err) > > dd->flags &= ~TDES_FLAGS_BUSY; > > + atmel_tdes_set_iv_as_last_ciphertext_block(dd); ECB mode does not use an IV, I should probably exclude the update of IV for the ECB mode. v2 will follow. > + > req->base.complete(&req->base, err); > }