We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/kjur/jsrsasign/blob/master/src/jws-3.3.js#L484
to prevent timing attacks.
What about doing something like this?
// from https://github.com/goinstant/buffer-equal-constant-time/blob/master/index.js var const_time_equal = function (s1, s2) { "use strict"; if (s1.length !== s2.length) { return false; } var i, c = 0; for (i = 0; i < s1.length; i += 1) { /*jslint bitwise: true */ c |= s1.charCodeAt(i) ^ s2.charCodeAt(i); // XOR /*jslint bitwise: false */ } return c === 0; };
The text was updated successfully, but these errors were encountered:
Hi @kjur did you manage to do this in a release?
Sorry, something went wrong.
No branches or pull requests
https://github.com/kjur/jsrsasign/blob/master/src/jws-3.3.js#L484
to prevent timing attacks.
What about doing something like this?
The text was updated successfully, but these errors were encountered: