Lines Matching full:crypto
5 #include "crypto/secure_hash.h"
12 #include "crypto/sha2.h"
27 uint8 output3[crypto::kSHA256Length];
29 scoped_ptr<crypto::SecureHash> ctx(crypto::SecureHash::Create(
30 crypto::SecureHash::SHA256));
35 for (size_t i = 0; i < crypto::kSHA256Length; i++)
39 // Save the crypto state mid-stream, and create another instance with the
49 uint8 output1[crypto::kSHA256Length];
50 uint8 output2[crypto::kSHA256Length];
52 scoped_ptr<crypto::SecureHash> ctx1(crypto::SecureHash::Create(
53 crypto::SecureHash::SHA256));
54 scoped_ptr<crypto::SecureHash> ctx2(crypto::SecureHash::Create(
55 crypto::SecureHash::SHA256));
74 EXPECT_EQ(0, memcmp(output1, output2, crypto::kSHA256Length));