diff --git a/apps/desktop/native-messaging-test-runner/src/variables.ts b/apps/desktop/native-messaging-test-runner/src/variables.ts index 6f0351ed6d..3f84a87085 100644 --- a/apps/desktop/native-messaging-test-runner/src/variables.ts +++ b/apps/desktop/native-messaging-test-runner/src/variables.ts @@ -1,5 +1,5 @@ export const applicationName = "Native Messaging Test Runner"; -export const encryptionAlgorithm = "sha1"; +export const hashAlgorithmForEncryption = "sha1"; export const testRsaPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl0Vawl/toXzkEvB82FEtqHP" + "4xlU2ab/v0crqIfXfIoWF/XXdHGIdrZeilnRXPPJT1B9dTsasttEZNnua/0Rek/cjNDHtzT52irfoZYS7X6HNIfOi54Q+egP" + diff --git a/apps/desktop/src/services/native-message-handler.service.ts b/apps/desktop/src/services/native-message-handler.service.ts index c50593768d..065726559b 100644 --- a/apps/desktop/src/services/native-message-handler.service.ts +++ b/apps/desktop/src/services/native-message-handler.service.ts @@ -22,7 +22,7 @@ import { UnencryptedMessageResponse } from "../models/native-messaging/unencrypt import { EncryptedMessageHandlerService } from "./encrypted-message-handler.service"; -const EncryptionAlgorithm = "sha1"; +const HashAlgorithmForAsymmetricEncryption = "sha1"; // This service handles messages using the protocol created for the DuckDuckGo integration. @Injectable() @@ -117,7 +117,7 @@ export class NativeMessageHandlerService { const encryptedSecret = await this.cryptoFunctionService.rsaEncrypt( secret, remotePublicKey, - EncryptionAlgorithm, + HashAlgorithmForAsymmetricEncryption, ); this.sendResponse({ diff --git a/apps/desktop/src/services/native-messaging.service.ts b/apps/desktop/src/services/native-messaging.service.ts index 8dc0a57c99..7f6d39b2e8 100644 --- a/apps/desktop/src/services/native-messaging.service.ts +++ b/apps/desktop/src/services/native-messaging.service.ts @@ -27,7 +27,7 @@ import { DesktopSettingsService } from "../platform/services/desktop-settings.se import { NativeMessageHandlerService } from "./native-message-handler.service"; const MessageValidTimeout = 10 * 1000; -const EncryptionAlgorithm = "sha1"; +const HashAlgorithmForAsymmetricEncryption = "sha1"; @Injectable() export class NativeMessagingService { @@ -227,7 +227,7 @@ export class NativeMessagingService { const encryptedSecret = await this.cryptoFunctionService.rsaEncrypt( secret, remotePublicKey, - EncryptionAlgorithm, + HashAlgorithmForAsymmetricEncryption, ); ipc.platform.nativeMessaging.sendMessage({ appId: appId,