Windows: Password Cache Causes Excessive Argon2 KDF Delays with High PIM Values
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 22/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- c
- Domaine
- performance, security
Piste de recherche
Start with ReadVolumeHeaderWCacheWithAbort() in src/Common/Cache.c, which loops over cached passwords and PIMs, and with its caller in src/Driver/Ntvol.c. Trace how ReadVolumeHeaderWithAbort() picks the PRF and reaches the Argon2 path when the PIM is above 31. Done means cached attempts no longer trigger the expensive derivation on Windows, with the cache behaviour checked against the Linux/macOS work in PR #1972. This touches crypto and kernel-driver code, so it is not a good first task without maintainer guidance.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Source verification against VeraCrypt 1.26.30
The Windows password-cache path still contains the behavior described in this issue.
-
In
[src/Common/Cache.c](https://github.com/veracrypt/VeraCrypt/blob/VeraCrypt_1.26.30/src/Common/Cache.c#L58-L151),ReadVolumeHeaderWCacheWithAbort()stores cached passwords and PIM values, but does not retain the PRF/KDF that successfully opened each volume. -
When the supplied password is empty, the function iterates through cached passwords and calls
ReadVolumeHeaderWithAbort()for each candidate using the samepkcs5_prfand the candidate's cached PIM. -
The Windows driver invokes this function through
[src/Driver/Ntvol.c](https://github.com/veracrypt/VeraCrypt/blob/VeraCrypt_1.26.30/src/Driver/Ntvol.c#L622-L652). -
With KDF autodetection enabled and PIM values above 31, unsuccessful cached-password attempts can enter the expensive Argon2 derivation path. This can require approximately 1 GiB of memory per attempt, with computational cost increasing alongside PIM.
The Linux/macOS cache work in [PR #1972](https://github.com/veracrypt/VeraCrypt/pull/1972) does not cover the Windows driver. Its description explicitly identifies src/Common/Cache.c as unchanged. The same Windows-side limitation is also documented in [#1969](https://github.com/veracrypt/VeraCrypt/issues/1969).
Version reviewed: VeraCrypt 1.26.30
Tag: [VeraCrypt_1.26.30](https://github.com/veracrypt/VeraCrypt/tree/VeraCrypt_1.26.30)
Runtime qualification: The original Windows behavior was reported on 1.26.29. The persistence in 1.26.30 is confirmed by source inspection, not by a new runtime reproduction on that release.
- Langage dominant
- C
- Étoiles
- 11.7k
- Forks
- 1.4k
- Merge moyen
- 1 j 1 h
- PR mergées (30 j)
- 28
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de veracrypt/VeraCrypt
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 32/100
veracrypt/VeraCrypt#1995 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
veracrypt/VeraCrypt#1993 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Cache password no longer worksOuvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
veracrypt/VeraCrypt#1991 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de veracrypt/VeraCrypt
Issues similaires
-
Signed/unsigned mix in the EOCD backward scan rejects valid archives with a 65535-byte commentOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug game: 01008BA02525A000 ios
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
yugabyte/yugabyte-db#37523 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 65/100
ly05010419/MacNativeGames#2079 ·
Les mainteneurs répondent en général sous 1 jour