Use the correct direction flag when setting cipher keys.

The flag was set incorrectly, but for most ciphers this does not have
any effect. AES in any of the block modes is picky about it though.
This commit is contained in:
Guus Sliepen 2011-07-16 15:15:29 +02:00
parent 303dd1e702
commit 2ba61742d4
2 changed files with 6 additions and 6 deletions

View file

@ -285,10 +285,10 @@ static bool metakey_ec_h(connection_t *c, const char *request) {
free(seed);
cipher_set_key(&c->incipher, mykey, true);
cipher_set_key(&c->incipher, mykey, false);
digest_set_key(&c->indigest, mykey + mykeylen, mykeylen);
cipher_set_key(&c->outcipher, hiskey, false);
cipher_set_key(&c->outcipher, hiskey, true);
digest_set_key(&c->outdigest, hiskey + hiskeylen, hiskeylen);
c->status.decryptin = true;