forked from I2P_Developers/i2p.i2p
- Fix delivery instructions test
This commit is contained in:
@ -67,13 +67,13 @@ public class DeliveryInstructions extends DataStructureImpl {
|
||||
public boolean getEncrypted() { return _encrypted; }
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default false, unused
|
||||
* For cloves only (not tunnels), default null, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
public void setEncrypted(boolean encrypted) { _encrypted = encrypted; }
|
||||
|
||||
/**
|
||||
* For cloves only (not tunnels), default false, unused
|
||||
* For cloves only (not tunnels), default null, unused
|
||||
* @deprecated unused
|
||||
*/
|
||||
public SessionKey getEncryptionKey() { return _encryptionKey; }
|
||||
|
@ -26,13 +26,14 @@ public class DeliveryInstructionsTest extends StructureTest {
|
||||
instructions.setDelayRequested(true);
|
||||
instructions.setDelaySeconds(42);
|
||||
instructions.setDeliveryMode(DeliveryInstructions.DELIVERY_MODE_TUNNEL);
|
||||
instructions.setEncrypted(true);
|
||||
SessionKey key = new SessionKey();
|
||||
byte keyData[] = new byte[SessionKey.KEYSIZE_BYTES];
|
||||
for (int i = 0; i < keyData.length; i++)
|
||||
keyData[i] = (byte)i;
|
||||
key.setData(keyData);
|
||||
instructions.setEncryptionKey(key);
|
||||
// encryption key read/write disabled
|
||||
//instructions.setEncrypted(true);
|
||||
//SessionKey key = new SessionKey();
|
||||
//byte keyData[] = new byte[SessionKey.KEYSIZE_BYTES];
|
||||
//for (int i = 0; i < keyData.length; i++)
|
||||
// keyData[i] = (byte)i;
|
||||
//key.setData(keyData);
|
||||
//instructions.setEncryptionKey(key);
|
||||
Hash hash = new Hash();
|
||||
byte hashData[] = new byte[32];
|
||||
for (int i = 0; i < hashData.length; i++)
|
||||
|
Reference in New Issue
Block a user