line |
true |
false |
branch |
77
|
1978 |
0 |
if (NULL == P || NULL == S) { |
83
|
15824 |
1978 |
for (i = 0; i < 8; ++i) { |
94
|
1978 |
0 |
if (S == NULL) { |
98
|
0 |
1978 |
if ((outlen == 0) || (outlen > BLAKE2B_OUTBYTES)) { |
123
|
0 |
0 |
if (S == NULL) { |
127
|
0 |
0 |
if ((outlen == 0) || (outlen > BLAKE2B_OUTBYTES)) { |
132
|
0 |
0 |
if ((key == 0) || (keylen == 0) || (keylen > BLAKE2B_KEYBYTES)) { |
|
0 |
0 |
if ((key == 0) || (keylen == 0) || (keylen > BLAKE2B_KEYBYTES)) { |
150
|
0 |
0 |
if (blake2b_init_param(S, &P) < 0) { |
171
|
35232 |
2202 |
for (i = 0; i < 16; ++i) { |
175
|
17616 |
2202 |
for (i = 0; i < 8; ++i) { |
212
|
26424 |
2202 |
for (r = 0; r < 12; ++r) { |
216
|
17616 |
2202 |
for (i = 0; i < 8; ++i) { |
227
|
2376 |
0 |
if (inlen == 0) { |
232
|
2376 |
0 |
if (S == NULL || in == NULL) { |
237
|
2376 |
0 |
if (S->f[0] != 0) { |
241
|
28 |
2348 |
if (S->buflen + inlen > BLAKE2B_BLOCKBYTES) { |
252
|
196 |
28 |
while (inlen > BLAKE2B_BLOCKBYTES) { |
269
|
1978 |
0 |
if (S == NULL || out == NULL || outlen < S->outlen) { |
|
1978 |
0 |
if (S == NULL || out == NULL || outlen < S->outlen) { |
274
|
1978 |
0 |
if (S->f[0] != 0) { |
283
|
15824 |
1978 |
for (i = 0; i < 8; ++i) { /* Output full hash to temp buffer */ |
300
|
1860 |
0 |
if (NULL == in && inlen > 0) { |
304
|
1860 |
0 |
if (NULL == out || outlen == 0 || outlen > BLAKE2B_OUTBYTES) { |
|
1860 |
0 |
if (NULL == out || outlen == 0 || outlen > BLAKE2B_OUTBYTES) { |
308
|
1860 |
0 |
if ((NULL == key && keylen > 0) || keylen > BLAKE2B_KEYBYTES) { |
|
1860 |
0 |
if ((NULL == key && keylen > 0) || keylen > BLAKE2B_KEYBYTES) { |
312
|
0 |
1860 |
if (keylen > 0) { |
313
|
0 |
0 |
if (blake2b_init_key(&S, outlen, key, keylen) < 0) { |
317
|
1860 |
0 |
if (blake2b_init(&S, outlen) < 0) { |
322
|
1860 |
0 |
if (blake2b_update(&S, in, inlen) < 0) { |
339
|
90 |
0 |
if (outlen > UINT32_MAX) { |
354
|
28 |
62 |
if (outlen <= BLAKE2B_OUTBYTES) { |
355
|
28 |
0 |
TRY(blake2b_init(&blake_state, outlen)); |
356
|
28 |
0 |
TRY(blake2b_update(&blake_state, outlen_bytes, sizeof(outlen_bytes))); |
357
|
28 |
0 |
TRY(blake2b_update(&blake_state, in, inlen)); |
363
|
62 |
0 |
TRY(blake2b_init(&blake_state, BLAKE2B_OUTBYTES)); |
364
|
62 |
0 |
TRY(blake2b_update(&blake_state, outlen_bytes, sizeof(outlen_bytes))); |
365
|
62 |
0 |
TRY(blake2b_update(&blake_state, in, inlen)); |
366
|
62 |
0 |
TRY(blake2b_final(&blake_state, out_buffer, BLAKE2B_OUTBYTES)); |
371
|
1798 |
62 |
while (toproduce > BLAKE2B_OUTBYTES) { |
373
|
1798 |
0 |
TRY(blake2b(out_buffer, BLAKE2B_OUTBYTES, in_buffer, |
381
|
62 |
0 |
TRY(blake2b(out_buffer, toproduce, in_buffer, BLAKE2B_OUTBYTES, NULL, |