1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Rename "encryptionAlgorithm" to "hashAlgorithmForEncryption" for clarity (#9891)

This commit is contained in:
Bernd Schoolmann
2024-07-03 10:32:19 +02:00
committed by GitHub
parent 83b8c0d50f
commit 5839999fc4
3 changed files with 5 additions and 5 deletions

View File

@@ -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,