Win fixes

This commit is contained in:
Luca Deri
2022-02-23 21:00:53 +01:00
parent 16ed0fd3f8
commit 34e020ac35
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -34,7 +34,11 @@
#define GCM_VALIDATE( cond ) \
MBEDTLS_INTERNAL_VALIDATE( cond )
#ifdef _WIN32
#define LBLOCKSIZE 4
#else
#define LBLOCKSIZE __SIZEOF_LONG__
#endif
static void xorbytes( unsigned char *dst, const unsigned char *src, int n) {
while(n > LBLOCKSIZE) {
+2
View File
@@ -1,6 +1,8 @@
#include <stdint.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <string.h>
#include <stdlib.h>