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
sm4Sbox中: return (b1 << 24) | (b2 << 16) | (b3 << 8) | (b4 << 0); 您在readme中也说了会左移溢出,但是并没有提解决方案,是对整体加解密没有影响吗?
The text was updated successfully, but these errors were encountered:
不是吖,你再仔细看看,我也提到了有一个循环左移的函数实现吖。
循环左移
function leftshift(a, n, size=32) { n = n % size return (a << n) | (a >>> (size - n)) }
Sorry, something went wrong.
不是吖,你再仔细看看,我也提到了有一个循环左移的函数实现吖。 function leftshift(a, n, size=32) { n = n % size return (a << n) | (a >>> (size - n)) }
谢谢,是我傻了,已经解决了
No branches or pull requests
sm4Sbox中:
return (b1 << 24) | (b2 << 16) | (b3 << 8) | (b4 << 0);
您在readme中也说了会左移溢出,但是并没有提解决方案,是对整体加解密没有影响吗?
The text was updated successfully, but these errors were encountered: