libsec: fix inconsistent prototypes for des (from drawterm)

This commit is contained in:
cinap_lenrek 2023-01-06 18:57:14 +00:00
parent 51135e37ed
commit 768edd8f21
3 changed files with 6 additions and 6 deletions

View file

@ -188,7 +188,7 @@ struct DESstate
void setupDESstate(DESstate *s, uchar key[8], uchar *ivec);
void des_key_setup(uchar[8], ulong[32]);
void block_cipher(ulong*, uchar*, int);
void block_cipher(ulong[32], uchar[8], int);
void desCBCencrypt(uchar*, int, DESstate*);
void desCBCdecrypt(uchar*, int, DESstate*);
void desECBencrypt(uchar*, int, DESstate*);
@ -219,7 +219,7 @@ struct DES3state
};
void setupDES3state(DES3state *s, uchar key[3][8], uchar *ivec);
void triple_block_cipher(ulong keys[3][32], uchar*, int);
void triple_block_cipher(ulong keys[3][32], uchar[8], int);
void des3CBCencrypt(uchar*, int, DES3state*);
void des3CBCdecrypt(uchar*, int, DES3state*);
void des3ECBencrypt(uchar*, int, DES3state*);

View file

@ -180,7 +180,7 @@ struct DESstate
void setupDESstate(DESstate *s, uchar key[8], uchar *ivec);
void des_key_setup(uchar[8], ulong[32]);
void block_cipher(ulong*, uchar*, int);
void block_cipher(ulong[32], uchar[8], int);
void desCBCencrypt(uchar*, int, DESstate*);
void desCBCdecrypt(uchar*, int, DESstate*);
void desECBencrypt(uchar*, int, DESstate*);
@ -211,7 +211,7 @@ struct DES3state
};
void setupDES3state(DES3state *s, uchar key[3][8], uchar *ivec);
void triple_block_cipher(ulong keys[3][32], uchar*, int);
void triple_block_cipher(ulong[3][32], uchar[8], int);
void des3CBCencrypt(uchar*, int, DES3state*);
void des3CBCdecrypt(uchar*, int, DES3state*);
void des3ECBencrypt(uchar*, int, DES3state*);

View file

@ -369,7 +369,7 @@ keycompperm(u32int left, u32int right, ulong *ek)
}
void
des_key_setup(uchar key[8], ulong *ek)
des_key_setup(uchar key[8], ulong ek[32])
{
u32int left, right, v0, v1;
@ -471,7 +471,7 @@ des64to56(uchar *k64, uchar *k56)
}
void
key_setup(uchar key[7], ulong *ek)
key_setup(uchar key[7], ulong ek[32])
{
uchar k64[8];