(cacheKey: string, password: string, iterations: number)
| 447 | } |
| 448 | |
| 449 | function getCachedDerivedKey(cacheKey: string, password: string, iterations: number): Buffer { |
| 450 | const cached = keyCache.get(cacheKey); |
| 451 | if (cached) return cached; |
| 452 | const derived = deriveKey(password, iterations); |
| 453 | keyCache.set(cacheKey, derived); |
| 454 | return derived; |
| 455 | } |
| 456 | |
| 457 | async function getDerivedKeys(match: BrowserMatch): Promise<Map<string, Buffer>> { |
| 458 | if (match.platform === 'darwin') { |
no test coverage detected