1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 17:13:24 +00:00

Remove SymmetricCryptoKey buffer representation

This commit is contained in:
Bernd Schoolmann
2025-02-27 12:50:38 +01:00
parent 84daf34ae2
commit 05106055e6
24 changed files with 104 additions and 61 deletions

View File

@@ -209,7 +209,10 @@ export class SetPasswordComponent extends BaseChangePasswordComponent implements
// RSA Encrypt user key with organization public key
const userKey = await this.keyService.getUserKey();
const encryptedUserKey = await this.encryptService.rsaEncrypt(userKey.key, publicKey);
const encryptedUserKey = await this.encryptService.rsaEncrypt(
userKey.toEncoded(),
publicKey,
);
const resetRequest = new OrganizationUserResetPasswordEnrollmentRequest();
resetRequest.masterPasswordHash = masterPasswordHash;