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",