v0.8.1: bugfix incorrect value length

This commit is contained in:
AJ ONeal 2018-11-22 21:15:51 -07:00
parent 607e352b17
commit fb178d5e0c
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

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