## Uses of Class
net.i2p.data.DataFormatException

Packages that use DataFormatException
net.i2p.client.datagram: Provides a standard way for reading and writing messages transferred over I2P so that the recipient has an authenticated mechanism to reply to it.
net.i2p.crypto
net.i2p.data: These classes define the common data structures used by the various I2P protocols.
net.i2p.data.i2cp: The Invisible Internet Client Protocol (I2CP) allows applications simplified access to the I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP).
net.i2p.data.i2np: The Invisible Internet Network Protocol (I2NP) is only a part of how an application can send messages over the network.
net.i2p.i2ptunnel
net.i2p.router
net.i2p.sam

Uses of DataFormatException in net.i2p.client.datagram

Methods in net.i2p.client.datagram that throw DataFormatException
`void` `I2PDatagramDissector.loadI2PDatagram(byte[] dgram)` Load an I2P repliable datagram into the dissector.

Uses of DataFormatException in net.i2p.crypto

Methods in net.i2p.crypto that throw DataFormatException
`byte[]` `ElGamalAESEngine.decrypt(byte[] data, PrivateKey targetPrivateKey)` Deprecated. specify the key manager!
`byte[]` `ElGamalAESEngine.decrypt(byte[] data, PrivateKey targetPrivateKey, SessionKeyManager keyManager)` Decrypt the message using the given private key and using tags from the specified key manager.
`(package private) byte[]` `ElGamalAESEngine.decryptAESBlock(byte[] encrypted, int offset, int encryptedLen, SessionKey key, byte[] iv, byte[] sentTag, java.util.Set foundTags, SessionKey foundKey)`
`(package private) byte[]` `ElGamalAESEngine.decryptAESBlock(byte[] encrypted, SessionKey key, byte[] iv, byte[] sentTag, java.util.Set foundTags, SessionKey foundKey)` Decrypt the AES data with the session key and IV.
`(package private) byte[]` `ElGamalAESEngine.decryptExistingSession(byte[] data, SessionKey key, PrivateKey targetPrivateKey, java.util.Set foundTags, SessionKey usedKey, SessionKey foundKey)` scenario 2: The data begins with 32 byte session tag, which also serves as the preIV.

`(package private) byte[]`

`ElGamalAESEngine.decryptNewSession(byte[] data, PrivateKey targetPrivateKey, java.util.Set foundTags, SessionKey usedKey, SessionKey foundKey)`
scenario 1: Begin with 222 bytes, ElG encrypted, containing: - 32 byte SessionKey - 32 byte pre-IV for the AES - 158 bytes of random padding Then encrypt with AES using that session key and the first 16 bytes of the SHA256 of the pre-IV, using the decryptAESBlock method & structure.

Uses of DataFormatException in net.i2p.data

