Packages that use SigType
Package
Description
Interfaces and factories for the base I2P SDK used to develop applications that communicate through I2P.
Internal implementation of the I2P client SDK - the client side of the Invisible Internet Client Protocol (I2CP), separating implementation from the interfaces in
net.i2p.client. API, interfaces, and factory for a TCP-like (reliable, authenticated, in order) set of sockets for communicating over IP-like (unreliable, unauthenticated, unordered) I2P messages.
Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
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.
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP).
Implementation of preconfigured tunnels for clients and servers, including special-purpose tunnels for IRC, SOCKS, HTTP and streaming.
The I2P router application handles I2P network communication.
The Kademlia distributed hash table (DHT) network database: lookup, store and explore jobs, the data store, the floodfill variants, and lookup throttling.
The I2P startup package loads configuration when I2P is started.
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Helpers and handlers for the router console user interface, packaged in routerconsole.war and accessible only from JSP files.
The SAM bridge: a simple text protocol server letting applications in any language use I2P streaming and datagram sessions without implementing the Invisible Internet Client Protocol (I2CP).
Uses of SigType in net.i2p.client
Fields in net.i2p.client declared as SigTypeModifier and TypeFieldDescriptionstatic final SigTypeI2PClient.DEFAULT_SIGTYPEDefault signature type.Methods in net.i2p.client with parameters of type SigTypeModifier and TypeMethodDescriptionI2PClient.createDestination(OutputStream destKeyStream, SigType type) Create a destination with the given signature type.Uses of SigType in net.i2p.client.impl
Methods in net.i2p.client.impl with parameters of type SigTypeModifier and TypeMethodDescriptionI2PClientImpl.createDestination(OutputStream destKeyStream, SigType type) Create a destination with the given signature type.Uses of SigType in net.i2p.client.streaming
Methods in net.i2p.client.streaming that return SigTypeModifier and TypeMethodDescriptionprivate static SigTypeI2PSocketManagerFactory.getSigType(Properties opts) Determine the configured signature type from the given options.Uses of SigType in net.i2p.client.streaming.impl
Methods in net.i2p.client.streaming.impl that return SigTypeModifier and TypeMethodDescriptionprivate SigTypeI2PSocketManagerFull.getSigType(Properties opts) Sig type from the options, or the default if unset or unsupported.Methods in net.i2p.client.streaming.impl with parameters of type SigTypeModifier and TypeMethodDescription(package private) booleanPacket.alignSignatureToType(SigType type) Recast the signature to the signing key's type when the bytes we read are long enough to be a signature of that type.(package private) intPacket.signatureSpaceLen(SigType keyType) How many option bytes to reserve for the signature when this packet is written, which is also how many bytes the signature covers.(package private) intPacket.writtenSize(SigType keyType) Size of this packet if written to a buffer.Uses of SigType in net.i2p.crypto
Subclasses with type arguments of type SigType in net.i2p.cryptoModifier and TypeClassDescriptionenumDefines the properties for various signature types that I2P supports or may someday support.Fields in net.i2p.crypto declared as SigTypeModifier and TypeFieldDescriptionprivate SigTypeSU3File._sigTypeThe signature type of the file.private static final SigType[]SigType.BY_CODEThe types indexed by their code.private static final SigTypeBlinding.TYPESignature type of blinded Ed25519.private static final SigTypeBlinding.TYPERSignature type of blinded RedDSA.Methods in net.i2p.crypto that return SigTypeModifier and TypeMethodDescriptionstatic SigTypeSigType.getByCode(int code) Signature type by code.static SigTypeBlinding.getDefaultBlindedType(SigType unblindedType) What's the default blinded type for a given unblinded type?SU3File.getSigType()This does not check the signature, but it will fail if the signer is unknown, unless setVerifySignature(false) has been called.static SigTypeSigType.parseSigType(String stype) Convenience for user apps.static SigTypeReturns the enum constant of this class with the specified name.static SigType[]SigType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.i2p.crypto with parameters of type SigTypeModifier and TypeMethodDescriptionprivate SignatureDSAEngine.altSignRaw(String algo, SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic raw sign any type.static Object[]KeyStoreUtil.createKeysAndCRL(File ks, String ksPW, String alias, String cname, String ou, int validDays, SigType type, String keyPW) New way - Native Java, does not call out to keytool.static Object[]KeyStoreUtil.createKeysAndCRL(File ks, String ksPW, String alias, String cname, Set<String> altNames, String ou, int validDays, SigType type, String keyPW) New way - Native Java, does not call out to keytool.private static EdDSAEngineDSAEngine.engineFor(SigType type, MessageDigest md) New EdDSA or RedDSA engine for the given type, sharing the caller's (thread-local) SHA-512 digest.static SigningPrivateKeySigUtil.fromJavaKey(ECPrivateKey pk, SigType type) Convert a Java ECPrivateKey to an I2P SigningPrivateKey of the given type.static SigningPublicKeySigUtil.fromJavaKey(ECPublicKey pk, SigType type) Convert a Java ECPublicKey to an I2P SigningPublicKey of the given type.static SigningPrivateKeySigUtil.fromJavaKey(RSAPrivateKey pk, SigType type) Convert a Java RSAPrivateKey to an I2P RSA private key of the given type.static SigningPublicKeySigUtil.fromJavaKey(RSAPublicKey pk, SigType type) Convert a Java RSAPublicKey to an I2P RSA public key of the given type.static SigningPrivateKeySigUtil.fromJavaKey(PrivateKey pk, SigType type) Use if SigType is known.static SigningPublicKeySigUtil.fromJavaKey(PublicKey pk, SigType type) Use if SigType is known.static SigningPrivateKeySigUtil.fromJavaKey(EdDSAPrivateKey pk, SigType type) Convert a Java EdDSAPrivateKey to an I2P SigningPrivateKey.static SigningPublicKeySigUtil.fromJavaKey(EdDSAPublicKey pk, SigType type) Convert a Java EdDSAPublicKey to an I2P SigningPublicKey.static SignatureSigUtil.fromJavaSig(byte[] asn, SigType type) Convert a Java ASN.1 signature byte array to an I2P Signature.static Object[]SelfSignedGenerator.generate(String cname, String ou, String o, String l, String st, String c, int validDays, SigType type) Create a self-signed certificate with a new keypair.static Object[]SelfSignedGenerator.generate(String cname, Set<String> altNames, String ou, String o, String l, String st, String c, int validDays, SigType type) Create a self-signed certificate with a new keypair.private static Object[]SelfSignedGenerator.generate(PublicKey jpub, PrivateKey jpriv, SigningPrivateKey priv, SigType type, String cname, Set<String> altNames, String ou, String o, String l, String st, String c, int validDays) Create a self-signed certificate with the given keypair.KeyGenerator.generateSigningKeys(SigType type) Generic signature type, supports DSA, RSA, ECDSA, EdDSA.private static final booleanSU3File.genKeysCLI(SigType type, String publicKeyFile, String privateKeyFile, String crlFile, String alias, String kspass) Writes Java-encoded keys (X.509 for public and PKCS#8 for private).static SigTypeBlinding.getDefaultBlindedType(SigType unblindedType) What's the default blinded type for a given unblinded type?Load a public key from the certificate in the given scope.Get a key.private static StringDSAEngine.getRawAlgo(SigType type) Map a signature type to the raw (prehashed) JCA algorithm name.static PrivateKeySigUtil.importJavaPrivateKey(File file, SigType type) Import a Java PKCS8-encoded private key from a file.static PublicKeySigUtil.importJavaPublicKey(File file, SigType type) Import a Java X.509-encoded public key from a file.DSAEngine.sign(SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic signature type.private static final booleanSU3File.signCLI(SigType type, SU3File.ContentType ctype, int ftype, String inputFile, String signedFile, String privateKeyFile, String version, String signerName, String keypw, String kspass) Whether the operation succeeded.private static voidTimes signing and verifying with one type.voidSU3File.write(File content, int fileType, int contentType, String version, String signer, PrivateKey privkey, SigType sigType) One-pass wrap and sign the content.Constructors in net.i2p.crypto with parameters of type SigTypeModifierConstructorDescriptionprivateRSASigningPrivateCrtKey(RSAPrivateCrtKey pk, SigType type, byte[] data) Wraps a Java CRT key together with its encoded form.Uses of SigType in net.i2p.data
Fields in net.i2p.data declared as SigTypeModifier and TypeFieldDescriptionprivate final SigTypeBlindData._blindTypeThe signature type of the blinded key.private final SigTypeSignature._typeThe algorithm this signature was made with.private final SigTypeSigningPrivateKey._typeThe algorithm this key signs with.private final SigTypeSigningPublicKey._typeThe signature type of this key.private static final SigTypeSignature.DEF_TYPEType assumed when a signature gives none.private static final SigTypeSigningPrivateKey.DEF_TYPEType assumed when a key gives none.private static final SigTypeSigningPublicKey.DEF_TYPEType assumed when a key names none.Methods in net.i2p.data that return SigTypeModifier and TypeMethodDescriptionBlindData.getBlindedSigType()Gets the type of the blinded signature.KeyCertificate.getSigType()Gets the signature type from the certificate.KeysAndCert.getSigType()Signature type from the certificate.Signature.getType()Gets the signature type.SigningPrivateKey.getType()Signature type of this private key.SigningPublicKey.getType()Gets the signature type of this public key.Methods in net.i2p.data with parameters of type SigTypeModifier and TypeMethodDescriptionPrivateKeyFile.createIfAbsent(SigType type) Create with the specified signature type if nonexistent.private DestinationPrivateKeyFile.createIfAbsent(SigType type, EncType ptype) Create with the specified signature and encryption types if nonexistent.PrivateKeyFile.setKeyCert(SigType type) Change cert type - caller must also call write().Constructors in net.i2p.data with parameters of type SigTypeModifierConstructorDescriptionBlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret) Creates a new BlindData instance for the given destination.BlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret, int authType, PrivateKey authKey) Creates a new BlindData instance for the given destination with authentication.BlindData(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret) Creates a new BlindData instance for the given signing public key.BlindData(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret, int authType, PrivateKey authKey) Creates a new BlindData instance for the given signing public key with authentication.KeyCertificate(SigType type) A KeyCertificate with crypto type 0 (ElGamal) and the signature type as specified.KeyCertificate(SigType type, EncType etype) A KeyCertificate with crypto type and the signature type as specified.Unknown type not allowed as we won't know the length to read in the data.Should we allow an unknown type here?SigningPrivateKey(SigType type) Creates an empty signing private key for the given signature algorithm.SigningPrivateKey(SigType type, byte[] data) Creates a signing private key for the given algorithm from raw key bytes.SigningPublicKey(SigType type) If null, type is unknown.SigningPublicKey(SigType type, byte[] data) If null, type is unknown.Uses of SigType in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp declared as SigTypeModifier and TypeFieldDescriptionprivate SigTypeBlindingInfoMessage._blindTypeThe signature type of the blinded key.Methods in net.i2p.data.i2cp that return SigTypeModifier and TypeMethodDescriptionprivate static SigTypeCreateLeaseSetMessage.spkTypeForLen(int len) Map a known signing private key length to its most likely type.Constructors in net.i2p.data.i2cp with parameters of type SigTypeModifierConstructorDescriptionBlindingInfoMessage(Destination d, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret) Creates a BlindingInfoMessage for a destination.privateBlindingInfoMessage(SessionId id, long expiration, int authType, SigType blindType, PrivateKey privKey, String secret) Builds the message from its parsed parts.BlindingInfoMessage(SigningPublicKey s, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret) Creates a BlindingInfoMessage for a signing public key.Uses of SigType in net.i2p.i2ptunnel
Fields in net.i2p.i2ptunnel declared as SigTypeModifier and TypeFieldDescriptionstatic final SigTypeTunnelController.PREFERRED_SIGTYPEThis is guaranteed to be available.Uses of SigType in net.i2p.router
Methods in net.i2p.router with parameters of type SigTypeModifier and TypeMethodDescriptionprivate voidKeyManager.SynchronizeKeysJob.syncSigningKey(File keyDir, SigType type) Synchronize the signing private key with the file on disk.private voidKeyManager.SynchronizeKeysJob.syncVerificationKey(File keyDir, SigType type) Synchronize the signing public key with the file on disk.Uses of SigType in net.i2p.router.networkdb.kademlia
Methods in net.i2p.router.networkdb.kademlia with parameters of type SigTypeModifier and TypeMethodDescriptionvoidBlindCache.setBlinded(Destination dest, SigType blindedType, String secret) Mark a destination as known to be blinded.private booleanFloodfillNetworkDatabaseFacade.shouldFloodTo(Hash key, int type, SigType lsSigType, Hash peer, RouterInfo target) Determines if we should flood the database store to a peer.private static StringKademliaNetworkDatabaseFacade.sigTypeDescription(KeyCertificate kc, SigType type) Human-readable signature type for log messages.Uses of SigType in net.i2p.router.startup
Fields in net.i2p.router.startup declared as SigTypeModifier and TypeFieldDescriptionprivate static final SigTypeCreateRouterInfoJob.DEFAULT_SIGTYPESignature type chosen for a new router.Methods in net.i2p.router.startup that return SigTypeModifier and TypeMethodDescriptionstatic SigTypeCreateRouterInfoJob.getSigTypeConfig(RouterContext ctx) The configured SigType to expect on read-in.Uses of SigType in net.i2p.router.transport.ntcp
Methods in net.i2p.router.transport.ntcp with parameters of type SigTypeModifier and TypeMethodDescription(package private) static booleanNTCPTransport.isSigTypeUsable(SigType type) Whether the peer's signature type is usable: it must exist and be available on this build.Uses of SigType in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp with parameters of type SigTypeModifier and TypeMethodDescription(package private) static booleanUDPTransport.needsMinimumSigTypeVersion(SigType ourSigType, String theirVersion) Whether we need a minimum software version on the target because we are not DSA-signed: non-DSA routers cannot be reached by pre-0.9.17 builds that do not understand their signature types.(package private) static booleanUDPTransport.sigTypeUnsupported(SigType type) Whether the target identity uses a signature type we cannot verify.Uses of SigType in net.i2p.router.web.helpers
Fields in net.i2p.router.web.helpers declared as SigTypeMethods in net.i2p.router.web.helpers with parameters of type SigTypeModifier and TypeMethodDescriptionvoidNetDbRenderer.renderRouterInfoHTML(Writer out, int pageSize, int page, String routerPrefix, String version, String country, String family, String capabilities, String ipAddress, String sybil, int port, int highPort, SigType signatureType, EncType encryptionType, String mtu, String ipv6Address, String ssuCapabilities, String transport, int cost, int introducerCount) Renders router information matching search criteria to the given writer.private voidNetDbRenderer.writeNoResults(StringBuilder buf, String routerPrefix, String version, String country, String family, String capabilities, String ipAddress, int port, int highPort, String mtu, String ipv6Address, String ssuCapabilities, int cost, SigType signatureType, EncType encryptionType, String transport) Writes a message indicating no routers matched the search criteria.Uses of SigType in net.i2p.sam
Methods in net.i2p.sam with parameters of type SigTypeModifier and TypeMethodDescriptionstatic voidSAMUtils.genRandomKey(OutputStream priv, OutputStream pub, SigType sigType) Generate a random destination key.