| Package | Description |
|---|---|
| net.i2p.crypto | Core cryptographic primitives and algorithms used throughout I2P. |
| org.klomp.snark.dht | Distributed Hash Table (DHT) implementation for BitTorrent. |
| Modifier and Type | Method and Description |
|---|---|
static SHA1Hash | DSAEngine.calculateHash(byte[] source,
int offset,
int len)Calculate a SHA-1 hash of the source data. |
SHA1Hash | DSAEngine.calculateHash(InputStream in)Reads the stream until EOF. |
| Modifier and Type | Method and Description |
|---|---|
Signature | DSAEngine.sign(SHA1Hash hash,
SigningPrivateKey signingKey)Sign using DSA-SHA1 ONLY. |
boolean | DSAEngine.verifySignature(Signature signature,
SHA1Hash hash,
SigningPublicKey verifyingKey)Verify using DSA-SHA1 ONLY |
| Modifier and Type | Class and Description |
|---|---|
(package private) class | InfoHashRepresents a BitTorrent info hash used for DHT operations. |
class | NIDNode Identifier (NID) for Kademlia DHT operations. |
(package private) class | TokenKeyIndexing key for DHT tokens based on node ID and info hash combination. |
| Modifier and Type | Method and Description |
|---|---|
List<NodeInfo> | DHTNodes.findClosest(SHA1Hash h,
int numWant)Find the closest nodes to a given hash or node ID. |
| Constructor and Description |
|---|
NodeInfoComparator(SHA1Hash h)Creates a new comparator for measuring distance to the specified target key. |