diff options
| author | Matthew Garrett <matthew.garrett@nebula.com> | 2013-10-03 13:19:32 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-10-04 11:51:09 -0400 |
| commit | 9107ff9046dc09e8afdb89e86ce588edb3f4a642 (patch) | |
| tree | 23dbc103ff77c4b098c05dd5125a9ddc2c327350 /Cryptlib/Hmac/CryptHmacSha1.c | |
| parent | 16c55f99e872fe52a22336ccb4f09f35d33b2ffa (diff) | |
| download | efi-boot-shim-9107ff9046dc09e8afdb89e86ce588edb3f4a642.tar.gz efi-boot-shim-9107ff9046dc09e8afdb89e86ce588edb3f4a642.zip | |
Update to current Tiano Cryptlib
Diffstat (limited to 'Cryptlib/Hmac/CryptHmacSha1.c')
| -rw-r--r-- | Cryptlib/Hmac/CryptHmacSha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cryptlib/Hmac/CryptHmacSha1.c b/Cryptlib/Hmac/CryptHmacSha1.c index 58da2f3a..881d26cf 100644 --- a/Cryptlib/Hmac/CryptHmacSha1.c +++ b/Cryptlib/Hmac/CryptHmacSha1.c @@ -30,7 +30,7 @@ HmacSha1GetContextSize ( //
// Retrieves the OpenSSL HMAC-SHA1 Context Size
//
- return (UINTN)(sizeof (HMAC_CTX));
+ return (UINTN) (sizeof (HMAC_CTX));
}
/**
@@ -58,7 +58,7 @@ HmacSha1Init ( //
// Check input parameters.
//
- if (HmacSha1Context == NULL) {
+ if (HmacSha1Context == NULL || KeySize > INT_MAX) {
return FALSE;
}
|
