| line |
true |
false |
branch |
|
29
|
0 |
0 |
return uppercase ? "Argon2d" : "argon2d"; |
|
31
|
27 |
0 |
return uppercase ? "Argon2i" : "argon2i"; |
|
33
|
2 |
0 |
return uppercase ? "Argon2id" : "argon2id"; |
|
45
|
28 |
0 |
if (ARGON2_OK != result) { |
|
49
|
28 |
0 |
if (Argon2_d != type && Argon2_i != type && Argon2_id != type) { |
|
57
|
0 |
28 |
if (memory_blocks < 2 * ARGON2_SYNC_POINTS * context->lanes) { |
|
75
|
0 |
28 |
if (instance.threads > instance.lanes) { |
|
84
|
28 |
0 |
if (ARGON2_OK != result) { |
|
91
|
28 |
0 |
if (ARGON2_OK != result) { |
|
111
|
19 |
0 |
if (pwdlen > ARGON2_MAX_PWD_LENGTH) { |
|
115
|
19 |
0 |
if (saltlen > ARGON2_MAX_SALT_LENGTH) { |
|
119
|
19 |
0 |
if (hashlen > ARGON2_MAX_OUTLEN) { |
|
123
|
19 |
0 |
if (hashlen < ARGON2_MIN_OUTLEN) { |
|
128
|
19 |
0 |
if (!out) { |
|
153
|
0 |
19 |
if (result != ARGON2_OK) { |
|
160
|
9 |
10 |
if (hash) { |
|
165
|
10 |
9 |
if (encoded && encodedlen) { |
|
166
|
0 |
10 |
if (encode_string(encoded, encodedlen, &context, type) != ARGON2_OK) { |
|
243
|
288 |
9 |
for (i = 0U; i < len; i++) { |
|
260
|
9 |
0 |
if (pwdlen > ARGON2_MAX_PWD_LENGTH) { |
|
264
|
9 |
0 |
if (encoded == NULL) { |
|
269
|
9 |
0 |
if (encoded_len > UINT32_MAX) { |
|
281
|
9 |
0 |
if (!ctx.salt || !ctx.out) { |
|
|
9 |
0 |
if (!ctx.salt || !ctx.out) { |
|
290
|
9 |
0 |
if (ret != ARGON2_OK) { |
|
297
|
9 |
0 |
if (!ctx.out) { |
|
345
|
9 |
0 |
if (ret != ARGON2_OK) { |
|
349
|
9 |
0 |
if (argon2_compare((uint8_t *)hash, context->out, context->outlen)) { |