Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-12-15 22:44:19 +0300
committerAdam Langley <agl@google.com>2015-12-15 22:46:39 +0300
commit756ad173371b9862a78bdd69549e739fedd5636b (patch)
treed80b2dc2b6a60d8ed4d8f4dee40034755901097e /crypto/rsa
parent1634a334955ac07d4ee2c13a2efb420d4a406961 (diff)
Initialize |one_index| in OAEP padding check.
This was a mistake in https://boringssl-review.googlesource.com/6611. Change-Id: Ifb5c52cc7571b6f1ada4af9b46eab1f9b080b4f6 Reviewed-on: https://boringssl-review.googlesource.com/6730 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/rsa')
-rw-r--r--crypto/rsa/padding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/padding.c b/crypto/rsa/padding.c
index 40542923..274c1135 100644
--- a/crypto/rsa/padding.c
+++ b/crypto/rsa/padding.c
@@ -402,7 +402,7 @@ int RSA_padding_check_PKCS1_OAEP_mgf1(uint8_t *to, unsigned tlen,
const uint8_t *from, unsigned flen,
const uint8_t *param, unsigned plen,
const EVP_MD *md, const EVP_MD *mgf1md) {
- unsigned i, dblen, mlen = -1, mdlen, bad, looking_for_one_byte, one_index;
+ unsigned i, dblen, mlen = -1, mdlen, bad, looking_for_one_byte, one_index = 0;
const uint8_t *maskeddb, *maskedseed;
uint8_t *db = NULL, seed[EVP_MAX_MD_SIZE], phash[EVP_MAX_MD_SIZE];