| 64 | } |
| 65 | |
| 66 | Algorithm algorithmFromString(QString type) |
| 67 | { |
| 68 | if (type == "md4") |
| 69 | return Algorithm::Md4; |
| 70 | if (type == "md5") |
| 71 | return Algorithm::Md5; |
| 72 | if (type == "sha1") |
| 73 | return Algorithm::Sha1; |
| 74 | if (type == "sha256") |
| 75 | return Algorithm::Sha256; |
| 76 | if (type == "sha512") |
| 77 | return Algorithm::Sha512; |
| 78 | if (type == "murmur2") |
| 79 | return Algorithm::Murmur2; |
| 80 | return Algorithm::Unknown; |
| 81 | } |
| 82 | |
| 83 | QString hash(QIODevice* device, Algorithm type) |
| 84 | { |
no outgoing calls
no test coverage detected