Methods in net.i2p.data that throw DataFormatException
`Destination` `PrivateKeyFile.createIfAbsent()` Also reads in the file to get the privKey and signingPrivKey, which aren't available from I2PClient.
`void` `DataStructure.fromBase64(java.lang.String data)` Load the structure from the base 64 encoded data provided
`void` `DataStructureImpl.fromBase64(java.lang.String data)`
`void` `DataStructure.fromByteArray(byte[] data)`
`void` `DataStructureImpl.fromByteArray(byte[] data)`
`static java.util.Date` `DataHelper.fromDate(byte[] src, int offset)`
`static int` `DataHelper.fromProperties(byte[] source, int offset, java.util.Properties target)` Writes the props to the byte array, not sorted (unless the target param is an OrderedProperties)
`Destination` `PrivateKeyFile.getDestination()` Also sets the local privKey and signingPrivKey
`static java.lang.Boolean` `DataHelper.readBoolean(java.io.InputStream in)` Read in a boolean as specified by the I2P data structure spec.
`int` `Certificate.readBytes(byte[] source, int offset)`
`int` `Destination.readBytes(byte[] source, int offset)`
`void` `SigningPrivateKey.readBytes(java.io.InputStream in)`
`void` `DataStructure.readBytes(java.io.InputStream in)` Load up the current object with data from the given stream.
`void` `Payload.readBytes(java.io.InputStream in)`
`void` `Certificate.readBytes(java.io.InputStream in)`
`void` `SigningPublicKey.readBytes(java.io.InputStream in)`
`void` `SessionTag.readBytes(java.io.InputStream in)`
`void` `Destination.readBytes(java.io.InputStream in)`
`void` `Address.readBytes(java.io.InputStream in)`
`void` `PrivateKey.readBytes(java.io.InputStream in)`
`void` `TunnelId.readBytes(java.io.InputStream in)`
`void` `RouterAddress.readBytes(java.io.InputStream in)`
`void` `Hash.readBytes(java.io.InputStream in)`
`void` `RouterIdentity.readBytes(java.io.InputStream in)`
`void` `LeaseSet.readBytes(java.io.InputStream in)`
`void` `RouterInfo.readBytes(java.io.InputStream in)`
`void` `Signature.readBytes(java.io.InputStream in)`
`void` `Lease.readBytes(java.io.InputStream in)`
`void` `SessionKey.readBytes(java.io.InputStream in)`
`void` `PublicKey.readBytes(java.io.InputStream in)`
`static java.util.Date` `DataHelper.readDate(java.io.InputStream in)` Read in a date from the stream as specified by the I2P data structure spec.
`static long` `DataHelper.readLong(java.io.InputStream rawStream, int numBytes)` Read the stream for an integer as defined by the I2P data structure specification.
`static java.util.Properties` `DataHelper.readProperties(java.io.InputStream rawStream)` Read a mapping from the stream, as defined by the I2P data structure spec, and store it into a Properties object.
`static java.lang.String` `DataHelper.readString(java.io.InputStream in)` Read in a string from the stream as specified by the I2P data structure spec.
`void` `LeaseSet.sign(SigningPrivateKey key)` Sign the structure using the supplied signing key
`void` `RouterInfo.sign(SigningPrivateKey key)` Sign the structure using the supplied signing key
`static int` `DataHelper.toProperties(byte[] target, int offset, java.util.Properties props)`
`void` `PrivateKeyFile.write()` Copied from I2PClientImpl.createDestination()
`static void` `DataHelper.writeBoolean(java.io.OutputStream out, java.lang.Boolean bool)` Write out a boolean as specified by the I2P data structure spec.
`int` `TunnelId.writeBytes(byte[] target, int offset)`
`void` `SigningPrivateKey.writeBytes(java.io.OutputStream out)`
`void` `DataStructure.writeBytes(java.io.OutputStream out)` Write out the data structure to the stream, using the format defined in the I2P data structure specification.
`void` `Payload.writeBytes(java.io.OutputStream out)`
`void` `Certificate.writeBytes(java.io.OutputStream out)`
`void` `SigningPublicKey.writeBytes(java.io.OutputStream out)`
`void` `SessionTag.writeBytes(java.io.OutputStream out)`
`void` `Destination.writeBytes(java.io.OutputStream out)`
`void` `Address.writeBytes(java.io.OutputStream out)`
`void` `PrivateKey.writeBytes(java.io.OutputStream out)`
`void` `TunnelId.writeBytes(java.io.OutputStream out)`
`void` `RouterAddress.writeBytes(java.io.OutputStream out)`
`void` `Hash.writeBytes(java.io.OutputStream out)`
`void` `RouterIdentity.writeBytes(java.io.OutputStream out)`
`void` `LeaseSet.writeBytes(java.io.OutputStream out)`
`void` `RouterInfo.writeBytes(java.io.OutputStream out)`
`void` `Signature.writeBytes(java.io.OutputStream out)`
`void` `Lease.writeBytes(java.io.OutputStream out)`
`void` `SessionKey.writeBytes(java.io.OutputStream out)`
`void` `PublicKey.writeBytes(java.io.OutputStream out)`
`static void` `DataHelper.writeDate(java.io.OutputStream out, java.util.Date date)` Write out a date to the stream as specified by the I2P data structure spec.
`static void` `DataHelper.writeLong(java.io.OutputStream rawStream, int numBytes, long value)` Write an integer as defined by the I2P data structure specification to the stream.
`static void` `DataHelper.writeProperties(java.io.OutputStream rawStream, java.util.Properties props)` Write a mapping to the stream, as defined by the I2P data structure spec, and store it into a Properties object.
`static void` `DataHelper.writeProperties(java.io.OutputStream rawStream, java.util.Properties props, boolean utf8)` Writes the props to the stream, sorted by property name.
`static void` `DataHelper.writeString(java.io.OutputStream out, java.lang.String string)` Write out a string to the stream as specified by the I2P data structure spec.

