Branch Coverage

inc/CryptX_KeyDerivation.xs.inc
Criterion Covered Total %
branch 35 66 53.0


line true false branch
16 0 1 if (output_len == 0) {
21 0 1 if (id == -1) croak("FATAL: find_hash failed for '%s'", hash_name);
23 1 0 password_ptr = (unsigned char *)SvPVbyte(password, password_len);
24 1 0 salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
25 0 1 if (salt_len < 8) croak("FATAL: salt_len has to be 8");
33 0 1 if (rv != CRYPT_OK) {
54 0 5 if (output_len == 0) {
59 0 5 if (id == -1) croak("FATAL: find_hash failed for '%s'", hash_name);
61 5 0 password_ptr = (unsigned char *)SvPVbyte(password, password_len);
62 5 0 salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
70 0 5 if (rv != CRYPT_OK) {
91 0 7 if (id == -1) croak("FATAL: find_hash failed for '%s'", hash_name);
93 7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
94 6 1 if (SvPOK(salt)) salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
6 0 if (SvPOK(salt)) salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
98 0 7 if (rv != CRYPT_OK) croak("FATAL: hkdf_extract process failed: %s", error_to_string(rv));
114 0 7 if (output_len == 0) {
119 0 7 if (id == -1) croak("FATAL: find_hash failed for '%s'", hash_name);
121 7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
122 7 0 if (SvPOK(info)) info_ptr = (unsigned char *)SvPVbyte(info, info_len);
7 0 if (SvPOK(info)) info_ptr = (unsigned char *)SvPVbyte(info, info_len);
130 0 7 if (rv != CRYPT_OK) {
149 0 7 if (output_len == 0) {
154 0 7 if (id == -1) croak("FATAL: find_hash failed for '%s'", hash_name);
156 7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
7 0 if (SvPOK(in)) in_ptr = (unsigned char *)SvPVbyte(in, in_len);
157 7 0 if (SvPOK(info)) info_ptr = (unsigned char *)SvPVbyte(info, info_len);
7 0 if (SvPOK(info)) info_ptr = (unsigned char *)SvPVbyte(info, info_len);
158 6 1 if (SvPOK(salt)) salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
6 0 if (SvPOK(salt)) salt_ptr = (unsigned char *)SvPVbyte(salt, salt_len);
166 0 7 if (rv != CRYPT_OK) {