Package | Description |
---|---|
net.i2p.crypto |
These classes provide a number of low-level cryptographic routines.
|
net.i2p.data |
These classes define the common data structures used by the various
I2P protocols.
|
net.i2p.data.i2np |
This package defines the low-level messages sent between routers,
called the Invisible Internet Network Protocol (I2NP).
|
net.i2p.kademlia |
This is a major rewrite of KBucket, KBucketSet, and KBucketImpl from net.i2p.router.networkdb.kademlia.
|
net.i2p.router.networkdb.kademlia |
The network database, including implementation of floodfills.
|
org.klomp.snark.dht |
Modifier and Type | Class and Description |
---|---|
class |
Hash384
48 byte hash
|
class |
Hash512
64 byte hash
|
class |
SHA1Hash
Because DSAEngine was abusing Hash for 20-byte hashes
|
Modifier and Type | Method and Description |
---|---|
SimpleDataStructure[] |
KeyGenerator.generatePKIKeys()
Same as above but different return type
|
SimpleDataStructure[] |
KeyGenerator.generateSigningKeys()
DSA-SHA1 only.
|
SimpleDataStructure[] |
KeyGenerator.generateSigningKeys(SigType type)
Generic signature type, supports DSA, ECDSA, EdDSA
|
SimpleDataStructure |
SigType.getHashInstance() |
Modifier and Type | Method and Description |
---|---|
Signature |
DSAEngine.sign(SimpleDataStructure hash,
PrivateKey privKey,
SigType type)
Generic signature type.
|
Signature |
DSAEngine.sign(SimpleDataStructure hash,
SigningPrivateKey signingKey)
Generic signature type.
|
boolean |
DSAEngine.verifySignature(Signature signature,
SimpleDataStructure hash,
PublicKey pubKey)
Generic signature type.
|
boolean |
DSAEngine.verifySignature(Signature signature,
SimpleDataStructure hash,
SigningPublicKey verifyingKey)
Generic signature type.
|
Modifier and Type | Class and Description |
---|---|
class |
SDSCache<V extends SimpleDataStructure>
A least recently used cache with a max size, for SimpleDataStructures.
|
Modifier and Type | Class and Description |
---|---|
class |
Hash
Defines the hash as defined by the I2P data structure spec.
|
class |
PrivateKey
Defines the PrivateKey as defined by the I2P data structure spec.
|
class |
PublicKey
Defines the PublicKey as defined by the I2P data structure spec.
|
class |
SessionKey
Defines the SessionKey as defined by the I2P data structure spec.
|
class |
SessionTag
32 bytes, usually of random data.
|
class |
Signature
Defines the signature as defined by the I2P data structure spec.
|
class |
SigningPrivateKey
Defines the SigningPrivateKey as defined by the I2P data structure spec.
|
class |
SigningPublicKey
Defines the SigningPublicKey as defined by the I2P data structure spec.
|
Modifier and Type | Class and Description |
---|---|
class |
EncryptedBuildRecord
ElGamal-encrypted request or response.
|
Modifier and Type | Interface and Description |
---|---|
interface |
KBucket<T extends SimpleDataStructure>
Group, without inherent ordering, a set of keys a certain distance away from
a local key, using XOR as the distance metric
Refactored from net.i2p.router.networkdb.kademlia
|
(package private) class |
KBucketImpl<T extends SimpleDataStructure>
A concurrent implementation using ConcurrentHashSet.
|
class |
KBucketSet<T extends SimpleDataStructure>
In-memory storage of buckets sorted by the XOR metric from the base (us)
passed in via the constructor.
|
interface |
KBucketTrimmer<K extends SimpleDataStructure>
Called when a kbucket can no longer be split and is too big
|
class |
RandomIfOldTrimmer<T extends SimpleDataStructure>
Removes a random element, but only if the bucket hasn't changed in 5 minutes.
|
class |
RandomTrimmer<T extends SimpleDataStructure>
Removes a random element.
|
class |
RejectTrimmer<T extends SimpleDataStructure>
Removes nothing and always rejects the add.
|
interface |
SelectionCollector<T extends SimpleDataStructure>
Visit kbuckets, gathering matches
|
class |
XORComparator<T extends SimpleDataStructure>
Help sort Hashes in relation to a base key using the XOR metric
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
LocalHash
Pull the caching used only by KBucketImpl out of Hash and put it here.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
InfoHash
A 20-byte SHA1 info hash
|
class |
NID
A 20-byte peer ID, used as a Map key in lots of places.
|
(package private) class |
NodeInfo |
(package private) class |
Peer
A single peer for a single torrent.
|
(package private) class |
TokenKey
Used to index incoming Tokens
|