Lines Matching refs:crypto
21 std::unique_ptr<crypto::RSAPrivateKey> key_original( in TEST()
22 crypto::RSAPrivateKey::Create(1024)); in TEST()
27 std::unique_ptr<crypto::RSAPrivateKey> key( in TEST()
28 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
31 std::unique_ptr<crypto::SignatureCreator> signer( in TEST()
32 crypto::SignatureCreator::Create(key.get(), in TEST()
33 crypto::SignatureCreator::SHA1)); in TEST()
46 crypto::SignatureVerifier verifier; in TEST()
47 ASSERT_TRUE(verifier.VerifyInit(crypto::SignatureVerifier::RSA_PKCS1_SHA1, in TEST()
56 std::unique_ptr<crypto::RSAPrivateKey> key_original( in TEST()
57 crypto::RSAPrivateKey::Create(1024)); in TEST()
62 std::unique_ptr<crypto::RSAPrivateKey> key( in TEST()
63 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
70 ASSERT_TRUE(crypto::SignatureCreator::Sign( in TEST()
71 key.get(), crypto::SignatureCreator::SHA1, in TEST()
78 crypto::SignatureVerifier verifier; in TEST()
79 ASSERT_TRUE(verifier.VerifyInit(crypto::SignatureVerifier::RSA_PKCS1_SHA1, in TEST()
88 std::unique_ptr<crypto::RSAPrivateKey> key_original( in TEST()
89 crypto::RSAPrivateKey::Create(1024)); in TEST()
94 std::unique_ptr<crypto::RSAPrivateKey> key( in TEST()
95 crypto::RSAPrivateKey::CreateFromPrivateKeyInfo(key_info)); in TEST()
99 std::string sha256 = crypto::SHA256HashString(data); in TEST()
102 ASSERT_TRUE(crypto::SignatureCreator::Sign( in TEST()
103 key.get(), crypto::SignatureCreator::HashAlgorithm::SHA256, in TEST()
111 crypto::SignatureVerifier verifier; in TEST()
112 ASSERT_TRUE(verifier.VerifyInit(crypto::SignatureVerifier::RSA_PKCS1_SHA256, in TEST()