1
0
mirror of https://github.com/bitwarden/server synced 2025-12-26 21:23:39 +00:00

Add xchacha20poly1305 enc type (#5470)

This commit is contained in:
Bernd Schoolmann
2025-04-08 12:33:44 +02:00
committed by GitHub
parent 8beefbb417
commit f732db4d2d
2 changed files with 5 additions and 0 deletions

View File

@@ -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