Commit 231a53e4 authored by garciay's avatar garciay
Browse files

Bug fixed in signature header

parent fe3debc6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -495,7 +495,10 @@ public class GnPort extends ProtocolPort implements Runnable, IEthernetSpecific
            toBeSent  = ByteHelper.concat(
                basicHdr,
                toBeSignedData,
                new byte[] { 0x01, 0x00, 0x02 }, // Signature header
                new byte[] { 
                        (byte)0x00, // Public Key Alg: ecdsa nistp256 with sha256 (0)
                        (byte)0x02  // ECC Point Type: compressed lsb y-0 (2)
                    }, // Signature header
                ByteHelper.extract(signatureBytes, 2, signatureBytes.length - 2)
            );
        } catch (Exception e) {