mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 00:02:59 +00:00
NTCP: Log tweaks to help on ticket #996
This commit is contained in:
1 parent
6de81d41d2
commit
f77a3c7f56
2 files changed
+9
-3
No files matched your search
@@ -81,8 +81,14 @@ public class CryptixAESEngine extends AESEngine {
|
||||
*/
|
||||
@Override
|
||||
public void encrypt(byte payload[], int payloadIndex, byte out[], int outIndex, SessionKey sessionKey, byte iv[], int ivOffset, int length) {
|
||||
if ( (payload == null) || (out == null) || (sessionKey == null) || (iv == null) )
|
||||
throw new NullPointerException("invalid args to aes");
|
||||
if (payload == null)
|
||||
throw new NullPointerException("invalid args to aes - payload");
|
||||
if (out == null)
|
||||
throw new NullPointerException("invalid args to aes - out");
|
||||
if (sessionKey == null)
|
||||
throw new NullPointerException("invalid args to aes - sessionKey");
|
||||
if (iv == null)
|
||||
throw new NullPointerException("invalid args to aes - iv");
|
||||
if (payload.length < payloadIndex + length)
|
||||
throw new IllegalArgumentException("Payload is too short");
|
||||
if (out.length < outIndex + length)
|
||||
|
||||
Reference in new issue
Block a user