drivers/crypto/nx: saves chaining value from co-processor
Subsystems (3)
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 i.e. cts(cbc(aes)).
--- drivers/crypto/nx/nx-aes-cbc.c | 1 + 1 file changed, 1 insertion(+)
(quoted diff) +0 -0
b/drivers/crypto/nx/nx-aes-cbc.c
index 35d483f..a2f99a9 100644
drivers/crypto/nx/nx-aes-cbc.c +0 -0
@@ -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
Quoted 6 lines · Fionnuala Gunter
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 i.e. cts(cbc(aes)).
Signed-off-by Fionnuala Gunter <[email protected]>Signed-off-by Marcelo Cerri <[email protected]>
So now you guys are sending the patch to linuxppc-dev and not the crypto list ..
I need to understand things better here. Any reason why those drivers aren't handled by the crypto maintainer ?
Ben.
Quoted 18 lines
--- drivers/crypto/nx/nx-aes-cbc.c | 1 + 1 file changed, 1 insertion(+)drivers/crypto/nx/nx-aes-cbc.c +1
-0@@ -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));
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 6 lines · Fionnuala Gunter
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 i.e. cts(cbc(aes)).
Signed-off-by Fionnuala Gunter <[email protected]>Signed-off-by Marcelo Cerri <[email protected]>
Quoted 7 lines
So now you guys are sending the patch to linuxppc-dev and not the crypto list ..
I need to understand things better here. Any reason why those drivers aren't handled by the crypto maintainer ?
Ben.
Sorry, I thought linuxppc-dev was the right tree since the patch is for a ppc driver and you've carried previous nx driver submissions upstream.
I want to submit to the proper place, so what is your preference?
-Fin
Quoted 6 lines · Fionnuala Gunter
Sorry, I thought linuxppc-dev was the right tree since the patch is for
a ppc driver and you've carried previous nx driver submissions upstream.I want to submit to the proper place, so what is your preference?
Well, that's the right place if you want me to merge it, which seems to be what Marcelo is also expecting...
However I do wonder why is that expectation there in the first place and why aren't those handled by the crypto maintainer...
Cheers,
Ben.
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 6 lines · Fionnuala Gunter
Sorry, I thought linuxppc-dev was the right tree since the patch is for
a ppc driver and you've carried previous nx driver submissions upstream.I want to submit to the proper place, so what is your preference?
Well, that's the right place if you want me to merge it, which seems to be what Marcelo is also expecting...
Please merge this patch, it fixes a hot bug.
Quoted 2 lines
However I do wonder why is that expectation there in the first place and why aren't those handled by the crypto maintainer...
In the future I can submit patches to the crypto maintainer.
-Fin
Quoted 7 lines · Fionnuala Gunter
Quoted 6 lines · Benjamin Herrenschmidt
Quoted 5 lines · Fionnuala Gunter
Sorry, I thought linuxppc-dev was the right tree since the patch is for
a ppc driver and you've carried previous nx driver submissions upstream.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I want to submit to the proper place, so what is your preference?
Well, that's the right place if you want me to merge it, which seems to be what Marcelo is also expecting...
Please merge this patch, it fixes a hot bug.
You don't actually mention that anywhere in the changelog.
The description implies that it's probably a bug, but doesn't describe the symptoms in any way - does it make it completely non-functional or just break in certain corner cases.
And you make no mention of when this bug appeared, has it always been there, or was it introduced by a particular commit? That's important because it helps determine whether the patch should go into any of the stable trees.
cheers