Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17428
b: refs/heads/master
c: 827c391
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 9, 2006
1 parent 6854026 commit df7dc8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: fa9b98fdab5b57ecb4dd3d6c2489e262af458c44
refs/heads/master: 827c3911d8551842900f44c9a139382bcae68e6e
5 changes: 3 additions & 2 deletions trunk/crypto/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ static unsigned int cbc_process_decrypt(const struct cipher_desc *desc,
struct crypto_tfm *tfm = desc->tfm;
void (*xor)(u8 *, const u8 *) = tfm->crt_u.cipher.cit_xor_block;
int bsize = crypto_tfm_alg_blocksize(tfm);
unsigned long alignmask = crypto_tfm_alg_alignmask(desc->tfm);

u8 stack[src == dst ? bsize : 0];
u8 *buf = stack;
u8 stack[src == dst ? bsize + alignmask : 0];
u8 *buf = (u8 *)ALIGN((unsigned long)stack, alignmask + 1);
u8 **dst_p = src == dst ? &buf : &dst;

void (*fn)(void *, u8 *, const u8 *) = desc->crfn;
Expand Down

0 comments on commit df7dc8f

Please sign in to comment.