2025-12-01 17:49:09 -05:00
|
|
|
|
namespace Bit.Test.Common.Constants;
|
|
|
|
|
|
|
|
|
|
|
|
public static class TestEncryptionConstants
|
|
|
|
|
|
{
|
|
|
|
|
|
|
2025-12-08 14:34:11 -05:00
|
|
|
|
// Simple stubs for different encrypted string versions
|
2025-12-11 13:07:28 -05:00
|
|
|
|
[Obsolete]
|
2025-12-08 10:41:35 -05:00
|
|
|
|
public const string AES256_CBC_B64_Encstring = "0.stub";
|
|
|
|
|
|
public const string AES256_CBC_HMAC_EmptySuffix = "2.";
|
2025-12-08 14:34:11 -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-08 10:41:35 -05:00
|
|
|
|
public const string RSA2048_OAEPSHA1_B64_Encstring = "4.stub";
|
2025-12-08 14:34:11 -05:00
|
|
|
|
public const string XCHACHA20POLY1305_B64_Encstring = "7.stub";
|
2025-12-08 10:41:35 -05:00
|
|
|
|
|
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
|
|
|
|
}
|