Lines Matching refs:decrypt_buf
1203 Array<uint8_t> decrypt_buf; in do_read_client_key_exchange() local
1204 if (!decrypt_buf.Init(EVP_PKEY_size(hs->local_pubkey.get()))) { in do_read_client_key_exchange()
1211 switch (ssl_private_key_decrypt(hs, decrypt_buf.data(), &decrypt_len, in do_read_client_key_exchange()
1212 decrypt_buf.size(), in do_read_client_key_exchange()
1222 if (decrypt_len != decrypt_buf.size()) { in do_read_client_key_exchange()
1228 CONSTTIME_SECRET(decrypt_buf.data(), decrypt_len); in do_read_client_key_exchange()
1247 uint8_t good = constant_time_eq_int_8(decrypt_buf[0], 0) & in do_read_client_key_exchange()
1248 constant_time_eq_int_8(decrypt_buf[1], 2); in do_read_client_key_exchange()
1250 good &= ~constant_time_is_zero_8(decrypt_buf[i]); in do_read_client_key_exchange()
1252 good &= constant_time_is_zero_8(decrypt_buf[padding_len - 1]); in do_read_client_key_exchange()
1256 good &= constant_time_eq_8(decrypt_buf[padding_len], in do_read_client_key_exchange()
1258 good &= constant_time_eq_8(decrypt_buf[padding_len + 1], in do_read_client_key_exchange()
1265 good, decrypt_buf[padding_len + i], premaster_secret[i]); in do_read_client_key_exchange()