Searched refs:Sha1 (Results 1 – 3 of 3) sorted by relevance
29 Sha1 Sha1::parse (const std::string& str) in parse()36 return Sha1(hash); in parse()39 Sha1 Sha1::compute (size_t size, const void* data) in compute()44 return Sha1(hash); in compute()57 Sha1 Sha1Stream::finalize (void) in finalize()62 return Sha1(hash); in finalize()
36 class Sha1 class39 Sha1 (const deSha1& hash) : m_hash(hash) {} in Sha1() function in de::Sha141 static Sha1 parse (const std::string& str);42 static Sha1 compute (size_t size, const void* data);44 …bool operator== (const Sha1& other) const { return deSha1_equal(&m_hash, &other.m_hash) == DE_TRU… in operator ==()45 bool operator!= (const Sha1& other) const { return !(*this == other); } in operator !=()56 Sha1 finalize (void);
17 std::string Sha1(const std::string& input) { in Sha1() function30 EXPECT_EQ("da39a3ee5e6b4b0d3255bfef95601890afd80709", Sha1("")); in TEST()31 EXPECT_EQ("a9993e364706816aba3e25717850c26c9cd0d89d", Sha1("abc")); in TEST()33 Sha1("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq")); in TEST()35 EXPECT_EQ("34aa973cd4c4daa4f61eeb2bdbad27316534016f", Sha1(a_million_as)); in TEST()