From d8f8c178f93ed60d32a9e4c5e59740d47bfd6e78 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 20 Aug 2020 15:56:23 +0200 Subject: ASN.1 signature encoding bug fixed --- src/org/uic/barcode/staticFrame/StaticFrame.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/uic/barcode/staticFrame/StaticFrame.java b/src/org/uic/barcode/staticFrame/StaticFrame.java index 7a0f029..3c2a22c 100644 --- a/src/org/uic/barcode/staticFrame/StaticFrame.java +++ b/src/org/uic/barcode/staticFrame/StaticFrame.java @@ -379,9 +379,11 @@ public class StaticFrame { //INTEGER --> tag 2 int integerTag = 2; - byte[] b1 = toUnsignedBytes(i1); + //byte[] b1 = toUnsignedBytes(i1); + byte[] b1 = i1.toByteArray(); int lb1 = b1.length; - byte[] b2 = toUnsignedBytes(i2); + //byte[] b2 = toUnsignedBytes(i2); + byte[] b2 = i2.toByteArray(); int lb2 = b2.length; int sequenceLength = lb1 + lb2 + 4; -- cgit v1.2.3