mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
- First replacement of xyssl by polarssl where needed
This commit is contained in:
@@ -25,12 +25,12 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/net.h"
|
||||
#include "xyssl/aes.h"
|
||||
#include "xyssl/dhm.h"
|
||||
#include "xyssl/rsa.h"
|
||||
#include "xyssl/sha1.h"
|
||||
#include "xyssl/havege.h"
|
||||
#include "polarssl/net.h"
|
||||
#include "polarssl/aes.h"
|
||||
#include "polarssl/dhm.h"
|
||||
#include "polarssl/rsa.h"
|
||||
#include "polarssl/sha1.h"
|
||||
#include "polarssl/havege.h"
|
||||
|
||||
#define SERVER_NAME "localhost"
|
||||
#define SERVER_PORT 11999
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/bignum.h"
|
||||
#include "xyssl/config.h"
|
||||
#include "xyssl/havege.h"
|
||||
#include "polarssl/bignum.h"
|
||||
#include "polarssl/config.h"
|
||||
#include "polarssl/havege.h"
|
||||
|
||||
/*
|
||||
* Note: G = 4 is always a quadratic residue mod P,
|
||||
@@ -39,7 +39,7 @@ int main( void )
|
||||
{
|
||||
int ret = 1;
|
||||
|
||||
#if defined(XYSSL_GENPRIME)
|
||||
#if defined(POLARSSL_GENPRIME)
|
||||
mpi G, P, Q;
|
||||
havege_state hs;
|
||||
FILE *fout;
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/net.h"
|
||||
#include "xyssl/aes.h"
|
||||
#include "xyssl/dhm.h"
|
||||
#include "xyssl/rsa.h"
|
||||
#include "xyssl/sha1.h"
|
||||
#include "xyssl/havege.h"
|
||||
#include "polarssl/net.h"
|
||||
#include "polarssl/aes.h"
|
||||
#include "polarssl/dhm.h"
|
||||
#include "polarssl/rsa.h"
|
||||
#include "polarssl/sha1.h"
|
||||
#include "polarssl/havege.h"
|
||||
|
||||
#define SERVER_PORT 11999
|
||||
#define PLAINTEXT "==Hello there!=="
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/bignum.h"
|
||||
#include "polarssl/bignum.h"
|
||||
|
||||
int main( void )
|
||||
{
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/havege.h"
|
||||
#include "xyssl/bignum.h"
|
||||
#include "xyssl/x509.h"
|
||||
#include "xyssl/rsa.h"
|
||||
#include "polarssl/havege.h"
|
||||
#include "polarssl/bignum.h"
|
||||
#include "polarssl/x509.h"
|
||||
#include "polarssl/rsa.h"
|
||||
|
||||
#define KEY_SIZE 1024
|
||||
#define EXPONENT 65537
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/rsa.h"
|
||||
#include "xyssl/sha1.h"
|
||||
#include "polarssl/rsa.h"
|
||||
#include "polarssl/sha1.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "xyssl/rsa.h"
|
||||
#include "xyssl/sha1.h"
|
||||
#include "polarssl/rsa.h"
|
||||
#include "polarssl/sha1.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user