diff options
Diffstat (limited to 'src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java')
-rw-r--r-- | src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java b/src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java index 4e3ab4f5..380ec143 100644 --- a/src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java +++ b/src/main/java/org/bouncycastle/eac/operator/jcajce/JcaEACSignerBuilder.java @@ -152,16 +152,18 @@ public class JcaEACSignerBuilder return ret; } - private static int unsignedIntLength(byte [] i) + private static int unsignedIntLength(byte[] i) { int len = i.length; if (i[0] == 0) + { len--; + } return len; } - private static void copyUnsignedInt(byte [] src, byte [] dst, int offset) + private static void copyUnsignedInt(byte[] src, byte[] dst, int offset) { int len = src.length; int readoffset = 0; |