Searched refs:public_key_jwk (Results 1 – 4 of 4) sorted by relevance
/external/chromium_org/net/cert/ |
D | jwk_serializer_unittest.cc | 65 base::DictionaryValue public_key_jwk; in TEST() local 67 EXPECT_FALSE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST() 68 EXPECT_TRUE(public_key_jwk.empty()); in TEST() 72 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST() 75 EXPECT_TRUE(public_key_jwk.GetString("kty", &string_value)); in TEST() 77 EXPECT_TRUE(public_key_jwk.GetString("crv", &string_value)); in TEST() 80 EXPECT_TRUE(public_key_jwk.GetString("x", &string_value)); in TEST() 89 EXPECT_TRUE(public_key_jwk.GetString("y", &string_value)); in TEST() 101 EXPECT_TRUE(JwkSerializer::ConvertSpkiFromDerToJwk(spki, &public_key_jwk)); in TEST() 103 EXPECT_TRUE(public_key_jwk.GetString("kty", &string_value)); in TEST() [all …]
|
D | jwk_serializer_nss.cc | 24 base::DictionaryValue* public_key_jwk) { in ConvertEcPrime256v1PublicKeyInfoToJwk() argument 33 public_key_jwk->SetString("kty", "EC"); in ConvertEcPrime256v1PublicKeyInfoToJwk() 34 public_key_jwk->SetString("crv", "P-256"); in ConvertEcPrime256v1PublicKeyInfoToJwk() 41 public_key_jwk->SetString("x", x_b64); in ConvertEcPrime256v1PublicKeyInfoToJwk() 49 public_key_jwk->SetString("y", y_b64); in ConvertEcPrime256v1PublicKeyInfoToJwk() 55 base::DictionaryValue* public_key_jwk) { in ConvertEcPublicKeyInfoToJwk() argument 66 return ConvertEcPrime256v1PublicKeyInfoToJwk(spki, public_key_jwk); in ConvertEcPublicKeyInfoToJwk() 82 base::DictionaryValue* public_key_jwk) { in ConvertSpkiFromDerToJwk() argument 83 public_key_jwk->Clear(); in ConvertSpkiFromDerToJwk() 110 rv = ConvertEcPublicKeyInfoToJwk(spki.get(), public_key_jwk); in ConvertSpkiFromDerToJwk()
|
D | jwk_serializer_openssl.cc | 27 base::DictionaryValue* public_key_jwk, in ConvertEcKeyToJwk() argument 71 public_key_jwk->SetString("kty", "EC"); in ConvertEcKeyToJwk() 72 public_key_jwk->SetString("crv", curve_name); in ConvertEcKeyToJwk() 76 public_key_jwk->SetString("x", x_b64); in ConvertEcKeyToJwk() 80 public_key_jwk->SetString("y", y_b64); in ConvertEcKeyToJwk() 89 base::DictionaryValue* public_key_jwk) { in ConvertSpkiFromDerToJwk() argument 90 public_key_jwk->Clear(); in ConvertSpkiFromDerToJwk() 102 return ConvertEcKeyToJwk(pubkey.get(), public_key_jwk, err_tracer); in ConvertSpkiFromDerToJwk()
|
D | jwk_serializer.h | 24 base::DictionaryValue* public_key_jwk);
|