Constructors in net.i2p.data that throw DataFormatException
`Destination(java.lang.String s)` alternative constructor which takes a base64 string representation
`PrivateKey(java.lang.String base64Data)` constructs from base64
`PublicKey(java.lang.String base64Data)` constructs from base64
`SigningPrivateKey(java.lang.String base64Data)` constructs from base64
`SigningPublicKey(java.lang.String base64Data)` constructs from base64
`VerifiedDestination(Destination d)` create from an existing Dest
`VerifiedDestination(java.lang.String s)` alternative constructor which takes a base64 string representation

Uses of DataFormatException in net.i2p.data.i2cp

Methods in net.i2p.data.i2cp that throw DataFormatException
`void` `SessionConfig.readBytes(java.io.InputStream rawConfig)`
`void` `I2CPMessageImpl.readBytes(java.io.InputStream in)`
`void` `MessageId.readBytes(java.io.InputStream in)`
`void` `SessionId.readBytes(java.io.InputStream in)`
`void` `AbuseSeverity.readBytes(java.io.InputStream in)`
`void` `AbuseReason.readBytes(java.io.InputStream in)`
`void` `SessionConfig.signSessionConfig(SigningPrivateKey signingKey)` Sign the structure using the supplied private key
`void` `SessionConfig.writeBytes(java.io.OutputStream out)`
`void` `I2CPMessageImpl.writeBytes(java.io.OutputStream out)`
`void` `MessageId.writeBytes(java.io.OutputStream out)`
`void` `SessionId.writeBytes(java.io.OutputStream out)`
`void` `AbuseSeverity.writeBytes(java.io.OutputStream out)`
`void` `AbuseReason.writeBytes(java.io.OutputStream out)`

Uses of DataFormatException in net.i2p.data.i2np

Methods in net.i2p.data.i2np that throw DataFormatException
`int` `GarlicClove.readBytes(byte[] source, int offset)`
`int` `DeliveryInstructions.readBytes(byte[] data, int offset)`
`void` `I2NPMessageImpl.readBytes(java.io.InputStream in)`
`void` `GarlicClove.readBytes(java.io.InputStream in)`
`void` `DeliveryInstructions.readBytes(java.io.InputStream in)`
`void` `I2NPMessageImpl.writeBytes(java.io.OutputStream out)`
`void` `GarlicClove.writeBytes(java.io.OutputStream out)`
`void` `DeliveryInstructions.writeBytes(java.io.OutputStream out)`

Uses of DataFormatException in net.i2p.i2ptunnel

Methods in net.i2p.i2ptunnel that throw DataFormatException
`static Destination` `I2PTunnel.destFromName(java.lang.String name)` Generates a Destination from a name.

Uses of DataFormatException in net.i2p.router

Methods in net.i2p.router that throw DataFormatException
`void` `LeaseSetKeys.readBytes(java.io.InputStream in)`
`void` `LeaseSetKeys.writeBytes(java.io.OutputStream out)`

Uses of DataFormatException in net.i2p.sam

