diff options
Diffstat (limited to 'crypto/libdes/cbc3_enc.c')
-rw-r--r-- | crypto/libdes/cbc3_enc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/crypto/libdes/cbc3_enc.c b/crypto/libdes/cbc3_enc.c index 3863a67..a96f23c5 100644 --- a/crypto/libdes/cbc3_enc.c +++ b/crypto/libdes/cbc3_enc.c @@ -54,6 +54,8 @@ * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] + * + * $FreeBSD$ */ #include "des_locl.h" @@ -69,11 +71,11 @@ void des_3cbc_encrypt(des_cblock *input, des_cblock *output, long length, if (enc == DES_ENCRYPT) { - des_cbc_encrypt(input,output,length,ks1,iv1,enc); + des_cbc_encrypt((void*)input,(void*)output,length,ks1,iv1,enc); if (length >= sizeof(des_cblock)) memcpy(niv1,output[off],sizeof(des_cblock)); - des_cbc_encrypt(output,output,l8,ks2,iv1,!enc); - des_cbc_encrypt(output,output,l8,ks1,iv2, enc); + des_cbc_encrypt((void*)output,(void*)output,l8,ks2,iv1,!enc); + des_cbc_encrypt((void*)output,(void*)output,l8,ks1,iv2, enc); if (length >= sizeof(des_cblock)) memcpy(niv2,output[off],sizeof(des_cblock)); } @@ -81,11 +83,11 @@ void des_3cbc_encrypt(des_cblock *input, des_cblock *output, long length, { if (length >= sizeof(des_cblock)) memcpy(niv2,input[off],sizeof(des_cblock)); - des_cbc_encrypt(input,output,l8,ks1,iv2,enc); - des_cbc_encrypt(output,output,l8,ks2,iv1,!enc); + des_cbc_encrypt((void*)input,(void*)output,l8,ks1,iv2,enc); + des_cbc_encrypt((void*)output,(void*)output,l8,ks2,iv1,!enc); if (length >= sizeof(des_cblock)) memcpy(niv1,output[off],sizeof(des_cblock)); - des_cbc_encrypt(output,output,length,ks1,iv1, enc); + des_cbc_encrypt((void*)output,(void*)output,length,ks1,iv1, enc); } memcpy(*iv1,niv1,sizeof(des_cblock)); memcpy(*iv2,niv2,sizeof(des_cblock)); |