diff options
author | miod <> | 2014-04-16 04:38:11 +0000 |
---|---|---|
committer | miod <> | 2014-04-16 04:38:11 +0000 |
commit | 5b16e4cac0c78b070c3386c568c7153987b478f6 (patch) | |
tree | 2b99adc12b8d0370fd553783fe3359d8d70330f1 /src/lib/libcrypto/des | |
parent | ee3114a29a78969f6101144226487c5e6a646188 (diff) | |
download | openbsd-5b16e4cac0c78b070c3386c568c7153987b478f6.tar.gz openbsd-5b16e4cac0c78b070c3386c568c7153987b478f6.tar.bz2 openbsd-5b16e4cac0c78b070c3386c568c7153987b478f6.zip |
Remove _CRAY references. Note that this pleads for the use of <stdint.h>
fixed-width types instead of choosing int or long depending upon what we
think the architecture support.
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r-- | src/lib/libcrypto/des/qud_cksm.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/libcrypto/des/qud_cksm.c b/src/lib/libcrypto/des/qud_cksm.c index dac201227e..c1e11e5fe1 100644 --- a/src/lib/libcrypto/des/qud_cksm.c +++ b/src/lib/libcrypto/des/qud_cksm.c | |||
@@ -80,18 +80,10 @@ DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], | |||
80 | int i; | 80 | int i; |
81 | long l; | 81 | long l; |
82 | const unsigned char *cp; | 82 | const unsigned char *cp; |
83 | #ifdef _CRAY | ||
84 | struct lp_st { int a:32; int b:32; } *lp; | ||
85 | #else | ||
86 | DES_LONG *lp; | 83 | DES_LONG *lp; |
87 | #endif | ||
88 | 84 | ||
89 | if (out_count < 1) out_count=1; | 85 | if (out_count < 1) out_count=1; |
90 | #ifdef _CRAY | ||
91 | lp = (struct lp_st *) &(output[0])[0]; | ||
92 | #else | ||
93 | lp = (DES_LONG *) &(output[0])[0]; | 86 | lp = (DES_LONG *) &(output[0])[0]; |
94 | #endif | ||
95 | 87 | ||
96 | z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]); | 88 | z0=Q_B0((*seed)[0])|Q_B1((*seed)[1])|Q_B2((*seed)[2])|Q_B3((*seed)[3]); |
97 | z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); | 89 | z1=Q_B0((*seed)[4])|Q_B1((*seed)[5])|Q_B2((*seed)[6])|Q_B3((*seed)[7]); |
@@ -124,14 +116,8 @@ DES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[], | |||
124 | { | 116 | { |
125 | /* The MIT library assumes that the checksum is | 117 | /* The MIT library assumes that the checksum is |
126 | * composed of 2*out_count 32 bit ints */ | 118 | * composed of 2*out_count 32 bit ints */ |
127 | #ifdef _CRAY | ||
128 | (*lp).a = z0; | ||
129 | (*lp).b = z1; | ||
130 | lp++; | ||
131 | #else | ||
132 | *lp++ = z0; | 119 | *lp++ = z0; |
133 | *lp++ = z1; | 120 | *lp++ = z1; |
134 | #endif | ||
135 | } | 121 | } |
136 | } | 122 | } |
137 | return(z0); | 123 | return(z0); |