linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] crypto: geode: Don't use tfm->__crt_alg->cra_name directly
@ 2014-05-14  9:40 Marek Vasut
  2014-05-14  9:40 ` [PATCH 2/7] crypto: ccp: " Marek Vasut
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Marek Vasut @ 2014-05-14  9:40 UTC (permalink / raw)
  To: linux-crypto; +Cc: herbert, Marek Vasut

Use a standard accessor instead of directly digging into a structure.

Signed-off-by: Marek Vasut <marex@denx.de>
---
 drivers/crypto/geode-aes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

NOTE: I didn't compile-test those, but the change should not break anything.
      If possible, please test on relevant hardware.

diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 8e482ce..fe538e5 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -255,7 +255,7 @@ geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
 
 static int fallback_init_cip(struct crypto_tfm *tfm)
 {
-	const char *name = tfm->__crt_alg->cra_name;
+	const char *name = crypto_tfm_alg_name(tfm);
 	struct geode_aes_op *op = crypto_tfm_ctx(tfm);
 
 	op->fallback.cip = crypto_alloc_cipher(name, 0,
@@ -365,7 +365,7 @@ geode_cbc_encrypt(struct blkcipher_desc *desc,
 
 static int fallback_init_blk(struct crypto_tfm *tfm)
 {
-	const char *name = tfm->__crt_alg->cra_name;
+	const char *name = crypto_tfm_alg_name(tfm);
 	struct geode_aes_op *op = crypto_tfm_ctx(tfm);
 
 	op->fallback.blk = crypto_alloc_blkcipher(name, 0,
-- 
2.0.0.rc0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-22 13:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14  9:40 [PATCH 1/7] crypto: geode: Don't use tfm->__crt_alg->cra_name directly Marek Vasut
2014-05-14  9:40 ` [PATCH 2/7] crypto: ccp: " Marek Vasut
2014-05-14  9:40 ` [PATCH 3/7] crypto: cesa: " Marek Vasut
2014-05-14  9:41 ` [PATCH 4/7] crypto: dcp: " Marek Vasut
2014-05-14  9:41 ` [PATCH 5/7] crypto: n2: " Marek Vasut
2014-05-14  9:41 ` [PATCH 6/7] crypto: padlock: " Marek Vasut
2014-05-14  9:41 ` [PATCH 7/7] crypto: sahara: " Marek Vasut
2014-05-22 13:09 ` [PATCH 1/7] crypto: geode: " Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).