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

Have a bug in php version of aes #1

Open
sugrob opened this issue Dec 11, 2012 · 0 comments
Open

Have a bug in php version of aes #1

sugrob opened this issue Dec 11, 2012 · 0 comments

Comments

@sugrob
Copy link

sugrob commented Dec 11, 2012

private static function invMain($state, $expandedKey, $nbrRounds){
$state = self::addRoundKey($state, self::createRoundKey($expandedKey,16_$nbrRounds));
for ($i = $nbrRounds-1; $i > 0; $i--)
$state = self::invRound($state, self::createRoundKey($expandedKey,16_i));

Look at the end of last line -> 16*i
i - is not php variable

Valicek1 added a commit to Valicek1/slowaes that referenced this issue Oct 29, 2016
Valicek1 added a commit to Valicek1/slowaes that referenced this issue Oct 30, 2016
Valicek1 added a commit to Valicek1/slowaes that referenced this issue Oct 30, 2016
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

No branches or pull requests

1 participant