1
0
mirror of https://github.com/bitwarden/server synced 2026-01-07 02:53:38 +00:00

fix(auth-validator): [PM-22975] Client Version Validator - Fixed tests and made versions of the sha obsolete

This commit is contained in:
Patrick Pimentel
2025-12-11 13:07:28 -05:00
parent 865e76f620
commit 50298fbbce
3 changed files with 4 additions and 8 deletions

View File

@@ -4,15 +4,12 @@ public static class TestEncryptionConstants
{
// Simple stubs for different encrypted string versions
[Obsolete]
public const string AES256_CBC_B64_Encstring = "0.stub";
public const string AES128_CBC_HMACSHA256_B64_Encstring = "1.stub";
public const string AES256_CBC_HMAC_EmptySuffix = "2.";
// Intended for use as a V1 encrypted string, accepted by validators
public const string AES256_CBC_HMAC_Encstring = "2.QmFzZTY0UGFydA==|QmFzZTY0UGFydA==|QmFzZTY0UGFydA==";
public const string RSA2048_OAEPSHA256_B64_Encstring = "3.stub";
public const string RSA2048_OAEPSHA1_B64_Encstring = "4.stub";
public const string RSA2048_OAEPSHA256_HMACSHA256_B64_Encstring = "5.stub";
public const string RSA2048_OAEPSHA1_HMACSHA256_B64_Encstring = "6.stub";
public const string XCHACHA20POLY1305_B64_Encstring = "7.stub";
// Public key test placeholder