summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2010-08-19 13:17:48 -0700
committerRandall Spangler <rspangler@chromium.org>2010-08-19 13:17:48 -0700
commitdfeb025750985e163b227c7c5a6c72be9c99b594 (patch)
treebb6f7ac38bfe72d9d2aa89bc3ab56ef56c6dc4f2 /firmware
parent4bb5e4bad4bb8dc1e0c3210e36f4a21e85acb06a (diff)
downloadvboot-dfeb025750985e163b227c7c5a6c72be9c99b594.tar.gz
Add explicit typecasts so it compiles using MSVC.
BUG=none TEST=make && make runtests Review URL: http://codereview.chromium.org/3184014
Diffstat (limited to 'firmware')
-rw-r--r--firmware/lib/cryptolib/rsa_utility.c6
-rw-r--r--firmware/version.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/lib/cryptolib/rsa_utility.c b/firmware/lib/cryptolib/rsa_utility.c
index 3b82c061..cd127107 100644
--- a/firmware/lib/cryptolib/rsa_utility.c
+++ b/firmware/lib/cryptolib/rsa_utility.c
@@ -11,7 +11,7 @@
int RSAProcessedKeySize(unsigned int algorithm, int* out_size) {
int key_len; /* Key length in bytes. */
- if (algorithm < kNumAlgorithms) {
+ if (algorithm < (unsigned int)kNumAlgorithms) {
key_len = siglen_map[algorithm];
/* Total size needed by a RSAPublicKey structure is =
* 2 * key_len bytes for the n and rr arrays
@@ -85,7 +85,7 @@ int RSAVerifyBinary_f(const uint8_t* key_blob,
int sig_size;
int success;
- if (algorithm >= kNumAlgorithms)
+ if (algorithm >= (unsigned int)kNumAlgorithms)
return 0; /* Invalid algorithm. */
if (!RSAProcessedKeySize(algorithm, &key_size))
return 0;
@@ -124,7 +124,7 @@ int RSAVerifyBinaryWithDigest_f(const uint8_t* key_blob,
int sig_size;
int success;
- if (algorithm >= kNumAlgorithms)
+ if (algorithm >= (unsigned int)kNumAlgorithms)
return 0; /* Invalid algorithm. */
if (!RSAProcessedKeySize(algorithm, &key_size))
return 0;
diff --git a/firmware/version.c b/firmware/version.c
index b45a8000..b75fc3ae 100644
--- a/firmware/version.c
+++ b/firmware/version.c
@@ -1 +1 @@
-char* VbootVersion = "VBOOv=af0b7622";
+char* VbootVersion = "VBOOv=736cf3ee";