All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.