diff options
| author | Matthew Garrett <matthew.garrett@nebula.com> | 2013-10-04 11:51:09 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-04 11:51:09 -0400 |
| commit | 36d13930ee66e12d581a259b2f49b65eed41daeb (patch) | |
| tree | 23dbc103ff77c4b098c05dd5125a9ddc2c327350 /Cryptlib/Hmac/CryptHmacMd5.c | |
| parent | 4bf7fb2ef1ed13251efad3928d41e5eaf2f4aaa4 (diff) | |
| download | efi-boot-shim-36d13930ee66e12d581a259b2f49b65eed41daeb.tar.gz efi-boot-shim-36d13930ee66e12d581a259b2f49b65eed41daeb.zip | |
Update to current Tiano Cryptlib
Diffstat (limited to 'Cryptlib/Hmac/CryptHmacMd5.c')
| -rw-r--r-- | Cryptlib/Hmac/CryptHmacMd5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cryptlib/Hmac/CryptHmacMd5.c b/Cryptlib/Hmac/CryptHmacMd5.c index 0cdab7ac..693cd322 100644 --- a/Cryptlib/Hmac/CryptHmacMd5.c +++ b/Cryptlib/Hmac/CryptHmacMd5.c @@ -30,7 +30,7 @@ HmacMd5GetContextSize ( //
// Retrieves the OpenSSL HMAC-MD5 Context Size
//
- return (UINTN)(sizeof (HMAC_CTX));
+ return (UINTN) (sizeof (HMAC_CTX));
}
/**
@@ -58,7 +58,7 @@ HmacMd5Init ( //
// Check input parameters.
//
- if (HmacMd5Context == NULL) {
+ if (HmacMd5Context == NULL || KeySize > INT_MAX) {
return FALSE;
}
|
