projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo.
[oweals/openssl.git]
/
crypto
/
idea
/
i_skey.c
diff --git
a/crypto/idea/i_skey.c
b/crypto/idea/i_skey.c
index fcbdb691e23d4f32e9540be499ab2b6074da1b53..1c95bc9c7b8872e15d5df3df6cbece14fe5094b1 100644
(file)
--- a/
crypto/idea/i_skey.c
+++ b/
crypto/idea/i_skey.c
@@
-1,5
+1,5
@@
/* crypto/idea/i_skey.c */
/* crypto/idea/i_skey.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-56,18
+56,11
@@
* [including the GNU Public Licence.]
*/
* [including the GNU Public Licence.]
*/
-#include
"idea.h"
+#include
<openssl/idea.h>
#include "idea_lcl.h"
#include "idea_lcl.h"
-#ifndef NOPROTO
static IDEA_INT inverse(unsigned int xin);
static IDEA_INT inverse(unsigned int xin);
-#else
-static IDEA_INT inverse();
-#endif
-
-void idea_set_encrypt_key(key, ks)
-unsigned char *key;
-IDEA_KEY_SCHEDULE *ks;
+void idea_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks)
{
int i;
register IDEA_INT *kt,*kf,r0,r1,r2;
{
int i;
register IDEA_INT *kt,*kf,r0,r1,r2;
@@
-101,9
+94,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;
{
int r;
register IDEA_INT *fp,*tp,t;
@@
-133,8
+124,7
@@
IDEA_KEY_SCHEDULE *dk;
}
/* taken directly from the 'paper' I'll have a look at it later */
}
/* 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;
{
long n1,n2,q,r,b1,b2,t;