Brenton/curly braces (#1971)
* fix formatting * properly adjust various lines breakup multiple statements onto multiple lines * insert {} around if, for, etc.
This commit is contained in:
parent
e6802690b8
commit
f73e51e94c
57 changed files with 2247 additions and 1082 deletions
|
@ -197,8 +197,9 @@ public:
|
|||
*reinterpret_cast<uint32_t *>(_iv + 8) = *reinterpret_cast<const uint64_t *>(iv + 8);
|
||||
*reinterpret_cast<uint32_t *>(_iv + 12) = 0x01000000; // 0x00000001 in big-endian byte order
|
||||
#else
|
||||
for(int i=0;i<12;++i)
|
||||
for(int i=0;i<12;++i) {
|
||||
_iv[i] = iv[i];
|
||||
}
|
||||
_iv[12] = 0;
|
||||
_iv[13] = 0;
|
||||
_iv[14] = 0;
|
||||
|
@ -373,8 +374,9 @@ public:
|
|||
|
||||
// End of AAD is padded to a multiple of 16 bytes to ensure unique encoding.
|
||||
len &= 0xfU;
|
||||
if (len != 0)
|
||||
if (len != 0) {
|
||||
_gmac.update(Utils::ZERO256, 16 - len);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -495,8 +497,9 @@ public:
|
|||
{
|
||||
_gmac.update(aad, len);
|
||||
len &= 0xfU;
|
||||
if (len != 0)
|
||||
if (len != 0) {
|
||||
_gmac.update(Utils::ZERO256, 16 - len);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue