Branch Coverage

inc/CryptX_Stream_Salsa20.xs.inc
Criterion Covered Total %
branch 10 26 38.4


line true false branch
13 0 578 if (!SvPOK(key)) croak("FATAL: key must be string/buffer scalar");
14 0 578 if (!SvPOK(nonce)) croak("FATAL: nonce must be string/buffer scalar");
15 578 0 k = (unsigned char *)SvPVbyte(key, k_len);
16 578 0 iv = (unsigned char *)SvPVbyte(nonce, iv_len);
19 0 578 if (!RETVAL) croak("FATAL: Newz failed");
22 0 578 if (rv != CRYPT_OK) {
28 0 578 if (rv != CRYPT_OK) {
46 0 0 if (!RETVAL) croak("FATAL: Newz failed");
58 0 0 if (out_len == 0) {
67 0 0 if (rv != CRYPT_OK) {
84 578 0 in_data = (unsigned char *)SvPVbyte(data, in_data_len);
85 0 578 if (in_data_len == 0) {
94 0 578 if (rv != CRYPT_OK) {