I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ada67532 authored by zzz's avatar zzz
Browse files

Tunnels: For now, don't try to decrypt a build record with a ECIES key (proposal 152 WIP)

parent ceb0749e
No related branches found
No related tags found
No related merge requests found
package net.i2p.router.tunnel; package net.i2p.router.tunnel;
import net.i2p.I2PAppContext; import net.i2p.I2PAppContext;
import net.i2p.crypto.EncType;
import net.i2p.data.Base64; import net.i2p.data.Base64;
import net.i2p.data.DataFormatException; import net.i2p.data.DataFormatException;
import net.i2p.data.DataHelper; import net.i2p.data.DataHelper;
...@@ -88,6 +89,10 @@ public class BuildMessageProcessor { ...@@ -88,6 +89,10 @@ public class BuildMessageProcessor {
* @return the current hop's decrypted record or null on failure * @return the current hop's decrypted record or null on failure
*/ */
public BuildRequestRecord decrypt(TunnelBuildMessage msg, Hash ourHash, PrivateKey privKey) { public BuildRequestRecord decrypt(TunnelBuildMessage msg, Hash ourHash, PrivateKey privKey) {
// TODO proposal 152
if (privKey.getType() != EncType.ELGAMAL_2048)
return null;
BuildRequestRecord rv = null; BuildRequestRecord rv = null;
int ourHop = -1; int ourHop = -1;
long beforeActualDecrypt = 0; long beforeActualDecrypt = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment