31 #include <libtorrent/sha1_hash.hpp>
49 const QByteArray raw = QByteArray::fromRawData(nativeDigest.data(),
length());
55 return UnderlyingType::size();
70 if (digestString.size() != (
length() * 2))
73 const QByteArray raw = QByteArray::fromHex(digestString.toLatin1());
74 if (raw.size() !=
length())
106 return !(left == right);
static Digest32 fromString(const QString &digestString)
static constexpr int length()
UnderlyingType m_nativeDigest
lt::digest32< N > UnderlyingType
Digest32(const UnderlyingType &nativeDigest)
uint qHash(const Digest32< N > &key, const uint seed)
bool operator==(const Digest32< N > &left, const Digest32< N > &right)
bool operator<(const Digest32< N > &left, const Digest32< N > &right)
bool operator!=(const Digest32< N > &left, const Digest32< N > &right)