1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Formatting: Remove double-dots from comments and other strings

This commit is contained in:
reuk 2025-11-17 19:00:05 +00:00
parent 82dc6d1c7e
commit 83e5264c86
No known key found for this signature in database
209 changed files with 508 additions and 509 deletions

View file

@ -48,7 +48,7 @@ RSAKey::RSAKey (const String& s)
}
else
{
// the string needs to be two hex numbers, comma-separated..
// the string needs to be two hex numbers, comma-separated
jassertfalse;
}
}
@ -123,7 +123,7 @@ BigInteger RSAKey::findBestCommonDivisor (const BigInteger& p, const BigInteger&
void RSAKey::createKeyPair (RSAKey& publicKey, RSAKey& privateKey,
const int numBits, const int* randomSeeds, const int numRandomSeeds)
{
jassert (numBits > 16); // not much point using less than this..
jassert (numBits > 16); // not much point using less than this
jassert (numRandomSeeds == 0 || numRandomSeeds >= 2); // you need to provide plenty of seeds here!
BigInteger p (Primes::createProbablePrime (numBits / 2, 30, randomSeeds, numRandomSeeds / 2));

View file

@ -67,7 +67,7 @@ namespace juce
}
@endcode
..or in Java with something like this:
...or in Java with something like this:
@code
public class RSAKey

View file

@ -132,7 +132,7 @@ struct MD5Generator
auto index = (count[0] >> 3) & 0x3f;
auto paddingLength = (index < 56 ? 56 : 120) - index;
uint8_t paddingBuffer[64] = { 0x80 }; // first byte is 0x80, remaining bytes are zero.
uint8_t paddingBuffer[64] = { 0x80 }; // first byte is 0x80, remaining bytes are zero
processBlock (paddingBuffer, (size_t) paddingLength);
processBlock (encodedLength, 8);

View file

@ -95,10 +95,10 @@ struct SHA256Processor
finalBlocks[numBytes++] = 128; // append a '1' bit
while (numBytes != 56 && numBytes < 64 + 56)
finalBlocks[numBytes++] = 0; // pad with zeros..
finalBlocks[numBytes++] = 0; // pad with zeros
for (int i = 8; --i >= 0;)
finalBlocks[numBytes++] = (uint8_t) (length >> (i * 8)); // append the length.
finalBlocks[numBytes++] = (uint8_t) (length >> (i * 8)); // append the length
jassert (numBytes == 64 || numBytes == 128);