Branch Coverage

inc/CryptX_Stream_ChaCha.xs.inc
Criterion Covered Total %
branch 11 32 34.3


line true false branch
13 0 2 if (!SvPOK(key)) croak("FATAL: key must be string/buffer scalar");
14 0 2 if (!SvPOK(nonce)) croak("FATAL: nonce must be string/buffer scalar");
15 2 0 k = (unsigned char *) SvPVbyte(key, k_len);
16 2 0 iv = (unsigned char *) SvPVbyte(nonce, iv_len);
19 0 2 if (!RETVAL) croak("FATAL: Newz failed");
22 0 2 if (rv != CRYPT_OK) {
27 2 0 if (iv_len == 12) {
29 0 2 if (rv != CRYPT_OK) {
34 0 0 else if (iv_len == 8) {
36 0 0 if (rv != CRYPT_OK) {
59 0 0 if (!RETVAL) croak("FATAL: Newz failed");
71 0 0 if (out_len == 0) {
80 0 0 if (rv != CRYPT_OK) {
97 2 0 in_data = (unsigned char *)SvPVbyte(data, in_data_len);
98 0 2 if (in_data_len == 0) {
107 0 2 if (rv != CRYPT_OK) {