line |
true |
false |
branch |
79
|
0 |
0 |
for (keyIter = 1; (uint16_t) (MD5_HASH_SIZE * keyIter) < outLen; ) |
83
|
0 |
0 |
if ((rc = psHmacMd5(key, keyLen, text, textLen, a, |
88
|
0 |
0 |
if (hmacKeyLen != keyLen) |
95
|
0 |
0 |
psAssert(keyLen > 64); |
100
|
0 |
0 |
for (i = 0; i < keyIter; i++) |
102
|
0 |
0 |
if ((rc = psHmacMd5Init(&ctx, key, keyLen)) < 0) |
109
|
0 |
0 |
if (i == keyIter - 1) |
116
|
0 |
0 |
if ((rc = psHmacMd5(key, keyLen, a, MD5_HASH_SIZE, a, |
128
|
0 |
0 |
if (rc < 0) |
150
|
0 |
0 |
for (keyIter = 1; (uint16_t) (SHA1_HASH_SIZE * keyIter) < outLen; ) |
154
|
0 |
0 |
if ((rc = psHmacSha1(key, keyLen, text, textLen, a, |
159
|
0 |
0 |
if (hmacKeyLen != keyLen) |
166
|
0 |
0 |
psAssert(keyLen > 64); |
171
|
0 |
0 |
for (i = 0; i < keyIter; i++) |
173
|
0 |
0 |
if ((rc = psHmacSha1Init(&ctx, key, keyLen)) < 0) |
180
|
0 |
0 |
if (i == keyIter - 1) |
188
|
0 |
0 |
if ((rc = psHmacSha1(key, keyLen, a, SHA1_HASH_SIZE, a, |
200
|
0 |
0 |
if (rc < 0) |
221
|
0 |
0 |
psAssert(outLen <= SSL_MAX_KEY_BLOCK_SIZE); |
226
|
0 |
0 |
if ((rc = pMd5(s1, sLen, seed, seedLen, md5out, outLen)) < 0) |
230
|
0 |
0 |
if ((rc = pSha1(s2, sLen, seed, seedLen, sha1out, outLen)) < 0) |
234
|
0 |
0 |
for (i = 0; i < outLen; i++) |
271
|
8460 |
12 |
if (flags & CRYPTO_FLAGS_SHA3) |
274
|
0 |
8460 |
if ((rc = psHmacSha384(key, keyLen, text, textLen, a, |
285
|
0 |
12 |
if ((rc = psHmacSha256(key, keyLen, text, textLen, a, |
291
|
2128 |
8472 |
for (keyIter = 1; (uint16_t) (hashSize * keyIter) < outLen; ) |
295
|
0 |
8472 |
if (hmacKeyLen != keyLen) |
302
|
0 |
0 |
psAssert(keyLen > 64); |
307
|
10600 |
8472 |
for (i = 0; i < keyIter; i++) |
310
|
10576 |
24 |
if (flags & CRYPTO_FLAGS_SHA3) |
312
|
0 |
10576 |
if ((rc = psHmacSha384Init(&u.sha384, key, keyLen)) < 0) |
323
|
0 |
24 |
if ((rc = psHmacSha256Init(&u.sha256, key, keyLen)) < 0) |
331
|
8472 |
2128 |
if (i == keyIter - 1) |
340
|
2116 |
12 |
if (flags & CRYPTO_FLAGS_SHA3) |
342
|
0 |
2116 |
if ((rc = psHmacSha384(key, keyLen, a, hashSize, a, |
351
|
0 |
12 |
if ((rc = psHmacSha256(key, keyLen, a, hashSize, a, |
364
|
0 |
8472 |
if (rc < 0) |
383
|
0 |
8472 |
psAssert(outLen <= SSL_MAX_KEY_BLOCK_SIZE); |
385
|
0 |
8472 |
if ((rc = pSha2(sec, secLen, seed, seedLen, sha2out, outLen, flags)) < 0) |
391
|
305040 |
8472 |
for (i = 0; i < outLen; i++) |