Home
last modified time | relevance | path

Searched refs:key_params (Results 1 – 25 of 50) sorted by relevance

12

/external/webrtc/rtc_base/
Drtc_certificate_generator.cc34 const KeyParams& key_params, in GenerateCertificate() argument
36 if (!key_params.IsValid()) { in GenerateCertificate()
42 identity = SSLIdentity::Create(kIdentityName, key_params); in GenerateCertificate()
54 identity = SSLIdentity::Create(kIdentityName, key_params, cert_lifetime_s); in GenerateCertificate()
70 const KeyParams& key_params, in GenerateCertificateAsync() argument
76 worker_thread_->PostTask([key_params, expires_ms, in GenerateCertificateAsync()
80 RTCCertificateGenerator::GenerateCertificate(key_params, expires_ms); in GenerateCertificateAsync()
Dopenssl_key_pair.cc39 static EVP_PKEY* MakeKey(const KeyParams& key_params) { in MakeKey() argument
42 if (key_params.type() == KT_RSA) { in MakeKey()
43 int key_length = key_params.rsa_params().mod_size; in MakeKey()
47 !BN_set_word(exponent, key_params.rsa_params().pub_exp) || in MakeKey()
58 } else if (key_params.type() == KT_ECDSA) { in MakeKey()
59 if (key_params.ec_curve() == EC_NIST_P256) { in MakeKey()
98 const KeyParams& key_params) { in Generate() argument
99 EVP_PKEY* pkey = MakeKey(key_params); in Generate()
Drtc_certificate_generator.h42 const KeyParams& key_params,
60 const KeyParams& key_params,
71 void GenerateCertificateAsync(const KeyParams& key_params,
Dopenssl_identity.cc58 auto key_pair = OpenSSLKeyPair::Generate(params.key_params); in CreateInternal()
74 const KeyParams& key_params, in CreateWithExpiration() argument
77 params.key_params = key_params; in CreateWithExpiration()
Dboringssl_identity.cc56 auto key_pair = OpenSSLKeyPair::Generate(params.key_params); in CreateInternal()
72 const KeyParams& key_params, in CreateWithExpiration() argument
75 params.key_params = key_params; in CreateWithExpiration()
Dssl_adapter_unittest.cc163 const rtc::KeyParams& key_params) in SSLAdapterTestDummyServer() argument
166 ssl_identity_ = rtc::SSLIdentity::Create(GetHostname(), key_params); in SSLAdapterTestDummyServer()
300 const rtc::KeyParams& key_params) in SSLAdapterTestBase() argument
304 server_(new SSLAdapterTestDummyServer(ssl_mode_, key_params)), in SSLAdapterTestBase()
Dopenssl_key_pair.h34 static std::unique_ptr<OpenSSLKeyPair> Generate(const KeyParams& key_params);
Dopenssl_identity.h33 const KeyParams& key_params,
Dboringssl_identity.h35 const KeyParams& key_params,
Dboringssl_certificate.cc205 !AddSHA256SignatureAlgorithm(&tbs_cert, params.key_params.type()) || in MakeCertificate()
228 !AddSHA256SignatureAlgorithm(&cert, params.key_params.type()) || in MakeCertificate()
Dssl_identity.h97 KeyParams key_params; member
Drtc_certificate_unittest.cc79 params.key_params = KeyParams::ECDSA(); in GenerateCertificateWithExpires()
/external/webrtc/pc/test/
Dfake_rtc_certificate_generator.h138 void GenerateCertificateAsync(const rtc::KeyParams& key_params, in GenerateCertificateAsync() argument
146 if (key_params.type() == rtc::KT_RSA) { in GenerateCertificateAsync()
147 RTC_DCHECK_EQ(key_params.rsa_params().mod_size, 1024); in GenerateCertificateAsync()
148 RTC_DCHECK_EQ(key_params.rsa_params().pub_exp, 0x10001); in GenerateCertificateAsync()
150 RTC_DCHECK_EQ(key_params.type(), rtc::KT_ECDSA); in GenerateCertificateAsync()
151 RTC_DCHECK_EQ(key_params.ec_curve(), rtc::EC_NIST_P256); in GenerateCertificateAsync()
153 rtc::KeyType key_type = key_params.type(); in GenerateCertificateAsync()
/external/webrtc/pc/
Dsrtp_filter.cc195 applied_send_params_.key_params == send_params.key_params) { in ApplySendParams()
220 return ParseKeyParams(send_params.key_params, send_key_.data(), in ApplySendParams()
226 applied_recv_params_.key_params == recv_params.key_params) { in ApplyRecvParams()
251 return ParseKeyParams(recv_params.key_params, recv_key_.data(), in ApplyRecvParams()
255 bool SrtpFilter::ParseKeyParams(const std::string& key_params, in ParseKeyParams() argument
261 if (!absl::StartsWith(key_params, "inline:")) { in ParseKeyParams()
266 std::string key_b64(key_params.substr(7)), key_str; in ParseKeyParams()
Dsrtp_filter_unittest.cc268 answer[0].key_params = "inline:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; in TEST_F()
278 answer[0].key_params = "outline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtxaVBR"; in TEST_F()
288 answer[0].key_params = "inline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtx"; in TEST_F()
298 answer[0].key_params = "inline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtxaVBRABCD"; in TEST_F()
308 answer[0].key_params = in TEST_F()
348 offer[0].key_params = kTestKeyParams3; in TEST_F()
350 answer[0].key_params = kTestKeyParams4; in TEST_F()
387 answer[0].key_params = kTestKeyParams4; in TEST_F()
Dsrtp_transport.cc67 if (!ParseKeyParams(params.key_params, send_key_.data(), send_key_.size())) { in SetSrtpSendKey()
107 if (!ParseKeyParams(params.key_params, recv_key_.data(), recv_key_.size())) { in SetSrtpReceiveKey()
485 bool SrtpTransport::ParseKeyParams(const std::string& key_params, in ParseKeyParams() argument
491 if (!absl::StartsWith(key_params, "inline:")) { in ParseKeyParams()
496 std::string key_b64(key_params.substr(7)), key_str; in ParseKeyParams()
Dwebrtc_session_description_factory.cc161 rtc::KeyParams key_params = rtc::KeyParams(); in WebRtcSessionDescriptionFactory() local
164 << key_params.type() << ")."; in WebRtcSessionDescriptionFactory()
167 cert_generator_->GenerateCertificateAsync(key_params, absl::nullopt, in WebRtcSessionDescriptionFactory()
/external/webrtc/modules/rtp_rtcp/source/
Dulpfec_generator.cc98 const FecProtectionParams& key_params) { in SetProtectionParameters() argument
101 RTC_DCHECK_GE(key_params.fec_rate, 0); in SetProtectionParameters()
102 RTC_DCHECK_LE(key_params.fec_rate, 255); in SetProtectionParameters()
106 pending_params_.emplace(delta_params, key_params); in SetProtectionParameters()
Dflexfec_sender.cc113 const FecProtectionParams& key_params) { in SetProtectionParameters() argument
114 ulpfec_generator_.SetProtectionParameters(delta_params, key_params); in SetProtectionParameters()
Dvideo_fec_generator.h39 const FecProtectionParams& key_params) = 0;
Dulpfec_generator.h45 const FecProtectionParams& key_params) override;
/external/webrtc/api/
Dcrypto_params.h29 : tag(t), cipher_suite(cs), key_params(kp), session_params(sp) {} in CryptoParams()
37 std::string key_params; member
Dfec_controller.h29 const FecProtectionParams* key_params,
/external/webrtc/modules/rtp_rtcp/include/
Dflexfec_sender.h58 const FecProtectionParams& key_params) override;
/external/webrtc/modules/video_coding/
Dfec_controller_unittest.cc35 const FecProtectionParams* key_params, in ProtectionRequest() argument

12