Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
9e763848
Commit
9e763848
authored
Oct 18, 2016
by
garciay
Browse files
Bug fixed in GnLayer/Security (thanks to Commsignia)
parent
4e42dfb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
javasrc/adapter/org/etsi/its/adapter/ports/GnPort.java
View file @
9e763848
...
@@ -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
)
0x
01
},
// Signature
new
byte
[]
{
(
byte
)
0x
43
},
// Signature
length
new
byte
[]
{
(
byte
)
0x
43
}
// Signature
length
new
byte
[]
{
(
byte
)
0x
01
}
// 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
)
0x
01
},
// Signature
new
byte
[]
{
(
byte
)
0x
43
},
// Signature
length
new
byte
[]
{
(
byte
)
0x
43
}
// Signature
length
new
byte
[]
{
(
byte
)
0x
01
}
// Signature
);
);
//TERFactory.getInstance().logDebug("GnPort.createSecuredMessage: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData));
//TERFactory.getInstance().logDebug("GnPort.createSecuredMessage: toBeSignedData=" + ByteHelper.byteArrayToString(toBeSignedData));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment