Lines Matching refs:key_shares
2198 hs->key_shares[0] = SSLKeyShare::Create(group_id); in ext_key_share_add_clienthello()
2199 if (!hs->key_shares[0] || in ext_key_share_add_clienthello()
2202 !hs->key_shares[0]->Offer(&key_exchange) || in ext_key_share_add_clienthello()
2208 hs->key_shares[1] = SSLKeyShare::Create(second_group_id); in ext_key_share_add_clienthello()
2209 if (!hs->key_shares[1] || in ext_key_share_add_clienthello()
2212 !hs->key_shares[1]->Offer(&key_exchange) || in ext_key_share_add_clienthello()
2242 SSLKeyShare *key_share = hs->key_shares[0].get(); in ssl_ext_key_share_parse_serverhello()
2244 if (!hs->key_shares[1] || hs->key_shares[1]->GroupID() != group_id) { in ssl_ext_key_share_parse_serverhello()
2249 key_share = hs->key_shares[1].get(); in ssl_ext_key_share_parse_serverhello()
2258 hs->key_shares[0].reset(); in ssl_ext_key_share_parse_serverhello()
2259 hs->key_shares[1].reset(); in ssl_ext_key_share_parse_serverhello()
2267 CBS key_shares; in ssl_ext_key_share_parse_clienthello() local
2274 if (!CBS_get_u16_length_prefixed(contents, &key_shares) || in ssl_ext_key_share_parse_clienthello()
2283 while (CBS_len(&key_shares) > 0) { in ssl_ext_key_share_parse_clienthello()
2286 if (!CBS_get_u16(&key_shares, &id) || in ssl_ext_key_share_parse_clienthello()
2287 !CBS_get_u16_length_prefixed(&key_shares, &peer_key_tmp) || in ssl_ext_key_share_parse_clienthello()