提交 b1834b5e 编写于 作者: A Andy Polyakov 提交者: Matt Caswell

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

Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 58d47cf0
...@@ -77,7 +77,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, ...@@ -77,7 +77,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;
...@@ -107,7 +108,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, ...@@ -107,7 +108,8 @@ 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) {
...@@ -121,7 +123,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, ...@@ -121,7 +123,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;
...@@ -154,7 +157,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, ...@@ -154,7 +157,8 @@ 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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册