Changeset 85fbbf8


Ignore:
Timestamp:
Aug 22, 2012 5:40:25 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7c7e131
Parents:
612fab1
Message:
  • NetDB: Add hash collision detection
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r612fab1 r85fbbf8  
    677677        }
    678678       
     679        // spoof / hash collision detection
     680        if (rv != null && !leaseSet.getDestination().equals(rv.getDestination()))
     681            throw new IllegalArgumentException("LS Hash collision");
     682
    679683        String err = validate(key, leaseSet);
    680684        if (err != null)
     
    816820        }
    817821       
     822        // spoof / hash collision detection
     823        if (rv != null && !routerInfo.getIdentity().equals(rv.getIdentity()))
     824            throw new IllegalArgumentException("RI Hash collision");
     825
    818826        String err = validate(key, routerInfo);
    819827        if (err != null)
Note: See TracChangeset for help on using the changeset viewer.