diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/idea/i_skey.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/idea/i_skey.c')
-rw-r--r-- | crypto/idea/i_skey.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/crypto/idea/i_skey.c b/crypto/idea/i_skey.c index 00fcc1e586..3733be0b60 100644 --- a/crypto/idea/i_skey.c +++ b/crypto/idea/i_skey.c @@ -65,9 +65,7 @@ static IDEA_INT inverse(unsigned int xin); static IDEA_INT inverse(); #endif -void idea_set_encrypt_key(key, ks) -unsigned char *key; -IDEA_KEY_SCHEDULE *ks; +void idea_set_encrypt_key(unsigned char *key, IDEA_KEY_SCHEDULE *ks) { int i; register IDEA_INT *kt,*kf,r0,r1,r2; @@ -101,9 +99,7 @@ IDEA_KEY_SCHEDULE *ks; } } -void idea_set_decrypt_key(ek, dk) -IDEA_KEY_SCHEDULE *ek; -IDEA_KEY_SCHEDULE *dk; +void idea_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk) { int r; register IDEA_INT *fp,*tp,t; @@ -133,8 +129,7 @@ IDEA_KEY_SCHEDULE *dk; } /* taken directly from the 'paper' I'll have a look at it later */ -static IDEA_INT inverse(xin) -unsigned int xin; +static IDEA_INT inverse(unsigned int xin) { long n1,n2,q,r,b1,b2,t; |