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

Windows: Removed some VS2013 workarounds

This commit is contained in:
Tom Poole 2019-07-11 14:48:49 +01:00
parent ec43e11abc
commit 79d3e8b3f5
23 changed files with 45 additions and 290 deletions

View file

@ -29,13 +29,6 @@ namespace juce
struct MD5Generator
{
MD5Generator()
{
// have to copy this data manually, as VS2013 doesn't support member array initialisers
const uint32_t initialState[4] = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 };
memcpy (state, initialState, sizeof (state));
}
void processBlock (const void* data, size_t dataSize) noexcept
{
auto bufferPos = ((count[0] >> 3) & 0x3f);
@ -141,7 +134,7 @@ struct MD5Generator
private:
uint8_t buffer[64] = {};
uint32_t state[4];
uint32_t state[4] = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476 };
uint32_t count[2] = {};
static void copyWithEndiannessConversion (void* output, const void* input, size_t numBytes) noexcept

View file

@ -29,14 +29,6 @@ namespace juce
struct SHA256Processor
{
SHA256Processor()
{
// have to copy this data manually, as VS2013 doesn't support member array initialisers
const uint32_t initialState[8] = { 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 };
memcpy (state, initialState, sizeof (state));
}
// expects 64 bytes of data
void processFullBlock (const void* data) noexcept
{
@ -143,7 +135,8 @@ struct SHA256Processor
}
private:
uint32_t state[8];
uint32_t state[8] = { 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 };
uint64_t length = 0;
static inline uint32_t rotate (uint32_t x, uint32_t y) noexcept { return (x >> y) | (x << (32 - y)); }

View file

@ -54,10 +54,6 @@
//==============================================================================
#include <juce_core/juce_core.h>
#if JUCE_MSVC
#pragma warning (disable: 4351) // this is a dodgy VC2013 warning about C++11 behaviour
#endif
#include "encryption/juce_BlowFish.h"
#include "encryption/juce_Primes.h"
#include "encryption/juce_RSAKey.h"