mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
speedup tests by 25% by reducing password encryption difficulty in test case
This commit is contained in:
parent
d31d10e3f7
commit
ac5f576d9e
@ -22,6 +22,8 @@ import {
|
||||
crypto_pwhash_SALTBYTES,
|
||||
crypto_pwhash,
|
||||
crypto_shorthash,
|
||||
crypto_pwhash_OPSLIMIT_MIN,
|
||||
crypto_pwhash_MEMLIMIT_MIN,
|
||||
} from 'sodium-native'
|
||||
|
||||
const SecretKeyCryptographyCreateKeyMock = (
|
||||
@ -38,8 +40,8 @@ const SecretKeyCryptographyCreateKeyMock = (
|
||||
crypto_hash_sha512_final(state, hash)
|
||||
|
||||
const encryptionKey = Buffer.alloc(crypto_box_SEEDBYTES)
|
||||
const opsLimit = 10
|
||||
const memLimit = 33554432
|
||||
const opsLimit = crypto_pwhash_OPSLIMIT_MIN
|
||||
const memLimit = crypto_pwhash_MEMLIMIT_MIN
|
||||
const algo = 2
|
||||
crypto_pwhash(
|
||||
encryptionKey,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user