Commit 9e763848 authored by garciay's avatar garciay
Browse files

Bug fixed in GnLayer/Security (thanks to Commsignia)

parent 4e42dfb4
...@@ -221,8 +221,8 @@ public class GnPort extends ProtocolPort implements Runnable, IEthernetSpecific ...@@ -221,8 +221,8 @@ public class GnPort extends ProtocolPort implements Runnable, IEthernetSpecific
(byte)p_beacon.length // Data payload length (byte)p_beacon.length // Data payload length
}, },
p_beacon, // End of SecuredMessage Payloads p_beacon, // End of SecuredMessage Payloads
new byte[] { (byte)0x01 }, // Signature new byte[] { (byte)0x43 }, // Signature length
new byte[] { (byte)0x43 } // Signature length new byte[] { (byte)0x01 } // Signature
); );
//TERFactory.getInstance().logDebug("GnPort.buildToBeSignedData: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData)); //TERFactory.getInstance().logDebug("GnPort.buildToBeSignedData: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData));
...@@ -490,8 +490,8 @@ public class GnPort extends ProtocolPort implements Runnable, IEthernetSpecific ...@@ -490,8 +490,8 @@ public class GnPort extends ProtocolPort implements Runnable, IEthernetSpecific
}, },
payloadLengthTls, // Data payload length payloadLengthTls, // Data payload length
securedPayload, securedPayload,
new byte[] { (byte)0x01 }, // Signature new byte[] { (byte)0x43 }, // Signature length
new byte[] { (byte)0x43 } // Signature length new byte[] { (byte)0x01 } // Signature
); );
//TERFactory.getInstance().logDebug("GnPort.createSecuredMessage: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData)); //TERFactory.getInstance().logDebug("GnPort.createSecuredMessage: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment