Lines Matching refs:get
30 if (!private_key_.get() || !EC_KEY_check_key(private_key_.get())) { in NistCurveKeyExchange()
59 if (!key.get() || !EC_KEY_generate_key(key.get())) { in GenerateKeyExchange()
64 NistCurveKeyExchange(key.get(), &error)); in GenerateKeyExchange()
65 if (!key_exchange.get()) error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in GenerateKeyExchange()
73 const EC_GROUP* group = EC_KEY_get0_group(private_key_.get()); in ExtractPublicKey()
81 if (!public_key_.get()) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in ExtractPublicKey()
82 if (EC_POINT_point2oct(group, EC_KEY_get0_public_key(private_key_.get()), in ExtractPublicKey()
83 POINT_CONVERSION_UNCOMPRESSED, public_key_.get(), public_key_len_, in ExtractPublicKey()
100 const EC_GROUP* group = EC_KEY_get0_group(private_key_.get()); in CalculateSharedKey()
102 if (!point.get() || in CalculateSharedKey()
104 group, point.get(), peer_public_value, peer_public_value_len, in CalculateSharedKey()
106 !EC_POINT_is_on_curve(group, point.get(), nullptr /* ctx */)) { in CalculateSharedKey()
112 if (!result.get()) return false; in CalculateSharedKey()
113 if (ECDH_compute_key(result.get(), shared_secret_len_, point.get(), private_key_.get(), in CalculateSharedKey()
119 out_result->Reinitialize(result.get(), shared_secret_len_); in CalculateSharedKey()
124 if (public_key_.get() != nullptr && public_key_len_ != 0) { in public_value()
125 return public_value->Reinitialize(public_key_.get(), public_key_len_); in public_value()