From fb178d5e0ca830792961da842f74ff3ec32e09f5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 22 Nov 2018 21:15:51 -0700 Subject: [PATCH] v0.8.1: bugfix incorrect value length --- lib/asn1.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1.js b/lib/asn1.js index 73c8d12..e2dd093 100644 --- a/lib/asn1.js +++ b/lib/asn1.js @@ -114,7 +114,7 @@ ASN1.parse = function parseAsn1(buf, depth) { asn1.children = []; while (iters < 15 && index < buf.byteLength) { iters += 1; - child = ASN1.parse(buf.slice(index, index + asn1.length), (depth || 0) + 1); + child = ASN1.parse(buf.slice(index, asn1.length), (depth || 0) + 1); index += (2 + child.lengthSize + child.length); asn1.children.push(child); } diff --git a/package.json b/package.json index 3f8ab9d..3c3d87c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rasha", - "version": "0.8.0", + "version": "0.8.1", "description": "PEM-to-JWK and JWK-to-PEM for RSA keys in a lightweight, zero-dependency library focused on perfect universal compatibility.", "homepage": "https://git.coolaj86.com/coolaj86/rasha.js", "main": "index.js",