Skip to content

Commit

Permalink
Do not test some slow kdf twice
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jan 15, 2025
1 parent f79f7cc commit 572952a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/slow-kdf.test.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { deepStrictEqual } from 'node:assert';
import { scryptSync } from 'node:crypto';
import { describe, should } from 'micro-should';
import { bytes, integer, gen, RANDOM, serializeCase, executeKDFTests } from './generator.js';
import { bytes, integer, gen, serializeCase } from './generator.js';
import { scrypt, scryptAsync } from '../esm/scrypt.js';
import { argon2i, argon2d, argon2id } from '../esm/argon2.js';
import { bytesToHex } from '../esm/utils.js';
import { json, pattern } from './utils.js';

const argon2_vectors = json('./vectors/argon2.json');

// KDF tests. Takes 5-10 mins
executeKDFTests(false);

// Takes 10h
const SCRYPT_CASES = gen({
N: integer(1, 10),
Expand Down

0 comments on commit 572952a

Please sign in to comment.