From c9e090818272174cf38de4d498d4e1bd6c7f4dd5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 27 Oct 2003 21:53:02 +0000 Subject: Further work on SURBs. Decoding and further tests still required. --- src/org/noreply/fancydress/type3/routing/RoutingSMTP.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/org/noreply/fancydress/type3/routing/RoutingSMTP.java') diff --git a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java index 77df42f..b969841 100644 --- a/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java +++ b/src/org/noreply/fancydress/type3/routing/RoutingSMTP.java @@ -50,7 +50,10 @@ public class RoutingSMTP extends RoutingDestination { byte[] result = new byte[length]; int pos = 0; - System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN); + if (decodingHandle == null) + System.arraycopy(CryptoPrimitives.rand(DECODINGHANDLE_LEN), 0, result, pos, DECODINGHANDLE_LEN); + else + System.err.println("Using set decoding handle for "+mailbox); pos += DECODINGHANDLE_LEN; System.arraycopy(Util.toOctets(mailbox), 0, result, pos, mailbox.length()); pos += mailbox.length(); -- cgit v1.2.3