Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30570
b: refs/heads/master
c: 4360010
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Jun 26, 2006
1 parent 28f7566 commit e59bafd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b55ba0303bb59c34fab8e015634018780491614
refs/heads/master: 43600106e32809a4dead79fec67a63e9860e3d5d
23 changes: 12 additions & 11 deletions trunk/arch/s390/crypto/sha1_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ struct crypt_s390_sha1_ctx {
u8 buffer[2 * SHA1_BLOCK_SIZE];
};

static void
sha1_init(void *ctx)
static void sha1_init(void *ctx_arg)
{
static const struct crypt_s390_sha1_ctx initstate = {
.state = {
0x67452301,
0xEFCDAB89,
0x98BADCFE,
0x10325476,
0xC3D2E1F0
},
struct crypt_s390_sha1_ctx *ctx = ctx_arg;
static const u32 initstate[5] = {
0x67452301,
0xEFCDAB89,
0x98BADCFE,
0x10325476,
0xC3D2E1F0
};
memcpy(ctx, &initstate, sizeof(initstate));

ctx->count = 0;
memcpy(ctx->state, &initstate, sizeof(initstate));
ctx->buf_len = 0;
}

static void
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/s390/crypto/sha256_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ static void sha256_init(void *ctx)
sctx->state[6] = 0x1f83d9ab;
sctx->state[7] = 0x5be0cd19;
sctx->count = 0;
memset(sctx->buf, 0, sizeof(sctx->buf));
}

static void sha256_update(void *ctx, const u8 *data, unsigned int len)
Expand Down
1 change: 0 additions & 1 deletion trunk/crypto/sha256.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ static void sha256_init(void *ctx)
sctx->state[6] = H6;
sctx->state[7] = H7;
sctx->count[0] = sctx->count[1] = 0;
memset(sctx->buf, 0, sizeof(sctx->buf));
}

static void sha256_update(void *ctx, const u8 *data, unsigned int len)
Expand Down
2 changes: 0 additions & 2 deletions trunk/crypto/sha512.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ sha512_init(void *ctx)
sctx->state[6] = H6;
sctx->state[7] = H7;
sctx->count[0] = sctx->count[1] = sctx->count[2] = sctx->count[3] = 0;
memset(sctx->buf, 0, sizeof(sctx->buf));
}

static void
Expand All @@ -189,7 +188,6 @@ sha384_init(void *ctx)
sctx->state[6] = HP6;
sctx->state[7] = HP7;
sctx->count[0] = sctx->count[1] = sctx->count[2] = sctx->count[3] = 0;
memset(sctx->buf, 0, sizeof(sctx->buf));
}

static void
Expand Down
1 change: 0 additions & 1 deletion trunk/crypto/tgr192.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ static void tgr192_init(void *ctx)
{
struct tgr192_ctx *tctx = ctx;

memset (tctx->hash, 0, 64);
tctx->a = 0x0123456789abcdefULL;
tctx->b = 0xfedcba9876543210ULL;
tctx->c = 0xf096a5b4c3b2e187ULL;
Expand Down

0 comments on commit e59bafd

Please sign in to comment.