Packages that use SHA1Hash
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.
I2P version of the Snark BitTorrent client, enhanced for I2P: peers are I2P destinations, torrents can be served anonymously as hidden services, and metadata carries I2P-specific comment fields.
BitTorrent distributed hash table (DHT) implementation following the Mainline protocol, for trackerless peer discovery.
Uses of SHA1Hash in net.i2p.crypto
Fields in net.i2p.crypto with type parameters of type SHA1HashMethods in net.i2p.crypto that return SHA1HashModifier and TypeMethodDescriptionstatic SHA1HashDSAEngine.calculateHash(byte[] source, int offset, int len) Calculate a SHA-1 hash of the source data.DSAEngine.calculateHash(InputStream in) Reads the stream until EOF.Methods in net.i2p.crypto with parameters of type SHA1HashModifier and TypeMethodDescriptionDSAEngine.sign(SHA1Hash hash, SigningPrivateKey signingKey) Sign using DSA-SHA1 ONLY.booleanDSAEngine.verifySignature(Signature signature, SHA1Hash hash, SigningPublicKey verifyingKey) Verify using DSA-SHA1 ONLY.Uses of SHA1Hash in org.klomp.snark
Fields in org.klomp.snark with type parameters of type SHA1HashModifier and TypeFieldDescriptionprivate final Map<SHA1Hash, SnarkManager.ConfigCacheEntry> SnarkManager._configCacheGuarded by _configLock.private final Map<SHA1Hash, PeerCoordinator> PeerCoordinatorSet._coordinatorsKeyed by the info hash of the torrent each coordinator works on.SnarkManager._infoHashToSnarkSnarks by info hash; synchronize on _snarks.SnarkManager._lookupCreationTimesInfohash to time (ms) when the lookup was created, for stale cleanup.Methods in org.klomp.snark that return SHA1HashModifier and TypeMethodDescriptionprivate static SHA1HashSnarkManager.configFileToInfoHash(File file) Extract the info hash from a config file name.Uses of SHA1Hash in org.klomp.snark.dht
Subclasses of SHA1Hash in org.klomp.snark.dhtModifier and TypeClassDescriptionclassRepresents a BitTorrent info hash used for DHT operations.classNode Identifier (NID) for Kademlia DHT operations.(package private) classIndexing key for DHT tokens based on node ID and info hash combination.Methods in org.klomp.snark.dht with parameters of type SHA1HashModifier and TypeMethodDescriptionDHTNodes.findClosest(SHA1Hash h, int numWant) Find the closest nodes to a given hash or node ID.Constructors in org.klomp.snark.dht with parameters of type SHA1HashModifierConstructorDescriptionCreates a new comparator for measuring distance to the specified target key.