modes/cfb128.c: make it indent-friendly.

Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Andy Polyakov 2015-01-21 16:47:51 +01:00 committed by Matt Caswell
parent 510edea8db
commit 638f75b686

View File

@ -84,7 +84,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
if (enc) { if (enc) {
#if !defined(OPENSSL_SMALL_FOOTPRINT) #if !defined(OPENSSL_SMALL_FOOTPRINT)
if (16%sizeof(size_t) == 0) do { /* always true actually */ if (16%sizeof(size_t) == 0) { /* always true actually */
do {
while (n && len) { while (n && len) {
*(out++) = ivec[n] ^= *(in++); *(out++) = ivec[n] ^= *(in++);
--len; --len;
@ -115,6 +116,7 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
*num = n; *num = n;
return; return;
} while (0); } while (0);
}
/* the rest would be commonly eliminated by x86* compiler */ /* the rest would be commonly eliminated by x86* compiler */
#endif #endif
while (l<len) { while (l<len) {
@ -128,7 +130,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
*num = n; *num = n;
} else { } else {
#if !defined(OPENSSL_SMALL_FOOTPRINT) #if !defined(OPENSSL_SMALL_FOOTPRINT)
if (16%sizeof(size_t) == 0) do { /* always true actually */ if (16%sizeof(size_t) == 0) { /* always true actually */
do {
while (n && len) { while (n && len) {
unsigned char c; unsigned char c;
*(out++) = ivec[n] ^ (c = *(in++)); ivec[n] = c; *(out++) = ivec[n] ^ (c = *(in++)); ivec[n] = c;
@ -162,6 +165,7 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,
*num = n; *num = n;
return; return;
} while (0); } while (0);
}
/* the rest would be commonly eliminated by x86* compiler */ /* the rest would be commonly eliminated by x86* compiler */
#endif #endif
while (l<len) { while (l<len) {