2025-12-01 17:49:09 -05:00
|
|
|
|
namespace Bit.Test.Common.Constants;
|
|
|
|
|
|
|
|
|
|
|
|
public static class TestEncryptionConstants
|
|
|
|
|
|
{
|
2025-12-08 10:26:59 -05:00
|
|
|
|
// Intended for use as a V1 encrypted string, accepted by validators
|
|
|
|
|
|
public const string AES256_CBC_HMAC_Encstring = "2.QmFzZTY0UGFydA==|QmFzZTY0UGFydA==|QmFzZTY0UGFydA==";
|
2025-12-01 17:49:09 -05:00
|
|
|
|
|
2025-12-08 10:41:35 -05:00
|
|
|
|
// Simple stubs for other encstring versions used by parsing tests
|
|
|
|
|
|
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.";
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
2025-12-01 17:49:09 -05:00
|
|
|
|
// Public key test placeholder
|
|
|
|
|
|
public const string PublicKey = "pk_test";
|
|
|
|
|
|
|
|
|
|
|
|
// V2-style values used across tests
|
|
|
|
|
|
// Private key indicating v2 (used in multiple tests to mark v2 state)
|
|
|
|
|
|
public const string V2PrivateKey = "7.cose";
|
|
|
|
|
|
// Wrapped signing key and verifying key values from real tests
|
2025-12-02 14:22:17 -05:00
|
|
|
|
public const string V2WrappedSigningKey = "7.cose_signing";
|
|
|
|
|
|
public const string V2VerifyingKey = "vk";
|
2025-12-01 17:49:09 -05:00
|
|
|
|
}
|