Packages that use SimpleDataStructure
Package
Description
Core cryptographic primitives used throughout I2P: symmetric ciphers (AES, ChaCha20), hashes (SHA-1, SHA-256, SHA-384, SHA-512), HMAC and HKDF key derivation, the ElGamal and DSA/EdDSA/RedDSA engines, key and certificate utilities, and the entropy harvester.
Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
Low-level messages sent between routers - the Invisible Internet Network Protocol (I2NP).
Generic Kademlia distributed hash table implementation supporting multiple hash algorithms (SHA1, SHA256 and others).
The Double Ratchet with X25519 key agreement and ECIES hybrid encryption, used by the NTCP2 and SSU transports for session encryption.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of SimpleDataStructure in net.i2p.crypto
Subclasses of SimpleDataStructure in net.i2p.cryptoModifier and TypeClassDescriptionclassSHA-384 secure hash algorithm implementation.classSHA-512 secure hash algorithm implementation.(package private) final classA SigningPrivateKey that retains the Chinese Remainder Theorem parameters, so it can be converted back to a Java CRT key.classI2P data structure for SHA-1 hash values.Methods in net.i2p.crypto that return SimpleDataStructureModifier and TypeMethodDescriptionKeyGenerator.generatePKIKeys()ElGamal only.KeyGenerator.generateSigningKeys()DSA-SHA1 only.KeyGenerator.generateSigningKeys(SigType type) Generic signature type, supports DSA, RSA, ECDSA, EdDSA.SigType.getHashInstance()Create a Hash instance for this signature type.Methods in net.i2p.crypto with parameters of type SimpleDataStructureModifier and TypeMethodDescriptionprivate SignatureDSAEngine.altSignRaw(String algo, SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic raw sign any type.private SignatureDSAEngine.altSignRaw(SimpleDataStructure hash, SigningPrivateKey privateKey) Generic raw sign any type.private booleanDSAEngine.altVerifySigRaw(Signature signature, SimpleDataStructure hash, PublicKey pubKey) Generic raw verify any type.private booleanDSAEngine.altVerifySigRaw(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Generic raw verify any typeDSAEngine.sign(SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic signature type.DSAEngine.sign(SimpleDataStructure hash, SigningPrivateKey signingKey) Generic signature type.private SignatureDSAEngine.signIt(SimpleDataStructure hash, SigningPrivateKey signingKey) Sign using DSA-SHA1 or Syndie DSA-SHA256 ONLY.private booleanDSAEngine.verifySig(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Verify using DSA-SHA1 or Syndie DSA-SHA256 ONLY.booleanDSAEngine.verifySignature(Signature signature, SimpleDataStructure hash, PublicKey pubKey) Generic signature type.booleanDSAEngine.verifySignature(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Generic signature type.Uses of SimpleDataStructure in net.i2p.data
Classes in net.i2p.data with type parameters of type SimpleDataStructureModifier and TypeClassDescriptionclassSDSCache<V extends SimpleDataStructure>A least recently used cache with a max size, for SimpleDataStructures.Subclasses of SimpleDataStructure in net.i2p.dataModifier and TypeClassDescriptionclassA 32-byte SHA-256 hash, used throughout I2P as a destination, router, or tunnel identifier and as an integrity value for hashed data.classPrivate (secret) key for the asymmetric encryption of an I2P destination.classCryptographic public key for asymmetric encryption in I2P.classCryptographic session key for symmetric encryption in I2P.classCryptographic signature implementation for I2P data structures and identity verification.classCryptographic private key for digital signature generation in I2P.classCryptographic public key for digital signature verification in I2P.Method parameters in net.i2p.data with type arguments of type SimpleDataStructureModifier and TypeMethodDescriptionvoidEncryptedLeaseSet.encrypt(int authType, List<? extends SimpleDataStructure> clientKeys) Throws IllegalStateException if not initialized.voidEncryptedLeaseSet.sign(SigningPrivateKey key, int authType, List<? extends SimpleDataStructure> clientKeys) Sign the structure using the supplied signing key.Uses of SimpleDataStructure in net.i2p.data.i2np
Subclasses of SimpleDataStructure in net.i2p.data.i2npModifier and TypeClassDescriptionclassElGamal-encrypted request or response.classSmall records.Uses of SimpleDataStructure in net.i2p.kademlia
Classes in net.i2p.kademlia with type parameters of type SimpleDataStructureModifier and TypeInterfaceDescriptioninterfaceKBucket<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(package private) classKBucketImpl<T extends SimpleDataStructure>A concurrent implementation usingConcurrentHashSet.classKBucketSet<T extends SimpleDataStructure>In-memory storage of buckets sorted by XOR metric from base (us) passed in via constructor.private static classKBucketSet.BucketComparator<T extends SimpleDataStructure>For Collections.binarySearch.private static classKBucketSet.DummyBucket<T extends SimpleDataStructure>For Collections.binarySearch.private static classKBucketSet.Range<T extends SimpleDataStructure>Calculator of the bucket range for a key.interfaceKBucketTrimmer<K extends SimpleDataStructure>Called when a kbucket can no longer be split and is too big.classRandomIfOldTrimmer<T extends SimpleDataStructure>Removes a random element, but only if the bucket hasn't changed in 5 minutes.classRandomTrimmer<T extends SimpleDataStructure>Removes a random element.classRejectTrimmer<T extends SimpleDataStructure>Removes nothing and always rejects the add.interfaceSelectionCollector<T extends SimpleDataStructure>Visit kbuckets, gathering matches.classXORComparator<T extends SimpleDataStructure>Help sort Hashes in relation to a base key using the XOR metric.Fields in net.i2p.kademlia declared as SimpleDataStructureUses of SimpleDataStructure in net.i2p.router.crypto.ratchet
Subclasses of SimpleDataStructure in net.i2p.router.crypto.ratchetModifier and TypeClassDescription(package private) classX25519 public key with identifier for next session key exchange in ratchet protocol.(package private) classSession key with nonce and optional handshake state for ratchet message encryption and decryption operations, supporting nonces up to 65535Uses of SimpleDataStructure in net.i2p.router.networkdb.kademlia
Subclasses of SimpleDataStructure in net.i2p.router.networkdb.kademliaModifier and TypeClassDescription(package private) classPull the caching used only by KBucketImpl out of Hash and put it here.Uses of SimpleDataStructure in org.klomp.snark.dht
Subclasses of SimpleDataStructure in org.klomp.snark.dhtModifier and TypeClassDescriptionclassRepresents a BitTorrent info hash used for DHT operations.classNode Identifier (NID) for Kademlia DHT operations.(package private) classComprehensive node information container for DHT operations.(package private) classRepresents a single peer participating in a specific torrent within the DHT tracker.(package private) classIndexing key for DHT tokens based on node ID and info hash combination.