Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 157bdddf authored by Rubin Xu's avatar Rubin Xu
Browse files

Reduce scrypt time in synthetic password flow

Reduce from 13:3:1 (100ms) to 11:3:1 (25ms)

Bug: 37268178
Test: Manual with time instrumentation in code.
Change-Id: I14d734858d824ec494127d057dd821fc88f8a0f5
parent 035aaddb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ public class SyntheticPasswordManager {
    // 256-bit synthetic password
    private static final byte SYNTHETIC_PASSWORD_LENGTH = 256 / 8;

    private static final int PASSWORD_SCRYPT_N = 13;
    private static final int PASSWORD_SCRYPT_N = 11;
    private static final int PASSWORD_SCRYPT_R = 3;
    private static final int PASSWORD_SCRYPT_P = 1;
    private static final int PASSWORD_SALT_LENGTH = 16;