Changeset 13633a0


Ignore:
Timestamp:
Apr 10, 2013 5:03:15 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1222776
Parents:
1eda9e9
Message:

remove debug id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/ElGamalAESEngine.java

    r1eda9e9 r13633a0  
    106106        if (key != null) {
    107107            //if (_log.shouldLog(Log.DEBUG)) _log.debug("Key is known for tag " + st);
    108             long id = _context.random().nextLong();
    109108            if (_log.shouldLog(Log.DEBUG))
    110                 _log.debug(id + ": Decrypting existing session encrypted with tag: " + st.toString() + ": key: " + key.toBase64() + ": " + data.length + " bytes " /* + Base64.encode(data, 0, 64) */ );
     109                _log.debug("Decrypting existing session encrypted with tag: " + st.toString() + ": key: " + key.toBase64() + ": " + data.length + " bytes " /* + Base64.encode(data, 0, 64) */ );
    111110           
    112111            decrypted = decryptExistingSession(data, key, targetPrivateKey, foundTags, usedKey, foundKey);
     
    114113                _context.statManager().updateFrequency("crypto.elGamalAES.decryptExistingSession");
    115114                if ( (!foundTags.isEmpty()) && (_log.shouldLog(Log.DEBUG)) )
    116                     _log.debug(id + ": ElG/AES decrypt success with " + st + ": found tags: " + foundTags);
     115                    _log.debug("ElG/AES decrypt success with " + st + ": found tags: " + foundTags);
    117116                wasExisting = true;
    118117            } else {
    119118                _context.statManager().updateFrequency("crypto.elGamalAES.decryptFailed");
    120119                if (_log.shouldLog(Log.WARN)) {
    121                     _log.warn(id + ": ElG decrypt fail: known tag [" + st + "], failed decrypt");
     120                    _log.warn("ElG decrypt fail: known tag [" + st + "], failed decrypt");
    122121                }
    123122            }
     
    569568     * </pre>
    570569     *
     570     * @param target unused, this is AES encrypt only using the session key and tag
    571571     * @param tagsForDelivery session tags to be associated with the key or null;
    572572     *                        200 max enforced at receiver
Note: See TracChangeset for help on using the changeset viewer.