• Home
  • Raw
  • Download

Lines Matching refs:crypto

24   uint8_t output3[crypto::kSHA256Length];  in TEST()
26 std::unique_ptr<crypto::SecureHash> ctx( in TEST()
27 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
32 for (size_t i = 0; i < crypto::kSHA256Length; i++) in TEST()
40 const uint8_t kExpectedHashOfInput1[crypto::kSHA256Length] = { in TEST()
44 const uint8_t kExpectedHashOfInput1And2[crypto::kSHA256Length] = { in TEST()
49 uint8_t output1[crypto::kSHA256Length]; in TEST()
50 uint8_t output2[crypto::kSHA256Length]; in TEST()
51 uint8_t output3[crypto::kSHA256Length]; 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()
69 EXPECT_EQ(0, memcmp(output1, output2, crypto::kSHA256Length)); in TEST()
71 memcmp(output1, kExpectedHashOfInput1And2, crypto::kSHA256Length)); in TEST()
75 EXPECT_EQ(0, memcmp(output3, kExpectedHashOfInput1, crypto::kSHA256Length)); in TEST()
79 std::unique_ptr<crypto::SecureHash> ctx( in TEST()
80 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
81 EXPECT_EQ(crypto::kSHA256Length, ctx->GetHashLength()); in TEST()
88 uint8_t output1[crypto::kSHA256Length]; in TEST()
89 uint8_t output2[crypto::kSHA256Length]; in TEST()
92 std::unique_ptr<crypto::SecureHash> ctx1( in TEST()
93 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
99 std::unique_ptr<crypto::SecureHash> ctx2( in TEST()
100 crypto::SecureHash::Create(crypto::SecureHash::SHA256)); in TEST()
106 EXPECT_EQ(0, memcmp(output1, output2, crypto::kSHA256Length)); in TEST()