Skip to contentSkip to conversation

drivers/crypto/nx: saves chaining value from co-processor

PATCH Superseded Fionnuala Gunter 1 participant 1 message Aug 2, 2013

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/crypto/nx: saves chaining value from co-processor

The chaining value from co-processor was not being saved. This value is needed because it is used as the IV, for example by cts(cbc(aes)).

---
 drivers/crypto/nx/nx-aes-cbc.c |    1 +
 1 file changed, 1 insertion(+)
drivers/crypto/nx/nx-aes-cbc.c +1 -0
index 35d483f..a2f99a9 100644
@@ -95,6 +95,7 @@ static int cbc_aes_nx_crypt(struct blkcipher_desc *desc,
        if (rc)
                goto out;
 
+       memcpy(desc->info, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE);
        atomic_inc(&(nx_ctx->stats->aes_ops));
        atomic64_add(csbcpb->csb.processed_byte_count,
                     &(nx_ctx->stats->aes_bytes));
Signature · 1 line
1.7.10.4