1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

* Added named unions in SHA256 code for compilers that don't support it.

* Some other porting suggestions from Chris Ghormley.

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@248 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2015-04-30 06:06:09 +00:00
parent a88fd947b2
commit acf35f0ea7
7 changed files with 54 additions and 45 deletions

View File

@ -151,12 +151,12 @@ typedef struct
{
uint64_t h[8];
uint8_t digest[64];
};
} h_dig;
union
{
uint64_t w[80];
uint8_t buffer[128];
};
} w_buf;
size_t size;
uint64_t totalSize;
} SHA512_CTX;