Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322639
b: refs/heads/master
c: bc01637
h: refs/heads/master
i:
  322637: 2cbc460
  322635: fa71cee
  322631: f7d9355
  322623: 8b6359d
v: v3
  • Loading branch information
Dmitry Kasatkin authored and Linus Torvalds committed Sep 13, 2012
1 parent 88772f1 commit 5868b8e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 8507876aaada8a2cf68ebccdf1d056465dd1fc11
refs/heads/master: bc01637a80f5b670bd70a0279d3f93fa8de1c96d
6 changes: 4 additions & 2 deletions trunk/lib/digsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ static int digsig_verify_rsa(struct key *key,
memcpy(out1 + head, p, l);

err = pkcs_1_v1_5_decode_emsa(out1, len, mblen, out2, &len);
if (err)
goto err;

if (!err && len == hlen)
err = memcmp(out2, h, hlen);
if (len != hlen || memcmp(out2, h, hlen))
err = -EINVAL;

err:
mpi_free(in);
Expand Down

0 comments on commit 5868b8e

Please sign in to comment.