Win fixes
This commit is contained in:
Vendored
+4
@@ -34,7 +34,11 @@
|
|||||||
#define GCM_VALIDATE( cond ) \
|
#define GCM_VALIDATE( cond ) \
|
||||||
MBEDTLS_INTERNAL_VALIDATE( cond )
|
MBEDTLS_INTERNAL_VALIDATE( cond )
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define LBLOCKSIZE 4
|
||||||
|
#else
|
||||||
#define LBLOCKSIZE __SIZEOF_LONG__
|
#define LBLOCKSIZE __SIZEOF_LONG__
|
||||||
|
#endif
|
||||||
|
|
||||||
static void xorbytes( unsigned char *dst, const unsigned char *src, int n) {
|
static void xorbytes( unsigned char *dst, const unsigned char *src, int n) {
|
||||||
while(n > LBLOCKSIZE) {
|
while(n > LBLOCKSIZE) {
|
||||||
|
|||||||
+2
@@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#ifndef _WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user