Skip to content

Commit

Permalink
mend
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Lopes <pmlopes@gmail.com>
  • Loading branch information
pmlopes committed Nov 24, 2022
1 parent e0835c7 commit 852e266
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -531,12 +531,12 @@ public static byte[] toASN1(byte[] jwsSignature) {
&& (jwsSignature[2 * rawLen - k] == 0))
k--;

int l = k;

if (k == 0) {
throw new RuntimeException("Invalid ECDSA signature");
}

int l = k;

if (jwsSignature[2 * rawLen - k] < 0) {
l += 1;
}
Expand Down

0 comments on commit 852e266

Please sign in to comment.