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()
92 std::unique_ptr<crypto::SecureHash> ctx1( in TEST()
93 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
[all …]
Dsecure_hash.h20 class CRYPTO_EXPORT SecureHash {
25 virtual ~SecureHash() {} in ~SecureHash()
27 static std::unique_ptr<SecureHash> Create(Algorithm type);
36 virtual std::unique_ptr<SecureHash> Clone() const = 0;
39 SecureHash() {} in SecureHash() function
42 DISALLOW_COPY_AND_ASSIGN(SecureHash);
Dsecure_hash.cc24 class SecureHashSHA256 : public SecureHash {
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()