Home
last modified time | relevance | path

Searched refs:SecureHash (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/crypto/
Dsecure_hash_unittest.cc26 std::unique_ptr<crypto::SecureHash> ctx( in TEST()
27 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
53 std::unique_ptr<crypto::SecureHash> ctx1( in TEST()
54 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
57 std::unique_ptr<crypto::SecureHash> ctx2(ctx1->Clone()); in TEST()
58 std::unique_ptr<crypto::SecureHash> ctx3(ctx2->Clone()); in TEST()
79 std::unique_ptr<crypto::SecureHash> ctx( in TEST()
80 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
Dsecure_hash.h19 class CRYPTO_EXPORT SecureHash {
24 virtual ~SecureHash() {} in ~SecureHash()
26 static std::unique_ptr<SecureHash> Create(Algorithm type);
35 virtual std::unique_ptr<SecureHash> Clone() const = 0;
38 SecureHash() {} in SecureHash() function
41 DISALLOW_COPY_AND_ASSIGN(SecureHash);
Dsecure_hash.cc24 class SecureHashSHA256 : public SecureHash {
30 SecureHashSHA256(const SecureHashSHA256& other) : SecureHash() { in SecureHashSHA256()
48 std::unique_ptr<SecureHash> Clone() const override { in Clone()
60 std::unique_ptr<SecureHash> SecureHash::Create(Algorithm algorithm) { in Create()
Dsha2.cc17 std::unique_ptr<SecureHash> ctx(SecureHash::Create(SecureHash::SHA256)); in SHA256HashString()