Lines Matching refs:ECDH
64 void ECDH::Initialize(Environment* env, Local<Object> target) {
71 t->InstanceTemplate()->SetInternalFieldCount(ECDH::kInternalFieldCount);
80 SetConstructorFunction(context, target, "ECDH", t);
82 SetMethodNoSideEffect(context, target, "ECDHConvertKey", ECDH::ConvertKey);
83 SetMethodNoSideEffect(context, target, "getCurves", ECDH::GetCurves);
93 void ECDH::RegisterExternalReferences(ExternalReferenceRegistry* registry) {
101 registry->Register(ECDH::ConvertKey);
102 registry->Register(ECDH::GetCurves);
109 void ECDH::GetCurves(const FunctionCallbackInfo<Value>& args) {
122 ECDH::ECDH(Environment* env, Local<Object> wrap, ECKeyPointer&& key)
130 void ECDH::MemoryInfo(MemoryTracker* tracker) const {
134 ECDH::~ECDH() {}
136 void ECDH::New(const FunctionCallbackInfo<Value>& args) {
154 new ECDH(env, args.This(), std::move(key));
157 void ECDH::GenerateKeys(const FunctionCallbackInfo<Value>& args) {
160 ECDH* ecdh;
167 ECPointPointer ECDH::BufferToPoint(Environment* env,
196 void ECDH::ComputeSecret(const FunctionCallbackInfo<Value>& args) {
201 ECDH* ecdh;
210 ECDH::BufferToPoint(env,
231 return THROW_ERR_CRYPTO_OPERATION_FAILED(env, "Failed to compute ECDH key");
239 void ECDH::GetPublicKey(const FunctionCallbackInfo<Value>& args) {
245 ECDH* ecdh;
252 "Failed to get ECDH public key");
265 void ECDH::GetPrivateKey(const FunctionCallbackInfo<Value>& args) {
268 ECDH* ecdh;
274 "Failed to get ECDH private key");
291 void ECDH::SetPrivateKey(const FunctionCallbackInfo<Value>& args) {
294 ECDH* ecdh;
336 "Failed to generate ECDH public key");
347 void ECDH::SetPublicKey(const FunctionCallbackInfo<Value>& args) {
350 ECDH* ecdh;
358 ECDH::BufferToPoint(env,
373 bool ECDH::IsKeyValidForCurve(const BignumPointer& private_key) {
387 bool ECDH::IsKeyPairValid() {
394 void ECDH::ConvertKey(const FunctionCallbackInfo<Value>& args) {
419 ECDH::BufferToPoint(env,