Branch Coverage

deps/libgit2/src/util/hash/rfc6234/sha224-256.c
Criterion Covered Total %
branch 0 60 0.0


line true false branch
251 0 0 if (!context) return shaNull;
252 0 0 if (!length) return shaSuccess;
253 0 0 if (!message_array) return shaNull;
254 0 0 if (context->Computed) return context->Corrupted = shaStateError;
255 0 0 if (context->Corrupted) return context->Corrupted;
257 0 0 while (length--) {
261 0 0 if ((SHA224_256AddLength(context, 8) == shaSuccess) &&
0 0 if ((SHA224_256AddLength(context, 8) == shaSuccess) &&
0 0 if ((SHA224_256AddLength(context, 8) == shaSuccess) &&
0 0 if ((SHA224_256AddLength(context, 8) == shaSuccess) &&
307 0 0 if (!context) return shaNull;
308 0 0 if (!length) return shaSuccess;
309 0 0 if (context->Corrupted) return context->Corrupted;
310 0 0 if (context->Computed) return context->Corrupted = shaStateError;
311 0 0 if (length >= 8) return context->Corrupted = shaBadParam;
313 0 0 SHA224_256AddLength(context, length);
0 0 SHA224_256AddLength(context, length);
363 0 0 if (!context) return shaNull;
428 0 0 for (t = t4 = 0; t < 16; t++, t4 += 4)
434 0 0 for (t = 16; t < 64; t++)
447 0 0 for (t = 0; t < 64; t++) {
496 0 0 for (i = 0; i < SHA256_Message_Block_Size; ++i)
536 0 0 if (context->Message_Block_Index >= (SHA256_Message_Block_Size-8)) {
538 0 0 while (context->Message_Block_Index < SHA256_Message_Block_Size)
544 0 0 while (context->Message_Block_Index < (SHA256_Message_Block_Size-8))
588 0 0 if (!context) return shaNull;
589 0 0 if (!Message_Digest) return shaNull;
590 0 0 if (context->Corrupted) return context->Corrupted;
592 0 0 if (!context->Computed)
595 0 0 for (i = 0; i < HashSize; ++i)