mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
- the key has to be truncated before setKey() is called or else it'll be rounded up to the nearest key size - not down
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@190 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
f600a9bb50
commit
019edc6694
@ -628,7 +628,7 @@ class Crypt_Rijndael {
|
||||
}
|
||||
}
|
||||
|
||||
$this->setKey($key);
|
||||
$this->setKey(substr($key, 0, $this->key_size));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user