Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update wrap schemes (#2159)

Leendert de Borstbcda54ee6c60
diff --git a/apps/server/AliasVault.Api/Helpers/AuthHelper.cs b/apps/server/AliasVault.Api/Helpers/AuthHelper.cs
index 9ce8ff96a..2a1528e7e 100644
--- a/apps/server/AliasVault.Api/Helpers/AuthHelper.cs
+++ b/apps/server/AliasVault.Api/Helpers/AuthHelper.cs
@@ -45,8 +45,9 @@ public static class AuthHelper
/// <summary>
/// The asymmetric WrapScheme values used when wrapping a shared folder's VEK for a recipient's public key.
+ /// Can support other schemes in the future, but only rsa-oaep is currently used.
/// </summary>
- public static readonly IReadOnlySet<string> AsymmetricWrapSchemes = new HashSet<string>(StringComparer.Ordinal) { "rsa-oaep", "x25519-sealedbox" };
+ public static readonly IReadOnlySet<string> AsymmetricWrapSchemes = new HashSet<string>(StringComparer.Ordinal) { "rsa-oaep" };
/// <summary>
/// Helper method that validates the SRP session based on provided SRP identity, ephemeral and proof.
diff --git a/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Sharing/GrantAccessRequest.cs b/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Sharing/GrantAccessRequest.cs
index 78f64d9cc..0fb341a42 100644
--- a/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Sharing/GrantAccessRequest.cs
+++ b/apps/server/Shared/AliasVault.Shared/Models/WebApi/V2/Sharing/GrantAccessRequest.cs
@@ -25,6 +25,6 @@ public class GrantAccessRequest
/// <summary>Gets or sets the id of the recipient public key used to wrap (from GET /v2/Sharing/recipient).</summary>
public required Guid RecipientPublicKeyId { get; set; }
- /// <summary>Gets or sets the asymmetric wrap scheme used, e.g. "x25519-sealedbox" or "rsa-oaep".</summary>
+ /// <summary>Gets or sets the asymmetric wrap scheme used, e.g. "rsa-oaep" or "x25519-sealedbox".</summary>
public required string WrapScheme { get; set; }
}