1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

[PM-8436] [PM-8483] Support Asymmetric Mac Encryption Types in EncString (#9441)

* Support Asymmetric Mac Encryption Types in EncString

* Add EncString Tests
This commit is contained in:
Justin Baur
2024-05-30 16:01:24 -04:00
committed by GitHub
parent de92720d7e
commit 93e7a6ae87
2 changed files with 25 additions and 0 deletions

View File

@@ -97,6 +97,11 @@ export class EncString implements Encrypted {
case EncryptionType.Rsa2048_OaepSha1_B64:
this.data = encPieces[0];
break;
case EncryptionType.Rsa2048_OaepSha256_HmacSha256_B64:
case EncryptionType.Rsa2048_OaepSha1_HmacSha256_B64:
this.data = encPieces[0];
this.mac = encPieces[1];
break;
default:
return;
}