Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132633
b: refs/heads/master
c: 0da0a42
h: refs/heads/master
i:
  132631: 5be47ce
v: v3
  • Loading branch information
Mimi Zohar authored and James Morris committed Feb 20, 2009
1 parent 912aab9 commit aa3453a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 251a2a958b0455d11b711aeeb57cabad66259461
refs/heads/master: 0da0a420bb542b13ebae142109a9d2045ade0cb1
4 changes: 2 additions & 2 deletions trunk/security/integrity/ima/ima_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ int ima_calc_hash(struct file *file, char *digest)
break;
}
offset += rbuf_len;
sg_set_buf(sg, rbuf, rbuf_len);
sg_init_one(sg, rbuf, rbuf_len);

rc = crypto_hash_update(&desc, sg, rbuf_len);
if (rc)
Expand All @@ -95,7 +95,7 @@ int ima_calc_template_hash(int template_len, void *template, char *digest)
if (rc != 0)
return rc;

sg_set_buf(sg, template, template_len);
sg_init_one(sg, template, template_len);
rc = crypto_hash_update(&desc, sg, template_len);
if (!rc)
rc = crypto_hash_final(&desc, digest);
Expand Down

0 comments on commit aa3453a

Please sign in to comment.