|
|
@@ -1553,11 +1553,15 @@ static void ablkcipher_done(struct device *dev,
|
|
|
int err)
|
|
|
{
|
|
|
struct ablkcipher_request *areq = context;
|
|
|
+ struct crypto_ablkcipher *cipher = crypto_ablkcipher_reqtfm(areq);
|
|
|
+ struct talitos_ctx *ctx = crypto_ablkcipher_ctx(cipher);
|
|
|
+ unsigned int ivsize = crypto_ablkcipher_ivsize(cipher);
|
|
|
struct talitos_edesc *edesc;
|
|
|
|
|
|
edesc = container_of(desc, struct talitos_edesc, desc);
|
|
|
|
|
|
common_nonsnoop_unmap(dev, edesc, areq);
|
|
|
+ memcpy(areq->info, ctx->iv, ivsize);
|
|
|
|
|
|
kfree(edesc);
|
|
|
|