blib/lib/Authen/Passphrase/Scrypt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 11 | 16 | 68.7 |
line | true | false | branch |
---|---|---|---|
41 | 1 | 1 | unless defined $self->logN |
42 | 1 | 1 | unless defined $self->r |
43 | 2 | 0 | unless defined $self->p |
44 | 0 | 2 | unless defined $self->passphrase |
45 | 1 | 1 | unless $self->salt |
57 | 0 | 1 | unless $rfc2307 =~ m[^{SCRYPT}([A-Za-z0-9+/]{128})$]u |
61 | 0 | 1 | unless $scrypt eq 'scrypt' |
62 | 0 | 1 | unless $cksum eq truncated_sha256(substr($data, 0, 48)) |