Skip to content
Snippets Groups Projects
Commit c00dbcc9 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Fixed a bug in the cbc_decryption.

Added the trivial invert crypto sub-module.

Rev: src/modules/_Crypto/crypto.c:1.6
parent 9724ab1e
Branches
Tags
No related merge requests found
/*
* $Id: crypto.c,v 1.5 1996/11/08 18:32:26 grubba Exp $
* $Id: crypto.c,v 1.6 1996/11/08 22:59:24 grubba Exp $
*
* A pike module for getting access to some common cryptos.
*
......@@ -571,7 +571,7 @@ static void f_cbc_decrypt(INT32 args)
while (soffset + PIKE_CRYPTO->block_size <= sp[-1].u.string->len) {
cbc_decrypt_step((const unsigned char *)sp[-1].u.string->str + soffset,
result);
result + roffset);
soffset += PIKE_CRYPTO->block_size;
roffset += PIKE_CRYPTO->block_size;
}
......@@ -603,6 +603,7 @@ void init_module_efuns(void)
init_md5_efuns();
init_idea_efuns();
init_des_efuns();
init_invert_efuns();
}
void init_module_programs(void)
......@@ -652,6 +653,7 @@ void init_module_programs(void)
init_md5_programs();
init_idea_programs();
init_des_programs();
init_invert_programs();
}
void exit_module(void)
......@@ -661,4 +663,5 @@ void exit_module(void)
exit_md5();
exit_idea();
exit_des();
exit_invert();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment