Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-02-11 09:17:41 +0300
committerAdam Langley <agl@chromium.org>2015-02-12 02:14:46 +0300
commit6eb000dbeea7e652921097eb324c0893ad685b16 (patch)
tree8df47893b3a8c70c95a2bccdb919b3e0884e850c /crypto/rc4
parent9ab14e00d5f9a1c9847137f1d6f776e18f59048b (diff)
Add in missing curly braces part 3.
Everything else. Change-Id: Iac02b144465b4e7b6d69ea22ff2aaf52695ae732
Diffstat (limited to 'crypto/rc4')
-rw-r--r--crypto/rc4/rc4.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/crypto/rc4/rc4.c b/crypto/rc4/rc4.c
index 00b59c80..2ebee3b2 100644
--- a/crypto/rc4/rc4.c
+++ b/crypto/rc4/rc4.c
@@ -285,34 +285,42 @@ void RC4(RC4_KEY *key, size_t len, const uint8_t *in, uint8_t *out) {
in += 8;
out += 8;
#endif
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
}
}
i = len & 0x07;
if (i) {
for (;;) {
RC4_LOOP(in, out, 0);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 1);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 2);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 3);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 4);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 5);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
RC4_LOOP(in, out, 6);
- if (--i == 0)
+ if (--i == 0) {
break;
+ }
}
}
key->x = x;