Lines Matching defs:templ
898 Local<FunctionTemplate> templ = env->crypto_key_object_handle_constructor();
899 if (templ.IsEmpty()) {
901 templ = NewFunctionTemplate(isolate, New);
902 templ->InstanceTemplate()->SetInternalFieldCount(
904 templ->Inherit(BaseObject::GetConstructorTemplate(env));
906 SetProtoMethod(isolate, templ, "init", Init);
908 isolate, templ, "getSymmetricKeySize", GetSymmetricKeySize);
910 isolate, templ, "getAsymmetricKeyType", GetAsymmetricKeyType);
912 isolate, templ, "checkEcKeyData", CheckEcKeyData);
913 SetProtoMethod(isolate, templ, "export", Export);
914 SetProtoMethod(isolate, templ, "exportJwk", ExportJWK);
915 SetProtoMethod(isolate, templ, "initECRaw", InitECRaw);
916 SetProtoMethod(isolate, templ, "initEDRaw", InitEDRaw);
917 SetProtoMethod(isolate, templ, "initJwk", InitJWK);
918 SetProtoMethod(isolate, templ, "keyDetail", GetKeyDetail);
919 SetProtoMethod(isolate, templ, "equals", Equals);
921 env->set_crypto_key_object_handle_constructor(templ);
923 return templ->GetFunction(env->context()).ToLocalChecked();