I2P

Invisible Internet Project


Changeset 0518bc18c616699e96cb2da7e1b727c4453fa09e

Show
Ignore:
Timestamp:
12/09/11 14:16:29 (18 months ago)
Author:
zzz@…
Branches:
i2p.i2p
Children:
b02b8abe1c7b0980815c4293b3a7b50c115f33e8
Parents:
e486811bedaaf98e43516e1584130b457f1f33bb
Message:
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • /core/java/src/net/i2p/data/LeaseSet.java

    r2fe8.. r0518..  
    230230        int len = PublicKey.KEYSIZE_BYTES  // dest 
    231231                + SigningPublicKey.KEYSIZE_BYTES // dest 
    232                 + 4 // cert 
     232                + 3 // cert minimum, could be more, only used to size the BAOS 
    233233                + PublicKey.KEYSIZE_BYTES // encryptionKey 
    234234                + SigningPublicKey.KEYSIZE_BYTES // signingKey 
     
    296296    } 
    297297     
     298    /** 
     299     *  Number of bytes, NOT including signature 
     300     */ 
    298301    public int size() { 
    299302        return PublicKey.KEYSIZE_BYTES //destination.pubKey 
    300303             + SigningPublicKey.KEYSIZE_BYTES // destination.signPubKey 
    301              + 2 // destination.certificate 
     304             + _destination.getCertificate().size() // destination.certificate, usually 3 
    302305             + PublicKey.KEYSIZE_BYTES // encryptionKey 
    303306             + SigningPublicKey.KEYSIZE_BYTES // signingKey 
    304              + 1 
     307             + 1 // number of leases 
    305308             + _leases.size() * (Hash.HASH_LENGTH + 4 + 8); 
    306309    }