Opened 3 years ago

Last modified 2 years ago

#1714 infoneeded_new defect

CheckEmailTask: Can't decrypt email packet

Reported by: killyourtv Owned by:
Priority: minor Milestone: undecided
Component: apps/plugins Version: 0.9.23
Keywords: I2P-Bote Cc:
Parent Tickets:

Description

I'm seeing the following logged with I2P-Bote 0.4.2:

11/21/15 18:55:10.995 ERROR [EmailPktTask] 2p.bote.network.CheckEmailTask: Can't decrypt email packet: Type=EncryptedEmailPacket, code=<E>, sizeBytes=9755, DHTkey=[Hash: UszLYwdf6m0ms2Gxo6MikQ8ftepnHrhLM1h9MQiJNgQ=], tstamp=0, alg=521-bit Elliptic Curve Encryption, delVerifHash=[Hash: 1-s5v9nRwY0bwfByboloIDIxAsebqik8zW3ubIhwti0=], encrLen=9682
javax.crypto.BadPaddingException: pad block corrupted
        at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source)
        at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
        at javax.crypto.Cipher.doFinal(Cipher.java:2377)
        at i2p.bote.crypto.AbstractCryptoImplementation.decryptAes(AbstractCryptoImplementation.java:97)
        at i2p.bote.crypto.ECDH_ECDSA.decrypt(ECDH_ECDSA.java:353)
        at i2p.bote.packet.dht.EncryptedEmailPacket.decrypt(EncryptedEmailPacket.java:164)
        at i2p.bote.network.CheckEmailTask$EmailPacketTask.run(CheckEmailTask.java:216)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
11/21/15 18:55:10.995 ERROR [EmailPktTask] 2p.bote.network.CheckEmailTask: Can't decrypt email packet: Type=EncryptedEmailPacket, code=<E>, sizeBytes=7067, DHTkey=[Hash: KW6I0PQiD~yAnZIkz~eTx0jd4jq0WjaBnbcPTg2NHGQ=], tstamp=0, alg=521-bit Elliptic Curve Encryption, delVerifHash=[Hash: R96~1Zyb2J~PCxjSag-7k2awKqH9w8tz3UiWAubr8TM=], encrLen=6994
javax.crypto.BadPaddingException: pad block corrupted
        at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.doFinal(Unknown Source)
        at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)
        at javax.crypto.Cipher.doFinal(Cipher.java:2377)
        at i2p.bote.crypto.AbstractCryptoImplementation.decryptAes(AbstractCryptoImplementation.java:97)
        at i2p.bote.crypto.ECDH_ECDSA.decrypt(ECDH_ECDSA.java:353)
        at i2p.bote.packet.dht.EncryptedEmailPacket.decrypt(EncryptedEmailPacket.java:164)
        at i2p.bote.network.CheckEmailTask$EmailPacketTask.run(CheckEmailTask.java:216)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Subtickets (add)

Change History (3)

comment:1 Changed 3 years ago by str4d

Not sure what is causing this, I don't see anything in the 0.4.2 update (yet) that could have caused this. Are you sure it never happened in earlier versions? ie. is this a noticeably common error in your logs now?

comment:2 Changed 3 years ago by str4d

  • Status changed from new to infoneeded_new

comment:3 Changed 2 years ago by str4d

Migrated to https://github.com/i2p/i2p.i2p-bote/issues - I will close these tickets as things are resolved rather than right now, but please make future comments on GitHub?.

Note: See TracTickets for help on using tickets.