fix: reduce pbkdf iteration in tests to prevent timeout nad keep them fast

This commit is contained in:
ramvignesh-b
2026-04-30 05:25:55 +05:30
parent 2bb77d1bed
commit b6f45aa93c
3 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ interface SealedEnvelope {
// TODO: try refactoring into a pure function for consistency
export class CryptoUtils {
private dek!: CryptoKey;
private static readonly PBKDF2_ITERATIONS = 600_000;
private static readonly PBKDF2_ITERATIONS =
Number(import.meta.env.VITE_PBKDF2_ITERATIONS) || 600_000;
// NOTE: https://www.w3.org/TR/webcrypto/#aes-gcm
private static readonly AES_ALGO = { name: "AES-GCM", length: 256 };
private static readonly IV_BYTE_LENGTH = 12;