Lines Matching refs:public_key

894     std::string public_key;  in ManyKeysTest()  local
895 if (!LoadSigningKey(key_handle.get(), &public_key)) { in ManyKeysTest()
898 public_key_map[key_handle->get()] = public_key; in ManyKeysTest()
907 const std::string& public_key = public_key_map[key_handle.get()]; in ManyKeysTest() local
908 if (!SignAndVerify(key_handle, public_key, delegate.get())) { in ManyKeysTest()
915 const std::string& public_key = public_key_map[key_handle.get()]; in ManyKeysTest() local
916 if (!SignAndVerify(key_handle, public_key, delegate.get())) { in ManyKeysTest()
939 std::string public_key; in ManySessionsTest() local
940 if (!LoadSigningKey(&key_handle, &public_key)) { in ManySessionsTest()
944 if (!SignAndVerify(key_handle, public_key, sessions[i]->GetDelegate())) { in ManySessionsTest()
950 if (!SignAndVerify(key_handle, public_key, sessions[i]->GetDelegate())) { in ManySessionsTest()
990 std::string* public_key) { in GenerateRSAKeyPair() argument
1007 if (public_key) { in GenerateRSAKeyPair()
1012 public_key->assign(reinterpret_cast<char*>(buffer), length); in GenerateRSAKeyPair()
1016 bool TrunksClientTest::VerifyRSASignature(const std::string& public_key, in VerifyRSASignature() argument
1019 auto asn1_ptr = reinterpret_cast<const unsigned char*>(public_key.data()); in VerifyRSASignature()
1021 public_key.size())); in VerifyRSASignature()
1033 std::string* public_key) { in LoadSigningKey() argument
1036 GenerateRSAKeyPair(&modulus, &prime_factor, public_key); in LoadSigningKey()
1062 const std::string& public_key, in SignAndVerify() argument
1077 if (!VerifyRSASignature(public_key, data_to_sign, signature)) { in SignAndVerify()