diff options
author | Andy Polyakov <appro@openssl.org> | 2003-01-23 10:05:39 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2003-01-23 10:05:39 +0000 |
commit | 97e6bf6b22d75b847b5c9c0472c54ffe3169eece (patch) | |
tree | dbb1616064c6f5f3ea5d8b00a3a4ebda4e0e2a0a /crypto/aes | |
parent | 04da4558dd70add8069d90ef7c1a5dd17c7b76c2 (diff) |
Workaround for lame compiler bug introduced in "CPU pack" for MSVC6SP5.
Diffstat (limited to 'crypto/aes')
-rw-r--r-- | crypto/aes/aes_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/aes/aes_core.c b/crypto/aes/aes_core.c index ea884f6f9e..2f41a825f8 100644 --- a/crypto/aes/aes_core.c +++ b/crypto/aes/aes_core.c @@ -750,7 +750,7 @@ int AES_set_encrypt_key(const unsigned char *userKey, const int bits, rk[2] = GETU32(userKey + 8); rk[3] = GETU32(userKey + 12); if (bits == 128) { - for (;;) { + while (1) { temp = rk[3]; rk[4] = rk[0] ^ (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ @@ -770,7 +770,7 @@ int AES_set_encrypt_key(const unsigned char *userKey, const int bits, rk[4] = GETU32(userKey + 16); rk[5] = GETU32(userKey + 20); if (bits == 192) { - for (;;) { + while (1) { temp = rk[ 5]; rk[ 6] = rk[ 0] ^ (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ @@ -792,7 +792,7 @@ int AES_set_encrypt_key(const unsigned char *userKey, const int bits, rk[6] = GETU32(userKey + 24); rk[7] = GETU32(userKey + 28); if (bits == 256) { - for (;;) { + while (1) { temp = rk[ 7]; rk[ 8] = rk[ 0] ^ (Te4[(temp >> 16) & 0xff] & 0xff000000) ^ |