git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2903 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-08-11 03:36:18 +00:00
parent b6bbf34e52
commit 7bb4a2b21b
3 changed files with 9 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ md4_init (struct md4 *m)
A = 0x67452301;
}
static u_int32_t
static inline u_int32_t
cshift (u_int32_t x, unsigned n)
{
return (x << n) | (x >> (32 - n));
@@ -85,7 +85,7 @@ a = cshift(a + OP(b,c,d) + X[k] + i, s)
#define DO2(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,G)
#define DO3(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,H)
static void
static inline void
calc (struct md4 *m, u_int32_t *data)
{
u_int32_t AA, BB, CC, DD;
@@ -171,7 +171,7 @@ calc (struct md4 *m, u_int32_t *data)
* From `Performance analysis of MD5' by Joseph D. Touch <touch@isi.edu>
*/
static u_int32_t
static inline u_int32_t
swap_u_int32_t (u_int32_t t)
{
#if defined(WORDS_BIGENDIAN)

View File

@@ -68,7 +68,7 @@ md5_init (struct md5 *m)
A = 0x67452301;
}
static u_int32_t
static inline u_int32_t
cshift (u_int32_t x, unsigned n)
{
return (x << n) | (x >> (32 - n));
@@ -87,7 +87,7 @@ a = b + cshift(a + OP(b,c,d) + X[k] + (i), s)
#define DO3(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,H)
#define DO4(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,I)
static void
static inline void
calc (struct md5 *m, u_int32_t *data)
{
u_int32_t AA, BB, CC, DD;
@@ -195,7 +195,7 @@ calc (struct md5 *m, u_int32_t *data)
* From `Performance analysis of MD5' by Joseph D. Touch <touch@isi.edu>
*/
static u_int32_t
static inline u_int32_t
swap_u_int32_t (u_int32_t t)
{
#if defined(WORDS_BIGENDIAN)

View File

@@ -70,7 +70,7 @@ sha_init (struct sha *m)
E = 0xc3d2e1f0;
}
static u_int32_t
static inline u_int32_t
cshift (u_int32_t x, unsigned n)
{
return (x << n) | (x >> (32 - n));
@@ -98,7 +98,7 @@ do { \
AA = temp; \
} while(0)
static void
static inline void
calc (struct sha *m, u_int32_t *in)
{
u_int32_t AA, BB, CC, DD, EE;
@@ -219,7 +219,7 @@ calc (struct sha *m, u_int32_t *in)
* From `Performance analysis of SHA' by Joseph D. Touch <touch@isi.edu>
*/
static u_int32_t
static inline u_int32_t
swap_u_int32_t (u_int32_t t)
{
#if !defined(WORDS_BIGENDIAN)