Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247801
b: refs/heads/master
c: 6ef8450
h: refs/heads/master
i:
  247799: 96d4c47
v: v3
  • Loading branch information
Phil Sutter authored and Herbert Xu committed May 11, 2011
1 parent a6c9a52 commit a23f6f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 7759995c75ae0cbd4c861582908449f6b6208e7a
refs/heads/master: 6ef84509f3d439ed2d43ea40080643efec37f54f
8 changes: 2 additions & 6 deletions trunk/drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ struct mv_req_hash_ctx {
int extra_bytes; /* unprocessed bytes in buffer */
enum hash_op op;
int count_add;
struct scatterlist dummysg;
};

static void compute_aes_dec_key(struct mv_ctx *ctx)
Expand Down Expand Up @@ -482,7 +481,7 @@ static int count_sgs(struct scatterlist *sl, unsigned int total_bytes)
int i = 0;
size_t cur_len;

while (1) {
while (sl) {
cur_len = sl[i].length;
++i;
if (total_bytes > cur_len)
Expand Down Expand Up @@ -711,10 +710,7 @@ static int mv_hash_update(struct ahash_request *req)
static int mv_hash_final(struct ahash_request *req)
{
struct mv_req_hash_ctx *ctx = ahash_request_ctx(req);
/* dummy buffer of 4 bytes */
sg_init_one(&ctx->dummysg, ctx->buffer, 4);
/* I think I'm allowed to do that... */
ahash_request_set_crypt(req, &ctx->dummysg, req->result, 0);

mv_update_hash_req_ctx(ctx, 1, 0);
return mv_handle_req(&req->base);
}
Expand Down

0 comments on commit a23f6f3

Please sign in to comment.