Methods in net.i2p.sam that throw DataFormatException
`boolean` `SAMStreamSession.connect(int id, java.lang.String dest, java.util.Properties props)` Connect the SAM STREAM session to the specified Destination
`boolean` `SAMv2StreamSession.connect(int id, java.lang.String dest, java.util.Properties props)` Connect the SAM STREAM session to the specified Destination
`void` `SAMv3StreamSession.connect(SAMv3Handler handler, java.lang.String dest, java.util.Properties props)` Connect the SAM STREAM session to the specified Destination
`static Destination` `SAMUtils.getDest(java.lang.String s)` Resolve the destination from a key or a hostname
`(package private) SAMv3DatagramSession` `SAMv3Handler.newSAMDatagramSession(java.lang.String login)`
`(package private) SAMv3RawSession` `SAMv3Handler.newSAMRawSession(java.lang.String login)`
`(package private) SAMv3StreamSession` `SAMv3Handler.newSAMStreamSession(java.lang.String login)`
`(package private) SAMStreamSession` `SAMv2Handler.newSAMStreamSession(java.lang.String destKeystream, java.lang.String direction, java.util.Properties props)`
`(package private) SAMStreamSession` `SAMv1Handler.newSAMStreamSession(java.lang.String destKeystream, java.lang.String direction, java.util.Properties props)`
`boolean` `SAMDatagramSession.sendBytes(java.lang.String dest, byte[] data)` Send bytes through a SAM DATAGRAM session.
`boolean` `SAMRawSession.sendBytes(java.lang.String dest, byte[] data)` Send bytes through a SAM RAW session.
`boolean` `SAMv3Handler.Session.sendBytes(java.lang.String dest, byte[] data)`
`abstract boolean` `SAMMessageSession.sendBytes(java.lang.String dest, byte[] data)` Send bytes through a SAM message-based session.
`boolean` `SAMv3StreamSession.sendBytes(java.lang.String s, byte[] b)`
`protected boolean` `SAMMessageSession.sendBytesThroughMessageSession(java.lang.String dest, byte[] data)` Actually send bytes through the SAM message-based session I2PSession (er...).

Constructors in net.i2p.sam that throw DataFormatException
`SAMDatagramSession(java.io.InputStream destStream, java.util.Properties props, SAMDatagramReceiver recv)` Create a new SAM DATAGRAM session.
`SAMDatagramSession(java.lang.String dest, java.util.Properties props, SAMDatagramReceiver recv)` Create a new SAM DATAGRAM session.
`SAMMessageSession(java.io.InputStream destStream, java.util.Properties props)` Initialize a new SAM message-based session.
`SAMMessageSession(java.lang.String dest, java.util.Properties props)` Initialize a new SAM message-based session.
`SAMRawSession(java.io.InputStream destStream, java.util.Properties props, SAMRawReceiver recv)` Create a new SAM RAW session.
`SAMRawSession(java.lang.String dest, java.util.Properties props, SAMRawReceiver recv)` Create a new SAM RAW session.
`SAMStreamSession(java.io.InputStream destStream, java.lang.String dir, java.util.Properties props, SAMStreamReceiver recv)` Create a new SAM STREAM session.
`SAMStreamSession(java.lang.String dest, java.lang.String dir, java.util.Properties props, SAMStreamReceiver recv)` Create a new SAM STREAM session.
`SAMv2StreamSession(java.io.InputStream destStream, java.lang.String dir, java.util.Properties props, SAMStreamReceiver recv)` Create a new SAM STREAM session.
`SAMv2StreamSession(java.lang.String dest, java.lang.String dir, java.util.Properties props, SAMStreamReceiver recv)` Create a new SAM STREAM session.
`SAMv3DatagramSession(java.lang.String nick)` build a DatagramSession according to informations registered with the given nickname
`SAMv3RawSession(java.lang.String nick)` Build a Raw Datagram Session according to information registered with the given nickname
`SAMv3StreamSession(java.lang.String login)` Create a new SAM STREAM session, according to information registered with the given nickname