Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11402
b: refs/heads/master
c: 6df5b9f
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Oct 30, 2005
1 parent d5a6573 commit f8a4a27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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: 378f058cc49bcda7fa63d3cd86d2f9a0a5188b1c
refs/heads/master: 6df5b9f48dd0e77fa796b9b7d3fde7cc5f1237f2
8 changes: 4 additions & 4 deletions trunk/crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ static void test_cipher(char *algo, int mode, int enc,
static int test_cipher_jiffies(struct crypto_tfm *tfm, int enc, char *p,
int blen, int sec)
{
struct scatterlist sg[8];
struct scatterlist sg[1];
unsigned long start, end;
int bcount;
int ret;

sg_set_buf(&sg[0], p, blen);
sg_set_buf(sg, p, blen);

for (start = jiffies, end = start + sec * HZ, bcount = 0;
time_before(jiffies, end); bcount++) {
Expand All @@ -441,12 +441,12 @@ static int test_cipher_jiffies(struct crypto_tfm *tfm, int enc, char *p,
static int test_cipher_cycles(struct crypto_tfm *tfm, int enc, char *p,
int blen)
{
struct scatterlist sg[8];
struct scatterlist sg[1];
unsigned long cycles = 0;
int ret = 0;
int i;

sg_set_buf(&sg[0], p, blen);
sg_set_buf(sg, p, blen);

local_bh_disable();
local_irq_disable();
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/airo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,9 +1591,9 @@ static void emmh32_setseed(emmh32_context *context, u8 *pkey, int keylen, struct
aes_counter[12] = (u8)(counter >> 24);
counter++;
memcpy (plain, aes_counter, 16);
sg_set_buf(&sg[0], plain, 16);
sg_set_buf(sg, plain, 16);
crypto_cipher_encrypt(tfm, sg, sg, 16);
cipher = kmap(sg[0].page) + sg[0].offset;
cipher = kmap(sg->page) + sg->offset;
for (j=0; (j<16) && (i< (sizeof(context->coeff)/sizeof(context->coeff[0]))); ) {
context->coeff[i++] = ntohl(*(u32 *)&cipher[j]);
j += 4;
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sunrpc/auth_gss/gss_krb5_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ krb5_encrypt(
memcpy(local_iv, iv, crypto_tfm_alg_ivsize(tfm));

memcpy(out, in, length);
sg_set_buf(&sg[0], out, length);
sg_set_buf(sg, out, length);

ret = crypto_cipher_encrypt_iv(tfm, sg, sg, length, local_iv);

Expand Down Expand Up @@ -115,7 +115,7 @@ krb5_decrypt(
memcpy(local_iv,iv, crypto_tfm_alg_ivsize(tfm));

memcpy(out, in, length);
sg_set_buf(&sg[0], out, length);
sg_set_buf(sg, out, length);

ret = crypto_cipher_decrypt_iv(tfm, sg, sg, length, local_iv);

Expand Down

0 comments on commit f8a4a27

Please sign in to comment.