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

Removed os_port.h dependency. Fixed CA number issue (default now 120).

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@188 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2011-01-03 23:08:49 +00:00
parent b8d6697ef8
commit f5dbc8875e
20 changed files with 8062 additions and 21 deletions

View File

@ -35,6 +35,7 @@
*/
#include <string.h>
#include "os_port.h"
#include "crypto.h"
/* all commented out in skeleton mode */

View File

@ -65,6 +65,7 @@
#include <string.h>
#include <stdio.h>
#include <time.h>
#include "os_port.h"
#include "bigint.h"
#define V1 v->comps[v->size-1] /**< v1 for division */
@ -953,13 +954,12 @@ static bigint *regular_square(BI_CTX *ctx, bigint *bi)
do
{
long_comp tmp = w[2*i] + (long_comp)x[i]*x[i];
uint8_t c = 0;
w[2*i] = (comp)tmp;
carry = tmp >> COMP_BIT_SIZE;
for (j = i+1; j < t; j++)
{
c = 0;
uint8_t c = 0;
long_comp xx = (long_comp)x[i]*x[j];
if (COMP_MAX-xx < xx)
c = 1;

View File

@ -40,10 +40,17 @@ extern "C" {
#endif
#include "config.h"
#include "os_port.h"
#include "bigint_impl.h"
#include "bigint.h"
#ifndef STDCALL
#define STDCALL
#endif
#ifndef EXP_FUNC
#define EXP_FUNC
#endif
/* enable features based on a 'super-set' capbaility. */
#if defined(CONFIG_SSL_FULL_MODE)
#define CONFIG_SSL_ENABLE_CLIENT

View File

@ -36,6 +36,7 @@
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include "os_port.h"
#include "crypto_misc.h"
#ifdef CONFIG_WIN32_USE_CRYPTO_LIB
#include "wincrypt.h"

View File

@ -33,6 +33,7 @@
*/
#include <string.h>
#include "os_port.h"
#include "crypto.h"
/**

View File

@ -38,7 +38,7 @@
#include <string.h>
#include <stdio.h>
#include "os_port.h"
#include "crypto.h"
/**

View File

@ -33,6 +33,7 @@
*/
#include <string.h>
#include "os_port.h"
#include "crypto.h"
/* Constants for MD5Transform routine.

View File

@ -34,6 +34,7 @@
*/
#include <string.h>
#include "os_port.h"
#include "crypto.h"
/**

View File

@ -37,6 +37,7 @@
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include "os_port.h"
#include "crypto.h"
void RSA_priv_key_new(RSA_CTX **ctx,

View File

@ -34,6 +34,7 @@
*/
#include <string.h>
#include "os_port.h"
#include "crypto.h"
/*