Changeset 2b8f14f for core


Ignore:
Timestamp:
Nov 6, 2017 11:45:57 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e4814a7
Parents:
e281620
Message:

Minor fixes and javadocs after review
Set 90 day default for event log
Format clock skew in summary bar
Constant time for password hash check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/PasswordManager.java

    re281620 r2b8f14f  
    120120        System.arraycopy(shashBytes, SALT_LENGTH, hash, 0, SessionKey.KEYSIZE_BYTES);
    121121        byte[] pwHash = _context.keyGenerator().generateSessionKey(salt, DataHelper.getUTF8(pw)).getData();
    122         return DataHelper.eq(hash, pwHash);
     122        return DataHelper.eqCT(hash, 0, pwHash, 0, SessionKey.KEYSIZE_BYTES);
    123123    }
    124124   
Note: See TracChangeset for help on using the changeset viewer.