@@ -302,12 +302,7 @@ STATIC prtab(char *, unsigned char *, int);
302
302
303
303
#ifndef LARGEDATA
304
304
STATIC
305
- permute (cp , out , p , chars_in )
306
- unsigned char * cp ;
307
- C_block * out ;
308
- C_block * p ;
309
- int chars_in ;
310
-
305
+ permute (unsigned char * cp , C_block * out , C_block * p , int chars_in )
311
306
{
312
307
DCL_BLOCK (D , D0 , D1 );
313
308
C_block * tp ;
@@ -490,9 +485,7 @@ extern char *__bcrypt(const char *, const char *); /* XXX */
490
485
* followed by an encryption produced by the "key" and "setting".
491
486
*/
492
487
char *
493
- crypt (key , setting )
494
- const char * key ;
495
- const char * setting ;
488
+ crypt (const char * key , const char * setting )
496
489
{
497
490
char * encp ;
498
491
int32_t i ;
@@ -631,8 +624,7 @@ static volatile int des_ready = 0;
631
624
* Set up the key schedule from the key.
632
625
*/
633
626
static int
634
- des_setkey (key )
635
- const char * key ;
627
+ des_setkey (const char * key )
636
628
{
637
629
DCL_BLOCK (K , K0 , K1 );
638
630
C_block * ptabp ;
@@ -664,11 +656,7 @@ const char *key;
664
656
* compiler and machine architecture.
665
657
*/
666
658
static int
667
- des_cipher (in , out , salt , num_iter )
668
- const char * in ;
669
- char * out ;
670
- long salt ;
671
- int num_iter ;
659
+ des_cipher (const char * in , char * out , long salt , int num_iter )
672
660
{
673
661
/* variables that we want in registers, most important first */
674
662
#if defined(pdp11 )
@@ -808,7 +796,7 @@ int num_iter;
808
796
* done at compile time, if the compiler were capable of that sort of thing.
809
797
*/
810
798
STATIC
811
- init_des ()
799
+ init_des (void )
812
800
{
813
801
int i ,
814
802
j ;
@@ -973,12 +961,10 @@ init_des()
973
961
* "perm" must be all-zeroes on entry to this routine.
974
962
*/
975
963
STATIC
976
- init_perm (perm , p , chars_in , chars_out )
977
- C_block perm [64 / CHUNKBITS ][1 << CHUNKBITS ];
978
- unsigned char p [64 ];
979
- int chars_in ,
980
- chars_out ;
981
-
964
+ init_perm (C_block perm [64 / CHUNKBITS ][1 << CHUNKBITS ],
965
+ unsigned char p [64 ],
966
+ int chars_in ,
967
+ int chars_out )
982
968
{
983
969
int i ,
984
970
j ,
@@ -1005,8 +991,7 @@ int chars_in,
1005
991
*/
1006
992
#ifdef NOT_USED
1007
993
int
1008
- setkey (key )
1009
- const char * key ;
994
+ setkey (const char * key )
1010
995
{
1011
996
int i ,
1012
997
j ,
@@ -1030,9 +1015,7 @@ const char *key;
1030
1015
* "encrypt" routine (for backwards compatibility)
1031
1016
*/
1032
1017
static int
1033
- encrypt (block , flag )
1034
- char * block ;
1035
- int flag ;
1018
+ encrypt (char * block , int flag )
1036
1019
{
1037
1020
int i ,
1038
1021
j ,
@@ -1066,11 +1049,7 @@ int flag;
1066
1049
1067
1050
#ifdef DEBUG
1068
1051
STATIC
1069
- prtab (s , t , num_rows )
1070
- char * s ;
1071
- unsigned char * t ;
1072
- int num_rows ;
1073
-
1052
+ prtab (char * s , unsigned char * t , int num_rows )
1074
1053
{
1075
1054
int i ,
1076
1055
j ;
0 commit comments