v0.8.1: bugfix incorrect value length
This commit is contained in:
		
							parent
							
								
									607e352b17
								
							
						
					
					
						commit
						fb178d5e0c
					
				| @ -114,7 +114,7 @@ ASN1.parse = function parseAsn1(buf, depth) { | |||||||
|   asn1.children = []; |   asn1.children = []; | ||||||
|   while (iters < 15 && index < buf.byteLength) { |   while (iters < 15 && index < buf.byteLength) { | ||||||
|     iters += 1; |     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); |     index += (2 + child.lengthSize + child.length); | ||||||
|     asn1.children.push(child); |     asn1.children.push(child); | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "rasha", |   "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.", |   "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", |   "homepage": "https://git.coolaj86.com/coolaj86/rasha.js", | ||||||
|   "main": "index.js", |   "main": "index.js", | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user