Changeset 3c260aa


Ignore:
Timestamp:
Oct 9, 2009 4:00:38 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
92e323d
Parents:
da41f3a9
Message:

fix rare ElGamal? AIOOBE

Files:
3 edited

Legend:

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

    rda41f3a9 r3c260aa  
    182182            if (val[i] != (byte) 0x00) break;
    183183
    184         //ByteArrayInputStream bais = new ByteArrayInputStream(val, i, val.length - i);
    185         byte hashData[] = new byte[Hash.HASH_LENGTH];
    186         System.arraycopy(val, i + 1, hashData, 0, Hash.HASH_LENGTH);
    187         Hash hash = new Hash(hashData);
    188184        int payloadLen = val.length - i - 1 - Hash.HASH_LENGTH;
    189185        if (payloadLen < 0) {
     
    192188            return null;
    193189        }
     190
     191        //ByteArrayInputStream bais = new ByteArrayInputStream(val, i, val.length - i);
     192        byte hashData[] = new byte[Hash.HASH_LENGTH];
     193        System.arraycopy(val, i + 1, hashData, 0, Hash.HASH_LENGTH);
     194        Hash hash = new Hash(hashData);
    194195        byte rv[] = new byte[payloadLen];
    195196        System.arraycopy(val, i + 1 + Hash.HASH_LENGTH, rv, 0, rv.length);
  • history.txt

    rda41f3a9 r3c260aa  
    112009-10-09 zzz
     2    * ElGamalEngine: Fix rare AIOOBE (thanks hottuna!)
    23    * I2PTunnel: Fix persistent client tunnel keyfile location
     4    * peers.jsp: Fix NTCP rate formatting (thanks hottuna!)
    35
    462009-10-09 dr|z3d
  • router/java/src/net/i2p/router/RouterVersion.java

    rda41f3a9 r3c260aa  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 25;
     21    public final static long BUILD = 26;
    2222    /** for example "-test" */
    2323    public final static String EXTRA = "-rc";
Note: See TracChangeset for help on using the changeset viewer.