| PBKDF2.xs | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 16 | 68.7 |
| line | true | false | branch |
|---|---|---|---|
| 25 | 3 | 7 | if( items > 5 ) |
| 27 | 2 | 8 | if ((md = EVP_get_digestbyname(alg)) == NULL) |
| 30 | 0 | 8 | if ( Newxz(hash, hlen, unsigned char) == NULL ) |
| 34 | 0 | 8 | if (PKCS5_PBKDF2_HMAC(pass, plen, salt, saltlen, iter, md, hlen, hash) != 1) |
| 56 | 1 | 7 | if( items > 6 ) |
| 58 | 0 | 8 | if ((md = EVP_get_digestbyname(alg)) == NULL) |
| 61 | 0 | 8 | if ( Newxz(hash, hlen, unsigned char) == NULL ) |
| 65 | 0 | 8 | if (PKCS5_PBKDF2_HMAC((const char *)pass, passlen, salt, saltlen, iter, md, hlen, hash) != 1) |