Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support long private keys in latest Chrome 32 #14

Merged
merged 1 commit into from
Jan 20, 2014

Conversation

vitalets
Copy link

In latest Chrome 32 I'm getting long private key and signature (> 256 bytes).
It means that writing directly to buffer bytes does not work correct:

crx[8] = keyLength
crx[12] = sigLength

When trying to install such crx you may get CRX_ZERO_SIGNATURE_LENGTH or CRX_ZERO_KEY_LENGTH errors.

This pr fixes it via using buffer.writeUInt32LE method.
Hope to be merged soon.
Thanks!

jed added a commit that referenced this pull request Jan 20, 2014
Support long private keys in latest Chrome 32
@jed jed merged commit 4fc5971 into thom4parisot:master Jan 20, 2014
@jed
Copy link
Contributor

jed commented Jan 20, 2014

thanks, @vitalets!

@vitalets vitalets deleted the fix-long-keys branch January 20, 2014 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants