Branch Coverage

inc/matrixssl-3-9-3-open/crypto/symmetric/rc2.c
Criterion Covered Total %
branch 32 64 50.0


line true false branch
75 14 0 if (IV == NULL || key == NULL || ctx == NULL)
14 0 if (IV == NULL || key == NULL || ctx == NULL)
0 14 if (IV == NULL || key == NULL || ctx == NULL)
81 0 14 if ((err = psRc2InitKey(key, keylen, 0, &ctx->key)) != PS_SUCCESS)
86 112 14 for (x = 0; x < RC2_BLOCKLEN; x++)
102 0 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
0 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
0 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
0 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
108 0 0 for (i = 0; i < len; i += RC2_BLOCKLEN)
111 0 0 for (x = 0; x < RC2_BLOCKLEN; x++)
118 0 0 for (x = 0; x < RC2_BLOCKLEN; x++)
139 14 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
14 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
14 0 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
0 14 if (pt == NULL || ct == NULL || ctx == NULL || (len & 0x7) != 0)
144 1924 14 for (i = 0; i < len; i += RC2_BLOCKLEN)
149 15392 1924 for (x = 0; x < RC2_BLOCKLEN; x++)
157 15392 1924 for (x = 0; x < RC2_BLOCKLEN; x++)
191 0 14 if (num_rounds != 0 && num_rounds != 16)
0 0 if (num_rounds != 0 && num_rounds != 16)
197 70 14 for (i = 0; i < (int32) keylen; i++)
203 14 0 if (keylen < 128)
205 1722 14 for (i = keylen; i < 128; i++)
216 1722 14 for (i = 127 - T8; i >= 0; i--)
222 896 14 for (i = 0; i < 64; i++)
250 0 0 for (i = 0; i < 16; i++)
264 0 0 if (i == 4 || i == 10)
0 0 if (i == 4 || i == 10)
305 30784 1924 for (i = 15; i >= 0; i--)
307 28860 1924 if (i == 4 || i == 10)
1924 26936 if (i == 4 || i == 10)