commit | cae5fa613a947288262a63a2b89d1ffbb633f673 | [log] [tgz] |
---|---|---|
author | Gaurav Shah <gauravsh@google.com> | Sun Feb 28 20:02:29 2010 -0800 |
committer | Gaurav Shah <gauravsh@google.com> | Sun Feb 28 20:02:29 2010 -0800 |
tree | f2350364517da32675c410b969f8f7702f951589 | |
parent | f67bcaa9a6d8ac8c31cb5650405f99c475c9ad5e [diff] [blame] |
Refactor siglen_map[] to store key size in bytes instead of 32-bit words. Review URL: http://codereview.chromium.org/660261
diff --git a/crypto/rsa.c b/crypto/rsa.c index 372b73d..d23be89 100644 --- a/crypto/rsa.c +++ b/crypto/rsa.c
@@ -147,7 +147,7 @@ return 0; } - if (key->len != siglen_map[sig_type]) { + if (key->len != siglen_map[sig_type] / sizeof(uint32_t)) { fprintf(stderr, "Wrong key passed in!\n"); return 0; }