* [PATCH] [crypto] geode: fix not inplace encryption
@ 2007-11-06 20:01 Sebastian Siewior
2007-11-06 21:30 ` Jordan Crouse
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Siewior @ 2007-11-06 20:01 UTC (permalink / raw)
To: Herbert Xu; +Cc: linux-crypto, Jordan Crouse, stable
Currently the Geode AES module fails to encrypt or decrypt if
the coherent bits are not set what is currently the case if the
encryption does not occur inplace. However, the encryption works
on my Geode machine _only_ if the coherent bits are always set.
Cc: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
---
drivers/crypto/geode-aes.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index f2d4fba..0ca92d4 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -81,8 +81,7 @@ geode_aes_crypt(struct geode_aes_op *op)
* we don't need to worry
*/
- if (op->src == op->dst)
- flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
+ flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
if (op->dir == AES_DIR_ENCRYPT)
flags |= AES_CTRL_ENCRYPT;
--
1.5.3.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: geode: fix not inplace encryption
2007-11-06 20:01 [PATCH] [crypto] geode: fix not inplace encryption Sebastian Siewior
@ 2007-11-06 21:30 ` Jordan Crouse
2007-11-10 11:39 ` Herbert Xu
0 siblings, 1 reply; 5+ messages in thread
From: Jordan Crouse @ 2007-11-06 21:30 UTC (permalink / raw)
To: Herbert Xu, linux-crypto, stable
On 06/11/07 21:01 +0100, Sebastian Siewior wrote:
> Currently the Geode AES module fails to encrypt or decrypt if
> the coherent bits are not set what is currently the case if the
> encryption does not occur inplace. However, the encryption works
> on my Geode machine _only_ if the coherent bits are always set.
>
> Cc: Jordan Crouse <jordan.crouse@amd.com>
> Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Acked-by: Jordan Crouse <jordan.crouse@amd.com>
Anything in the cache is suspect - turning on coherency is the best plan
to be rock solid.
> ---
> drivers/crypto/geode-aes.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
> index f2d4fba..0ca92d4 100644
> --- a/drivers/crypto/geode-aes.c
> +++ b/drivers/crypto/geode-aes.c
> @@ -81,8 +81,7 @@ geode_aes_crypt(struct geode_aes_op *op)
> * we don't need to worry
> */
>
> - if (op->src == op->dst)
> - flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
> + flags |= (AES_CTRL_DCA | AES_CTRL_SCA);
>
> if (op->dir == AES_DIR_ENCRYPT)
> flags |= AES_CTRL_ENCRYPT;
> --
> 1.5.3.4
>
>
>
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: geode: fix not inplace encryption
2007-11-06 21:30 ` Jordan Crouse
@ 2007-11-10 11:39 ` Herbert Xu
2007-11-10 20:58 ` Sebastian Siewior
0 siblings, 1 reply; 5+ messages in thread
From: Herbert Xu @ 2007-11-10 11:39 UTC (permalink / raw)
To: Jordan Crouse; +Cc: linux-crypto, stable
On Tue, Nov 06, 2007 at 02:30:40PM -0700, Jordan Crouse wrote:
> On 06/11/07 21:01 +0100, Sebastian Siewior wrote:
> > Currently the Geode AES module fails to encrypt or decrypt if
> > the coherent bits are not set what is currently the case if the
> > encryption does not occur inplace. However, the encryption works
> > on my Geode machine _only_ if the coherent bits are always set.
> >
> > Cc: Jordan Crouse <jordan.crouse@amd.com>
> > Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
>
> Acked-by: Jordan Crouse <jordan.crouse@amd.com>
>
> Anything in the cache is suspect - turning on coherency is the best plan
> to be rock solid.
Patch applied. Thanks.
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: geode: fix not inplace encryption
2007-11-10 11:39 ` Herbert Xu
@ 2007-11-10 20:58 ` Sebastian Siewior
2007-11-11 11:05 ` Herbert Xu
0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Siewior @ 2007-11-10 20:58 UTC (permalink / raw)
To: Herbert Xu; +Cc: Jordan Crouse, linux-crypto, stable
* Herbert Xu | 2007-11-10 19:39:14 [+0800]:
>On Tue, Nov 06, 2007 at 02:30:40PM -0700, Jordan Crouse wrote:
>> On 06/11/07 21:01 +0100, Sebastian Siewior wrote:
>> > Currently the Geode AES module fails to encrypt or decrypt if
>> > the coherent bits are not set what is currently the case if the
>> > encryption does not occur inplace. However, the encryption works
>> > on my Geode machine _only_ if the coherent bits are always set.
>> >
>> > Cc: Jordan Crouse <jordan.crouse@amd.com>
>> > Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
>>
>> Acked-by: Jordan Crouse <jordan.crouse@amd.com>
>>
>> Anything in the cache is suspect - turning on coherency is the best plan
>> to be rock solid.
>
>Patch applied. Thanks.
I haven't seen this patch in your crypto tree. Do you think about
pushing this into .24?
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: geode: fix not inplace encryption
2007-11-10 20:58 ` Sebastian Siewior
@ 2007-11-11 11:05 ` Herbert Xu
0 siblings, 0 replies; 5+ messages in thread
From: Herbert Xu @ 2007-11-11 11:05 UTC (permalink / raw)
To: Jordan Crouse, linux-crypto, stable
On Sat, Nov 10, 2007 at 09:58:19PM +0100, Sebastian Siewior wrote:
>
> I haven't seen this patch in your crypto tree. Do you think about
> pushing this into .24?
Yes I'll take care of that.
Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-11 11:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-06 20:01 [PATCH] [crypto] geode: fix not inplace encryption Sebastian Siewior
2007-11-06 21:30 ` Jordan Crouse
2007-11-10 11:39 ` Herbert Xu
2007-11-10 20:58 ` Sebastian Siewior
2007-11-11 11:05 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox