-
Notifications
You must be signed in to change notification settings - Fork 151
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
"umod" returns different data on same input. #234
Comments
This is a not working key example:
it doesn't need any passphrase. Thanks in advance. |
I'm using node-sshpk Library to sign data with openssh 8.0 generated private key. I have directly imported it in react code. As I have checked it's using browserify-rsa, which has as a dependency bn.js. So I have also checked that, after passing same data to:
return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false, len));
.umod always returns data randomly it's always different.
Problem occurs only on openssh 8.0 generated private key. keys generated with older version of openssh works as expected.
The text was updated successfully, but these errors were encountered: