Branch Coverage

Twofish2.xs
Criterion Covered Total %
branch 19 32 59.3


line true false branch
46 0 41 if (!SvPOK (key))
51 28 13 if (keysize != 16 && keysize != 24 && keysize != 32)
15 13 if (keysize != 16 && keysize != 24 && keysize != 32)
0 15 if (keysize != 16 && keysize != 24 && keysize != 32)
53 2 39 if (mode != MODE_ECB && mode != MODE_CBC && mode != MODE_CFB1)
0 2 if (mode != MODE_ECB && mode != MODE_CBC && mode != MODE_CFB1)
0 0 if (mode != MODE_ECB && mode != MODE_CBC && mode != MODE_CFB1)
58 41 0 if (makeKey (&RETVAL->ki, DIR_ENCRYPT, keysize*8, SvPV_nolen(key)) != TRUE)
0 41 if (makeKey (&RETVAL->ki, DIR_ENCRYPT, keysize*8, SvPV_nolen(key)) != TRUE)
60 0 41 if (cipherInit (&RETVAL->ci, mode, 0) != TRUE) /* no IV supported (yet) */
76 82 0 void *rawbytes = SvPV(data,size);
78 82 0 if (size)
80 0 82 if (size % (BLOCK_SIZE >> 3))
88 41 41 if ((ix ? blockDecrypt : blockEncrypt)
82 0 if ((ix ? blockDecrypt : blockEncrypt)
0 82 if ((ix ? blockDecrypt : blockEncrypt)