Skip to content

Commit

Permalink
crypto: s390 - Fix sha build failure
Browse files Browse the repository at this point in the history
Use struct s390_sha_ctx instead of sha1/sha256_state struct to fix
s390 crypto build break.

Signed-off-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Sachin Sant authored and Herbert Xu committed Jul 16, 2009
1 parent e9b25f1 commit 2a549c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/s390/crypto/sha1_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static int sha1_export(struct shash_desc *desc, void *out)

static int sha1_import(struct shash_desc *desc, const u8 *in)
{
struct sha1_state *sctx = shash_desc_ctx(desc);
struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
struct sha1_state *ictx = in;

sctx->count = ictx->count;
Expand Down
2 changes: 1 addition & 1 deletion arch/s390/crypto/sha256_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static int sha256_export(struct shash_desc *desc, void *out)

static int sha256_import(struct shash_desc *desc, const u8 *in)
{
struct sha256_state *sctx = shash_desc_ctx(desc);
struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
struct sha256_state *ictx = in;

sctx->count = ictx->count;
Expand Down

0 comments on commit 2a549c3

Please sign in to comment.