mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 10:38:17 -05:00
Add xchacha20poly1305 enc type (#5470)
This commit is contained in:
parent
8beefbb417
commit
f732db4d2d
@ -4,9 +4,13 @@
|
||||
// EncryptedStringAttribute
|
||||
public enum EncryptionType : byte
|
||||
{
|
||||
// symmetric
|
||||
AesCbc256_B64 = 0,
|
||||
AesCbc128_HmacSha256_B64 = 1,
|
||||
AesCbc256_HmacSha256_B64 = 2,
|
||||
XChaCha20Poly1305_B64 = 7,
|
||||
|
||||
// asymmetric
|
||||
Rsa2048_OaepSha256_B64 = 3,
|
||||
Rsa2048_OaepSha1_B64 = 4,
|
||||
Rsa2048_OaepSha256_HmacSha256_B64 = 5,
|
||||
|
@ -16,6 +16,7 @@ public class EncryptedStringAttribute : ValidationAttribute
|
||||
[EncryptionType.AesCbc256_B64] = 2, // iv|ct
|
||||
[EncryptionType.AesCbc128_HmacSha256_B64] = 3, // iv|ct|mac
|
||||
[EncryptionType.AesCbc256_HmacSha256_B64] = 3, // iv|ct|mac
|
||||
[EncryptionType.XChaCha20Poly1305_B64] = 1, // cose bytes
|
||||
[EncryptionType.Rsa2048_OaepSha256_B64] = 1, // rsaCt
|
||||
[EncryptionType.Rsa2048_OaepSha1_B64] = 1, // rsaCt
|
||||
[EncryptionType.Rsa2048_OaepSha256_HmacSha256_B64] = 2, // rsaCt|mac
|
||||
|
Loading…
x
Reference in New Issue
Block a user