mirror of
https://github.com/Cateners/tiny_computer.git
synced 2026-05-21 08:55:48 +08:00
Update code to v1.0.14 (10)
This commit is contained in:
Binary file not shown.
Binary file not shown.
9
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/README_EN.md
vendored
Normal file
9
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/README_EN.md
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
wolfSSL sample application project for Renesas RX72N EnvisionKit evaluation board
|
||||
======
|
||||
|
||||
<br>
|
||||
|
||||
A sample program for evaluating wolfSSL targeting the Renesas RX72N EnvisionKit evaluation board is provided. For details on the program, refer to the following documents included in the package.
|
||||
|
||||
+ InstructionManualForExample_RX72N_EnvisonKit_JP.pdf (Japanese)
|
||||
+ InstructionManualForExample_RX72N_EnvisonKit_EN.pdf(English)
|
||||
12
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/README_JP.md
vendored
Normal file
12
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/README_JP.md
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
Renesas RX72N EnvisionKit用 wolfSSLサンプルプロジェクト
|
||||
======
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
Renesas社製 RX72N EnvisionKit 評価ボードをターゲットとしてwolfSSLを評価するためのサンプルプログラムを提供します。サンプルプログラムに関するマニュアルは同梱の
|
||||
|
||||
+ InstructionManualForExample_RX72N_EnvisonKit_JP.pdf (日本語版)
|
||||
+ InstructionManualForExample_RX72N_EnvisonKit_EN.pdf(英語版)
|
||||
|
||||
を参照ください。
|
||||
309
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/README_EN.md
vendored
Normal file
309
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/README_EN.md
vendored
Normal file
@@ -0,0 +1,309 @@
|
||||
wolfSSL simple application project for RX72N EnvisionKit board
|
||||
======
|
||||
## 1. Overview
|
||||
-----
|
||||
|
||||
We provide a simple program for evaluating wolfSSL targeting the RX72N evaluation board, which has RX72 MCU on it. The sample program runs in a bare metal environment that does not use a real-time OS and uses e2 studio as an IDE. This document describes the procedure from build to execution of the sample program.
|
||||
|
||||
The sample provided is a single application that can evaluate the following four functions:
|
||||
|
||||
- CryptoTest: A program that automatically tests various cryptographic operation functions
|
||||
- Benchmark: A program that measures the execution speed of various cryptographic operations
|
||||
- TlsClient: A program that performs TLS communication with the opposite TLS server application
|
||||
- TlsServer: A program that performs TLS communication with the opposite TLS client application
|
||||
|
||||
Since the H/W settings and S/W settings for operating the evaluation board have already been prepared, the minimum settings are required to operate the sample application. In addition, the RootCA certificate and server-side certificate required for TLS communication have already been set for sample use only.
|
||||
|
||||
The following sections will walk you through the steps leading up to running the sample application.
|
||||
## 2. Target H/W, components and libraries
|
||||
-----
|
||||
|
||||
This sample program uses the following hardware and software libraries. If a new version of the software component is available at the time of use, please update it as appropriate.
|
||||
|
||||
|item|name & version|
|
||||
|:--|:--|
|
||||
|Board|RX72N EnvisionKit|
|
||||
|Device|R5F572NNHxFB|
|
||||
|IDE| Renesas e2Studio Version:2022-07 |
|
||||
|Emulator| E2 Emulator Lite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.15|
|
||||
|
||||
|
||||
The project of this sample program has a configuration file that uses the following FIT components.
|
||||
However, the FIT components themselves are not included in the distribution of this sample application. You need to download it by operating in the IDE. Some FIT components (TSIPs) cannot be downloaded directly from within the IDE and may need to be downloaded separately from the Renesas download site.
|
||||
|
||||
|
||||
|FIT component|version|name|
|
||||
|:--|:--|:--|
|
||||
|Board Support Packages|7.20|r_bsp|
|
||||
|CMT driver|5.20|r_cmt_rx|
|
||||
|Ethernet Driver|1.22|r_ether_rx|
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.15.l|r_tsip_rx|
|
||||
|
||||
## 3. Importing sample application project into e2Studio
|
||||
----
|
||||
|
||||
There is no need to create a new sample program. Since the project file is already prepared, please import the project from the IDE by following the steps below.
|
||||
|
||||
+ e2studio "File" menu> "Open project from file system ..."> "Directory (R) ..." Click the import source button and select the folder from which the project will be imported. Select the folder (Renesas/e2studio/{MCU}/{board-name-folder}/Simple) where this README file exists.
|
||||
+ Three projects that can be imported are listed, but check only the three projects "test" and "wolfssl" and click the "Finish" button.
|
||||
|
||||
You should see the **test** and **wolfssl** 2 projects you imported into the project explorer.
|
||||
|
||||
## 4. FIT module download and smart configurator file generation
|
||||
----
|
||||
|
||||
You will need to get the required FIT modules yourself. Follow the steps below to get them.
|
||||
|
||||
1. Open the test project in Project Explorer and double-click the **test.scfg** file to open the Smart Configurator Perspective.
|
||||
|
||||
2. Select the "Components" tab on the software component settings pane. Then click the "Add Component" button at the top right of the pane. The software component selection dialog will pop up. Click "Download the latest version of FIT driver and middleware" at the bottom of the dialog to get the modules. You can check the download destination folder by pressing "Basic settings...".
|
||||
|
||||
3. The latest version of the TSIP component may not be automatically obtained due to the delay in Renesas' support by the method in step 2 above. In that case, you can download it manually from the Renesas website. Unzip the downloaded component and store the files contained in the FIT Modules folder in the download destination folder of step 2.
|
||||
|
||||
4. Select the required FIT components shown from the list and press the "Finish" button. Repeat this operation until you have the required FIT components.
|
||||
|
||||
5. Select the Components tab on the Software Component Settings pane and select the r_t4_rx component. In the settings pane on the right, specify the IP address of this board as the value of the "# IP address for ch0, when DHCP disable." Property (e.g. 192.168.1.9).
|
||||
|
||||
6. Press the "Generate Code" button at the top right of the software component settings pane to have the smart configurator generate the source files. A src/smc_gen folder will be created under the smc project to store source files, libraries, etc.
|
||||
|
||||
## 5. Select the behavior of the test application
|
||||
----
|
||||
|
||||
The test project is a single sample application, but you can specify to perform one of the following by switching the settings:
|
||||
|
||||
- CryptoTest: A program that automatically tests various encryption operation functions
|
||||
- Benchmark: A program that measures the execution speed of various cryptographic operations
|
||||
- TlsClient: A program that performs TLS communication with the opposite TLS server application
|
||||
- TlsServer: A program that performs TLS communication with the opposite TLS client application
|
||||
-
|
||||
Open the <board-name-folder\>/test/src/wolfssl_simple_demo.h file and enable one of the following definitions:
|
||||
|
||||
- #define CRYPT_TEST
|
||||
- #define BENCHMARK
|
||||
- #define SIMPLE_TCP_CLIENT
|
||||
- #define SIMPLE_TLS_CLIENT
|
||||
- #define SIMPLE_TLS_TSIP_CLIENT
|
||||
- #define SIMPLE_TCP_SERVER
|
||||
- #define SIMPLE_TLS_SERVER
|
||||
|
||||
Then build the test application.
|
||||
|
||||
|
||||
## 6. Build and run the test application
|
||||
-----
|
||||
|
||||
Now that the test application is ready to build.
|
||||
|
||||
1. Build the wolfssl project on the project explorer, then the test project.
|
||||
|
||||
2. After a successful build, connect the target board to the emulator and supply external power.
|
||||
|
||||
3. Select "Run" menu> "Debug" to open the debug perspective.
|
||||
|
||||
4. The test application outputs the operating status to the standard output. Keep the "Renesas Debug Virtual Console" open for viewing this standard output.
|
||||
|
||||
5. Press the run button to run the test application.
|
||||
|
||||
6. CryptoTest, Benchmark, TLS_Client or TLS_Server After displaying the execution result according to the selected behavior, it enters an infinite loop, so if you think that the output has stopped, stop debugging.
|
||||
|
||||
## 7. Running test application as Client
|
||||
-----
|
||||
### 7.1 Run Client as TCP
|
||||
When it enables SIMPLE_TCP_CLIENT, we can run TCP clint on the board. We are able to use [this TCP server allication](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/server-tcp.c) as the opposite TCP server. To complie and run the server,
|
||||
```
|
||||
$ gcc server-tcp.c -o server-tcp
|
||||
$ ./server-tcp
|
||||
```
|
||||
|
||||
If needed, it updates server IP address and port. Those are defined by `SIMPLE_TCPSERVER_IP` and `SIMPLE_TCPSERVER_PORT` in `test/src/simple_tcp.c`
|
||||
You will see messages on Reneas Virtual Console when its communication succedes.
|
||||
|
||||
```
|
||||
Received : I hear ya fa shizzle!
|
||||
```
|
||||
|
||||
Also you will see messages on the server console.
|
||||
```
|
||||
$ ./server-tcp
|
||||
Waiting for a connection...
|
||||
Client connected successfully
|
||||
Client: Hello Server
|
||||
|
||||
Waiting for a connection...
|
||||
```
|
||||
### 7.2 Run Client as TLS (Software Only)
|
||||
When it enables SIMPLE_TLS_CLIENT, we can run TLS client on the board.If needed, it updates server IP address and port. Those are defined by `SIMPLE_TLSSERVER_IP` and `SIMPLE_TLSSERVER_PORT` in `test/src/simple_tls_tsip.c`. After changing it, you need to re-compile test project.
|
||||
|
||||
|
||||
As the opposite TLS server, we can use an example server in wolfSSL soure tree. To configure and build it,
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure
|
||||
$ make
|
||||
```
|
||||
|
||||
To run an example TLS server, we need to specify ECC certificate because our test client expctes to use ECC certificate for TLS communication. The setting is done in `user_settings.h` as the following macro definition.
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
|
||||
Therefore, for an example server, it needs to specify ECC certificate corresponding to client use.
|
||||
```
|
||||
./examples/server/server -v 4 -b -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem -A ./certs/client-ecc-cert.pem
|
||||
```
|
||||
|
||||
You will see messages on Renesas Debug Virtual Consol
|
||||
```
|
||||
cipher : TLS13-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
|
||||
On an example server side, you will see messages.
|
||||
```
|
||||
SSL version is TLSv1.3
|
||||
SSL cipher suite is TLS_AES_128_GCM_SHA256
|
||||
SSL curve name is SECP256R1
|
||||
Client message: Hello Server
|
||||
```
|
||||
|
||||
Note `-v 4` option in server execution command line means to use TLS 1.3. If you want to use smaller version of TLS than 1.3, `-v 4` needs to be removed from an exmeple server command options.
|
||||
|
||||
### 7.3 Run Client using TSIP driver
|
||||
When it enables SIMPLE_TLS_TSIP_CLIENT, we can run TLS client including TSIP driver on the baord.
|
||||
In this case, we disable `#define WOLFSSL_TLS13` and `#define USE_ECC_CERT`. As a result, TLS communication between Client and Server use TLS 1.2 and RSA certificate.
|
||||
|
||||
The table below shows the cipher suites that TSIP supports.
|
||||
|
||||
|Tls version |Certificate type|Cipher suites|
|
||||
|:--|:--|:--|
|
||||
|TLS1.3|RSA/ECDSA certificate| |
|
||||
|||TLS_AES_128_GCM_SHA256|
|
||||
|||TLS_AES_128_CCM_SHA256|
|
||||
|TLS1.2|RSA certificate|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256|
|
||||
||ECDSA certificate||
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256|
|
||||
|
||||
|
||||
As the opposite TLS server, we can use an example server in wolfSSL. To configure and run the TLS server
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure CFLAGS="-DWOLFSSL_STATIC_RSA"
|
||||
```
|
||||
|
||||
The server starts with the following command:
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -i
|
||||
```
|
||||
|
||||
|
||||
When you run the test application, it makes a TLS connection with the server application by TLS1.2, then exchanges a simple string and displays the following on the standard output.
|
||||
The cipher suites displayed depends on the combination of TLS version and certificate type.
|
||||
|
||||
```
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
```
|
||||
|
||||
When you want to run test project by TLS 1.3, it enables `#define WOLFSSL_TLS13` and then re-compile wolfssl and test project. It needs to add `-v 4` option to the server command above.
|
||||
|
||||
|
||||
## 8. Running test application as Server
|
||||
|
||||
### 8.1 Run Server as TCP Server
|
||||
When it enables `SIMPLE_TCP_SERVER`, we can run TCP server on the board. We are able to use [this TCP client](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/client-tcp.c) as the opposite TCP client. To complie and run the server,
|
||||
|
||||
```
|
||||
$ gcc client-tcp.c -o client-tcp
|
||||
```
|
||||
|
||||
After lunching TCP server on the board, it waits TCP Client connection. You will see messages if its communication succeeds.
|
||||
```
|
||||
[TCP Client terminal]
|
||||
$ ./client-tcp 192.168.10.33
|
||||
Message for server: hello
|
||||
Server: hello
|
||||
|
||||
[Renesas Debug Virtual Console]
|
||||
Received: hello
|
||||
```
|
||||
### 8.2 Run Server as TLS Server
|
||||
When it enables `SIMPLE_TLS_SERVER`, we can run TLS server on the board. We are able to use an example client included in wolfSSL. We can follow steps at [8.2 Run Client as TLS (Software Only)](#8.2-Run-Client-as-TLS-(Software-Only)) to compile the example client.
|
||||
|
||||
After re-building and lunching TLS server on the board, it waits TLS Client connection. You will see messages if its communication succeeds.
|
||||
|
||||
```
|
||||
[TLS Client terminal]
|
||||
$ ./examples/client/client -v 4 -h 192.168.10.33 -p 11111 -A ./certs/ca-ecc-cert.pem
|
||||
SSL version is TLSv1.3
|
||||
SSL cipher suite is TLS_AES_128_GCM_SHA256
|
||||
SSL curve name is SECP256R1
|
||||
hello wolfssl!
|
||||
|
||||
|
||||
[Renesas Debug Virtual Console]
|
||||
Received: hello wolfssl!
|
||||
```
|
||||
## 9. What you need to do to use the RootCA certificate prepared by the user
|
||||
----
|
||||
|
||||
In this sample program, the RootCA certificate required to operate as TLS_Client and the server certificate used by the sample TLS server application are certificates that can be used only for evaluation.
|
||||
If you want to use it for purposes beyond functional evaluation, you need to prepare the RootCA certificate yourself. with this,
|
||||
1. Provisioning key
|
||||
2. RSA key pair required for RootCA certificate validation
|
||||
3. The signature generated by the RootCA certificate with the private key in 2 above.
|
||||
|
||||
will become necessary. Please refer to the manual provided by Renesas for how to generate them.
|
||||
|
||||
## 10. Limitations
|
||||
----
|
||||
wolfSSL, which supports TSIPv1.15, has the following functional restrictions.
|
||||
|
||||
1. Handshake message packets exchanged with the server during the TLS handshake are stored in plaintext in memory. This is used to calculate the hash of handshake messages. The content will be deleted at the end of the session.
|
||||
|
||||
2. TLS1.2 does not support the client authentication function using TSIP.
|
||||
Use wolfSSL_CTX_use_certificate_buffer or wolfSSL_CTX_use_certificate_chain_buffer_format to load the client certificate and wolfSSL_CTX_use_PrivateKey_buffer to load the private key. It is processed by software.
|
||||
|
||||
1. In TLS 1.3, the client authentication function using TSIP is supported only for ECDSA client certificates. In the case of RSA certificates, it will be processed by software.
|
||||
|
||||
1. In TLS1.3, among the server authentication functions using TSIP, "Certificate Verify" message is processed by software.
|
||||
|
||||
1. Session resumption and early data using TSIP are not supported.
|
||||
|
||||
The above limitations 1 through 4 are expected to be improved by TSIP from the next version onwards.
|
||||
|
||||
# 11. Support
|
||||
|
||||
For support inquiries and questions, please email support@wolfssl.com. Feel free to reach out to info@wolfssl.jp as well.
|
||||
337
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/README_JP.md
vendored
Normal file
337
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/README_JP.md
vendored
Normal file
@@ -0,0 +1,337 @@
|
||||
評価ボードRX72N EnvisionKit 用 wolfSSL シンプルプロジェクト
|
||||
======
|
||||
|
||||
|
||||
|
||||
## 1. 概要
|
||||
-----
|
||||
|
||||
Renesas社製MCU RX72Nを搭載した評価ボードRX72N EnvisionKit をターゲットとしてwolfSSLを評価するためのサンプルプログラムを提供します。サンプルプログラムはリアルタイムOSを使わないベアメタル環境で動作し、
|
||||
IDEとしてe2 studioを使用するものです。本ドキュメントではサンプルプログラムのビルドから実行までの手順を説明します。
|
||||
|
||||
提供するサンプルプログラムは次の3機能を評価できる単一のアプリケーションです:
|
||||
|
||||
- CryptoTest: 各種暗号化オペレーション機能を自動テストするプログラム
|
||||
- Benchmark: 各種暗号化オペレーションの実行速度を測定するプログラム
|
||||
- TlsClient: 対向するTLSサーバーアプリケーションとTLS通信を行うプログラム
|
||||
- TlsServer: 対向するTLSクライアントアプリケーションとTLS通信を行うプログラム
|
||||
|
||||
|
||||
評価ボードを動作させる為のH/W設定、S/W設定は既に用意していますから、サンプルプロジェクトの動作までは最少の設定で済むようになっています。
|
||||
また、TLS通信において必要となる、RootCA証明書、サーバー側証明書もサンプル使用に限定したものが既に設定済みです。
|
||||
以降のセクションはサンプルアプリケーションの実行までのステップを順に説明していきます。
|
||||
|
||||
|
||||
## 2. ターゲットとしているH/W、コンポーネント、ライブラリ
|
||||
-----
|
||||
|
||||
このサンプルプログラムでは以下のハードウエアやソソフトウエアライブラリを使用しています。皆さんがご利用時にバージョンの新しいソフトウエアコンポーネントが利用可能であれば適宜更新の上ご利用ください。
|
||||
|
||||
|
||||
|要素|名称/バージョン|
|
||||
|:--|:--|
|
||||
|評価ボード|RX72N EnvisionKit|
|
||||
|Device|R5F572NNHxFB|
|
||||
|IDE| Renesas e2Studio Version:2022-07 |
|
||||
|エミュレーター| E2エミュレーターLite |
|
||||
|Toolchain|CCRX v3.03.00|
|
||||
|TSIP| TSIP v1.15|
|
||||
|
||||
|
||||
本サンプルプログラムのプロジェクトには以下のFITコンポーネントを使用する設定ファイルが用意されています。
|
||||
しかし、FITコンポーネント群そのものは本サンプルアプリケーションの配布物としては含まれていません。
|
||||
皆さん自身でIDE内の操作によってダウンロードしていただく必要があります。一部のFITコンポーネント(TSIP)はIDE内から直接ダウンロードできず、Renesas社のダウンロードサイトから別途ダウンロードが必要なものがあります。
|
||||
|
||||
|
||||
|FITコンポーネント|バージョン|略称|
|
||||
|:--|:--|:--|
|
||||
|Board Support Packages|7.20|r_bsp|
|
||||
|CMT driver|5.20|r_cmt_rx|
|
||||
|Ethernet Driver|1.22|r_ether_rx|
|
||||
|Generic system timer for RX MCUs|1.01|r_sys_time_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] - RX Ethernet Driver Interface|1.09|r_t4_driver_rx|
|
||||
|TCP/IP protocol stack[M3S-T4-Tiny] for Renesas MCUs|2.10|r_t4_rx|
|
||||
|TSIP(Trusted Secure IP) driver|1.15.l|r_tsip_rx|
|
||||
|
||||
|
||||
## 3. サンプルプログラムプロジェクトのe2Studioへのインポート
|
||||
----
|
||||
|
||||
サンプルプログラムは新規作成する必要はありません。すでにプロジェクトファイルが用意されていますからIDEから以下の手順でプロジェクトをインポートしてください。
|
||||
|
||||
|
||||
+ 1.e2studioの"ファイル"メニュー > "ファイル・システムからプロジェクトを開く..." > "ディレクトリ(R)..."インポート元ボタンを押して、プロジェクトのインポート元となるフォルダーを選択します。本READMEファイルが存在するフォルダ(Renesas/e2studio/{MCU}/{board-name-folder}/Simple)を選択してください。
|
||||
|
||||
+ インポートできるプロジェクトが4つリストアップされますが、"test" と"wolfssl"の2プロジェクトにのみチェックを入れて”終了”ボタンを押してください。
|
||||
|
||||
プロジェクト・エクスプローラーにインポートしたtest,wolfsslの2プロジェクトが表示されるはずです。
|
||||
|
||||
|
||||
## 4. FITモジュールの取得とスマートコンフィギュレータによるファイル生成
|
||||
----
|
||||
|
||||
FITモジュールは皆さん自身で取得していただく必要があります。以下の手順で取得してください。
|
||||
|
||||
1. プロジェクト・エクスプローラー上でsmcプロジェクトを開き**test.scfg**ファイルをダブルクリックして、スマートコンフィギュレータパースペクティブを開きます。
|
||||
|
||||
2. ソフトウエアコンポーネント設定画面の"コンポーネント"タブを選択 > 画面右上の"コンポーネントの追加" ボタンを押して下さい。ソフトウエアコンポーネントの選択ダイアログが表示されます。ここで、画面下部の"最新版のFITドライバとミドルウエアをダウンロードする"を押して、モジュール群を取得しておいてください。ダウンロード先のフォルダは"基本設定..."を押して確認することができます。
|
||||
|
||||
3. TSIPコンポーネントは上記ステップ2の方法ではRenesas社の対応が遅れていて最新版が自動的には取得できないことがあります。その場合にはRenesas社のサイトから手動でダウンロードできます。ダウンロードしたコンポーネントのを解凍し、FITModulesフォルダに含まれているファイル群をステップ2のダウンロード先フォルダに格納してください。
|
||||
|
||||
4. 先に示したFITコンポーネントを一覧から選択して"終了"ボタンを押します。この操作を必要なFITコンポーネントを得るまで繰り返し行います。
|
||||
|
||||
5. ソフトウエアコンポーネント設定画面のコンポーネントタブを選択し、r_t4_rxコンポーネントを選択します。右の設定ペインに"# IP address for ch0, when DHCP disable."プロパティの値として、このボードのIPアドレスを皆さんの環境に合わせてて指定します(例:
|
||||
192.168.1.9)。
|
||||
|
||||
6. ソフトウエアコンポーネント設定画面の右上の”コードの生成"ボタンを押して、スマートコンフィギュレータにソースファイルを生成させます。testプロジェクトの下にsrc/smc_genフォルダが生成され、
|
||||
ソースファイル、ライブラリ等が格納されされます。
|
||||
|
||||
|
||||
## 5. testアプリケーションの動作を選択する
|
||||
----
|
||||
testプロジェクトが唯一のサンプルアプリケーションですが、その動作を設定で切り替えることによって、
|
||||
|
||||
- CryptoTest: 各種暗号化オペレーション機能を自動テストするプログラム
|
||||
- Benchmark: 各種暗号化オペレーションの実行速度を測定するプログラム
|
||||
- TlsClient: 対向するTLSサーバーアプリケーションとTLS通信を行うプログラム
|
||||
- TlsServer: 対向するTLSクライアントアプリケーションとTLS通信を行うプログラム
|
||||
|
||||
のいずれかの動作を行うよう指定できます。
|
||||
|
||||
設定はtest/src/wolfssl_simple_demo.h ファイル内の、
|
||||
|
||||
- #define CRYPT_TEST
|
||||
- #define BENCHMARK
|
||||
- #define SIMPLE_TCP_CLIENT
|
||||
- #define SIMPLE_TLS_CLIENT
|
||||
- #define SIMPLE_TLS_TSIP_CLIENT
|
||||
- #define SIMPLE_TCP_SERVER
|
||||
- #define SIMPLE_TLS_SERVER
|
||||
|
||||
のいずれか一つを有効にしてアプリケーションをビルドすることで行います。
|
||||
|
||||
|
||||
## 6. testアプリケーションのビルドと実行
|
||||
-----
|
||||
|
||||
testアプリケーションのビルドの準備が整ったので、ビルドを行います。
|
||||
|
||||
1.プロジェクト・エクスプローラー上のwolfsslプロジェクトをビルドし、次にtestプロジェクトをビルドします。
|
||||
|
||||
2.ビルドが成功したら、ターゲットボードとエミュレーターを接続し、外部電源を入力します。
|
||||
|
||||
3."実行"メニュー > "デバッグ"を選択し、デバッグパースペクティブを開きます。
|
||||
|
||||
4.testアプリケーションは標準出力に動作状況を出力します。この標準出力の表示用に、"Renesas Debug Virtual Console"を開いておきます。
|
||||
|
||||
5.実行ボタンを押してtestアプリケーションを動作させます。
|
||||
|
||||
6.CryptoTest、Benchmark、TLS_ClientまたはTLS_Serverのいずれか選択していた動作に応じた実行結果を表示したあと無限ループに入るので出力が停止したと思われたらデバッグを停止させます。
|
||||
|
||||
|
||||
## 7. クライアントとしてのtestアプリケーションの実行
|
||||
-----
|
||||
|
||||
|
||||
### 7.1 TCP クライアントとして実行
|
||||
`#define SIMPLE_TCP_CLIENT`を有効にすると、TCPクライアントとしてtestプロジェクトを実行することが出来ます。対向サーバーには、[このTCP サーバーアプリケーション](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/server-tcp.c)を利用することが出来ます。
|
||||
|
||||
コンパイルと実行は下記のようになります。
|
||||
|
||||
```
|
||||
$ gcc server-tcp.c -o server-tcp
|
||||
$ ./server-tcp
|
||||
```
|
||||
|
||||
クライアントの対向サーバーのIPアドレスを変更します。IPアドレスは、`SIMPLE_TCPSERVER_IP`と`SIMPLE_TCPSERVER_PORT`という定義名で`test/src/simple_tcp.c`内に定義してあります。変更後、再度コンパイルし実行します。
|
||||
|
||||
次のようなメッセージがRenesas Virtual Console に表示されれば、ボード上のクライアントとサーバ間でTCP通信が成功しています。
|
||||
|
||||
```
|
||||
Received : I hear ya fa shizzle!
|
||||
```
|
||||
|
||||
TCPサーバー側のコンソールには、
|
||||
```
|
||||
$ ./server-tcp
|
||||
Waiting for a connection...
|
||||
Client connected successfully
|
||||
Client: Hello Server
|
||||
|
||||
Waiting for a connection...
|
||||
```
|
||||
|
||||
### 7.2 TLS クライアントとして実行
|
||||
`#define SIMPLE_TLS_CLIENT`を有効にすると、TLSクライアントとしてtestプロジェクトを実行することが出来ます。クライアントの対向サーバーのIPアドレスを変更します。IPアドレスは、`SIMPLE_TLSSERVER_IP`と`SIMPLE_TLSSERVER_PORT`という定義名で`test/src/simple_tls_tsip.c`内に定義してあります。変更後、再度コンパイルし実行します。
|
||||
|
||||
対向サーバーには wolfSSL に同梱されるサンプルサーバーを利用します。サンプルサーバーのコンフィグレーションとビルドは下記のようになります。
|
||||
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure
|
||||
$ make
|
||||
```
|
||||
|
||||
対向サーバーの実行にはECC証明書を指定します。なぜなら、test クライアントはCA証明書としてECC証明書を使用するようにプログラムされているからです。この設定は、`user_settings.h`中の下記マクロで指定しています。
|
||||
|
||||
```
|
||||
#define USE_ECC_CERT
|
||||
```
|
||||
|
||||
そのため、対向サーバーの実行時にはサーバーもECCサーバー証明書を下記のように指定します。
|
||||
|
||||
```
|
||||
./examples/server/server -v 4 -b -i -c ./certs/server-ecc.pem -k ./certs/ecc-key.pem -A ./certs/client-ecc-cert.pem
|
||||
```
|
||||
|
||||
次のようなメッセージがRenesas Virtual Console に表示されれば、ボード上のクライアントとサーバ間でTCP通信が成功しています。
|
||||
|
||||
```
|
||||
cipher : TLS13-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
```
|
||||
|
||||
TLSサーバー側のコンソールには次のようなメッセージが出力されます。
|
||||
```
|
||||
SSL version is TLSv1.3
|
||||
SSL cipher suite is TLS_AES_128_GCM_SHA256
|
||||
SSL curve name is SECP256R1
|
||||
Client message: Hello Server
|
||||
```
|
||||
|
||||
注)対向サーバーのコマンド中 `-v 4` オプションは、TLS 1.3を使ったTLS通信を行うことを指定しています。もし、1.3よりも下位のバージョンでTLS通信を行いたい場合、`-v 4`をオプションから取り除きます。
|
||||
|
||||
|
||||
### 7.2 TLS クライアントをTSIPドライバを利用するように設定し実行
|
||||
#define SIMPLE_TLS_TSIP_CLIENT`を有効にすると、TLSクライアントがTSIPドライバを使用してTLS通信を行うようになります。TLS 1.2 で通信を行うために、`user_settings.h`の`#define WOLFSSL_TLS13`を無効化し、また、RSA証明書を使うよう`#define USE_ECC_CERT`を無効化します。その後、wolfSSL 及び test プロジェクトを再コンパイルします。
|
||||
|
||||
TSIPドライバがサポートする暗号スイートは下記の一覧になります。
|
||||
|
||||
|Tls version |Certificate type|Cipher suites|
|
||||
|:--|:--|:--|
|
||||
|TLS1.3|RSA/ECDSA certificate| |
|
||||
|||TLS_AES_128_GCM_SHA256|
|
||||
|||TLS_AES_128_CCM_SHA256|
|
||||
|TLS1.2|RSA certificate|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA|
|
||||
|||TLS_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_RSA_WITH_AES_256_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256|
|
||||
||ECDSA certificate||
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256|
|
||||
|||TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256|
|
||||
|
||||
対向サーバーには、先ほどの wolfSSL に同梱されるサンプルサーバーを利用します。サンプルサーバーのコンフィグレーション、ビルド及び実行コマンドは下記のようになります。
|
||||
```
|
||||
$ cd <wolfssl-folder>
|
||||
$ ./autogen.sh
|
||||
$ ./configure CFLAGS="-DWOLFSSL_STATIC_RSA"
|
||||
```
|
||||
|
||||
サンプルサーバーの実行には下記を指定します。
|
||||
|
||||
```
|
||||
$ ./examples/server/server -b -i
|
||||
```
|
||||
|
||||
実行すると、下記のようなメッセージがRenesas Debug Virtual Consol に表示されます。
|
||||
|
||||
```
|
||||
cipher : ECDHE-RSA-AES128-GCM-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : ECDHE-RSA-AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES128-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
cipher : AES256-SHA256
|
||||
Received: I hear you fa shizzle!
|
||||
|
||||
```
|
||||
|
||||
TLS1.3で通信を行いたい場合、`#define WOLFSSL_TLS13`を有効化し、wolfSSL及びtestプロジェクトを再コンパイルします。また、サンプルサーバーの実行時に、`-v 4`オプションを追加します。
|
||||
|
||||
### 8. サーバーとしてのtestアプリケーションの実行
|
||||
|
||||
### 8.1 TCP サーバーとして実行
|
||||
`#define SIMPLE_TCP_SERVER`を有効にすると、TCPサーバとしてtestプロジェクトを実行することが出来ます。対向クライアントには、[このTCP クライアントアプリケーション](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/client-tcp.c)を利用することが出来ます。
|
||||
|
||||
コンパイルと実行は下記のようになります。
|
||||
|
||||
```
|
||||
$ gcc client-tcp.c -o client-tcp
|
||||
```
|
||||
|
||||
|
||||
次のようなメッセージがRenesas Virtual Console 及びTCPクライアントのターミナルに表示されれば、ボード上のサーバーとサーバ間でTCP通信が成功しています。
|
||||
```
|
||||
[TCP Client terminal]
|
||||
$ ./client-tcp 192.168.10.33
|
||||
Message for server: hello
|
||||
Server: hello
|
||||
|
||||
[Renesas Debug Virtual Console]
|
||||
Received: hello
|
||||
```
|
||||
|
||||
### 8.1 TLS サーバーとして実行
|
||||
`#define SIMPLE_TLS_SERVER`を有効にすると、TLSサーバとしてtestプロジェクトを実行することが出来ます。対向クライアントには、wolfSSL に同梱されるサンプルクライアントを利用することが出来ます。コンパイルとビルドは、[8.2 Run Client as TLS (Software Only)](#8.2-Run-Client-as-TLS-(Software-Only))に準じます。
|
||||
|
||||
testプロジェクトを再コンパイル後、実行するとTLSサーバーはボード上でクライアントからの接続待ちになりまうす。ターミナルか下記のように実行します。
|
||||
|
||||
```
|
||||
$ ./examples/client/client -v 4 -h 192.168.10.33 -p 11111 -A ./certs/ca-ecc-cert.pem
|
||||
SSL version is TLSv1.3
|
||||
SSL cipher suite is TLS_AES_128_GCM_SHA256
|
||||
SSL curve name is SECP256R1
|
||||
hello wolfssl!
|
||||
```
|
||||
|
||||
Renesas Debug Virtual Consol に下記のように表示されていれば、ボード上の TLS サーバーとクライアント間でTLS通信が行われています。
|
||||
```
|
||||
Received: hello wolfssl!
|
||||
```
|
||||
|
||||
|
||||
## 9. ユーザーが用意したRootCA証明書を利用する際に必要なこと
|
||||
-----
|
||||
|
||||
本サンプルプログラムでは、TLS_Clientとして動作する際に必要なRootCA証明書とサンプルTLSサーバーアプリケーションが使用するサーバー証明書などは評価用でのみ利用可能な証明書です。
|
||||
機能評価を超えた目的で利用する場合にはRootCA証明書をユーザー自身で用意する必要があります。それに伴い、
|
||||
1. Provisioning key
|
||||
2. RootCA証明書の検証の為に必要なRSA鍵ペア
|
||||
3. RootCA証明書を上記2の秘密鍵で生成した署名
|
||||
|
||||
が必要になります。それらの生成方法はRenesas社提供のマニュアルを参照してください。
|
||||
|
||||
|
||||
## 10. 制限事項
|
||||
|
||||
TSIPv1.15をサポートしたwolfSSLでは以下の機能制限があります。
|
||||
|
||||
1. TLSハンドシェーク中にサーバーと交換したメッセージパケットが平文でメモリ上に蓄積されています。これはハンドシェークメッセージのハッシュ計算に使用されます。内容はセッション終了時に削除されます。
|
||||
|
||||
1. TLS1.2ではTSIPを使ったクライアント認証機能をサポートしていません。
|
||||
wolfSSL_CTX_use_certificate_buffer あるいはwolfSSL_CTX_use_certificate_chain_buffer_format を使ってクライアント証明書をロードし、wolfSSL_CTX_use_PrivateKey_bufferを使って秘密鍵をロードしてください。ソフトウエアで処理を行います。
|
||||
|
||||
1. TLS1.3ではTSIPを使ったクライアント認証機能はECDSAクライアント証明書の場合にのみサポートされます。RSA証明書の場合はソフトウエアでの処理となります。
|
||||
|
||||
1. TLS1.3ではTSIPを使ったサーバー認証機能のうち、CertificateVerifyメッセージの検証はソフトウエアでの処理となります。
|
||||
|
||||
1. TSIPを使ってのセッション再開およびearly dataはサポートされません。
|
||||
|
||||
上記制限1 ~ 4は次版以降のTSIPによって改善が見込まれています。
|
||||
|
||||
## 11. サポート
|
||||
ご質問・ご要望は、info@wolfssl.jp まで日本語でお知らせください。
|
||||
37
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/sectioninfo.esi
vendored
Normal file
37
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/sectioninfo.esi
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="ASCII"?>
|
||||
<com.renesas.linkersection.model:SectionContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.renesas.linkersection.model="http:///LinkerSection.ecore">
|
||||
<sections name="SU">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4"/>
|
||||
</sections>
|
||||
<sections name="SI"/>
|
||||
<sections name="B_1"/>
|
||||
<sections name="R_1"/>
|
||||
<sections name="B_2"/>
|
||||
<sections name="R_2"/>
|
||||
<sections name="B"/>
|
||||
<sections name="R"/>
|
||||
<sections name="B_8"/>
|
||||
<sections name="R_8"/>
|
||||
<sections name="B_ETHERNET_BUFFERS_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="8388608"/>
|
||||
</sections>
|
||||
<sections name="B_RX_DESC_1"/>
|
||||
<sections name="B_TX_DESC_1"/>
|
||||
<sections name="C_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4292870144"/>
|
||||
</sections>
|
||||
<sections name="C_2"/>
|
||||
<sections name="C"/>
|
||||
<sections name="C_8"/>
|
||||
<sections name="C$*"/>
|
||||
<sections name="D*"/>
|
||||
<sections name="W*"/>
|
||||
<sections name="L"/>
|
||||
<sections name="P*"/>
|
||||
<sections name="EXCEPTVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967168"/>
|
||||
</sections>
|
||||
<sections name="RESETVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967292"/>
|
||||
</sections>
|
||||
</com.renesas.linkersection.model:SectionContainer>
|
||||
47
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/wolfssl_dummy.c
vendored
Normal file
47
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/wolfssl_dummy.c
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
/* wolfssl_dummy.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <wolfssl/wolfcrypt/wc_port.h>
|
||||
|
||||
#define YEAR 2022
|
||||
#define MON 6
|
||||
|
||||
static int tick = 0;
|
||||
|
||||
time_t time(time_t *t)
|
||||
{
|
||||
(void)t;
|
||||
return ((YEAR-1970)*365+30*MON)*24*60*60 + tick++;
|
||||
}
|
||||
|
||||
#include <ctype.h>
|
||||
int strncasecmp(const char *s1, const char * s2, unsigned int sz)
|
||||
{
|
||||
for( ; sz>0; sz--)
|
||||
if(toupper(s1++) != toupper(s2++))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
/* dummy return true when char is alphanumeric character */
|
||||
int isascii(const char *s)
|
||||
{
|
||||
return isalnum(s);
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
/* simple_tcp_client.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <wolfssl_simple_demo.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
|
||||
#define SIMPLE_TCPSEVER_IP "192.168.10.10"
|
||||
#define SIMPLE_TCPSERVER_PORT "11111"
|
||||
|
||||
ER t4_tcp_callback(ID cepid, FN fncd , VP p_parblk);
|
||||
|
||||
static int my_IORecv(char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return 0;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret > 0)
|
||||
return ret;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int my_IOSend(char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return 0;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int getIPaddr(char *arg)
|
||||
{
|
||||
int a1, a2, a3, a4;
|
||||
if(sscanf(arg, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) == 4)
|
||||
return (a1 << 24) | (a2 << 16) | (a3 << 8) | a4;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
static int getPort(char *arg)
|
||||
{
|
||||
int port;
|
||||
if(sscanf(arg, "%d", &port) == 1)
|
||||
return port;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
|
||||
void simple_tcp_client( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ER ercd;
|
||||
int ret;
|
||||
|
||||
#define BUFF_SIZE 256
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
static T_IPV4EP my_addr = { 0, 0 };
|
||||
|
||||
T_IPV4EP dst_addr;
|
||||
|
||||
if((dst_addr.ipaddr = getIPaddr(SIMPLE_TCPSEVER_IP)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
goto out;
|
||||
}
|
||||
if((dst_addr.portno = getPort(SIMPLE_TCPSERVER_PORT)) == 0){
|
||||
printf("ERROR: Port number\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ercd = tcp_con_cep(cepid, &my_addr, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Connect: %d\n", ercd);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (my_IOSend((char*)sendBuff, strlen(sendBuff), (void*)&cepid) !=
|
||||
strlen(sendBuff)) {
|
||||
printf("ERROR TCP write \n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((ret=my_IORecv(rcvBuff, BUFF_SIZE, (void*)&cepid)) < 0) {
|
||||
printf("ERROR TCP read\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
|
||||
out:
|
||||
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
/* simpel_tls_tsip_client.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#include <wolfssl_simple_demo.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
#include "wolfssl/wolfcrypt/settings.h"
|
||||
#include "wolfssl/ssl.h"
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "key_data.h"
|
||||
#if defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
#endif
|
||||
|
||||
#define SIMPLE_TLSSEVER_IP "192.168.10.10"
|
||||
#define SIMPLE_TLSSERVER_PORT "11111"
|
||||
|
||||
ER t4_tcp_callback(ID cepid, FN fncd , VP p_parblk);
|
||||
|
||||
static WOLFSSL_CTX *client_ctx;
|
||||
|
||||
#if defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
static TsipUserCtx userContext;
|
||||
#endif
|
||||
|
||||
static int my_IORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret > 0)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int my_IOSend(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int getIPaddr(char *arg)
|
||||
{
|
||||
int a1, a2, a3, a4;
|
||||
if(sscanf(arg, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) == 4)
|
||||
return (a1 << 24) | (a2 << 16) | (a3 << 8) | a4;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
static int getPort(char *arg)
|
||||
{
|
||||
int port;
|
||||
if(sscanf(arg, "%d", &port) == 1)
|
||||
return port;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client_init(const char* cipherlist)
|
||||
{
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/ca-ecc-cert.pem";
|
||||
#else
|
||||
char *cert = "./certs/ca-cert.pem";
|
||||
#endif
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = ca_ecc_cert_der_256;
|
||||
#define SIZEOF_CERT sizeof_ca_ecc_cert_der_256
|
||||
#else
|
||||
const unsigned char *cert = ca_cert_der_2048;
|
||||
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
wolfSSL_Init();
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx =
|
||||
wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef SIMPLE_TLS_TSIP_CLIENT
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert, SIZEOF_CERT,
|
||||
SSL_FILETYPE_ASN1) != SSL_SUCCESS){
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* load client certificate */
|
||||
#ifdef USE_ECC_CERT
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
cliecc_cert_der_256,
|
||||
sizeof_cliecc_cert_der_256,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* set client private key data */
|
||||
#if defined(WOLFSSL_TLS13) && defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_ecc256_private_key,
|
||||
TSIP_ECCP256) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
ecc_clikey_der_256,
|
||||
sizeof_ecc_clikey_der_256,
|
||||
SSL_FILETYPE_ASN1) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
|
||||
#else
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
client_cert_der_2048,
|
||||
sizeof_client_cert_der_2048,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx, client_key_der_2048,
|
||||
sizeof_client_key_der_2048, SSL_FILETYPE_ASN1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
#endif /* USE_ECC_CERT */
|
||||
#endif /* !NO_FILESYSTEM */
|
||||
|
||||
/* Register callbacks */
|
||||
wolfSSL_SetIORecv(client_ctx, my_IORecv);
|
||||
wolfSSL_SetIOSend(client_ctx, my_IOSend);
|
||||
|
||||
/* use specific cipher */
|
||||
if (cipherlist != NULL &&
|
||||
wolfSSL_CTX_set_cipher_list(client_ctx, cipherlist) != WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set cipher list");
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && (WOLFSSL_RENESAS_TSIP_VER >= 115)
|
||||
if (wolfSSL_CTX_UseSupportedCurve(client_ctx, WOLFSSL_ECC_SECP256R1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set use supported curves\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_client( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ER ercd;
|
||||
int ret;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL *ssl = NULL;
|
||||
|
||||
#define BUFF_SIZE 256
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
static T_IPV4EP my_addr = { 0, 0 };
|
||||
|
||||
T_IPV4EP dst_addr;
|
||||
|
||||
if((dst_addr.ipaddr = getIPaddr(SIMPLE_TLSSEVER_IP)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
goto out;
|
||||
}
|
||||
if((dst_addr.portno = getPort(SIMPLE_TLSSERVER_PORT)) == 0){
|
||||
printf("ERROR: IP address\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ercd = tcp_con_cep(cepid, &my_addr, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Connect: %d\n", ercd);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR wolfSSL_new: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
#ifdef SIMPLE_TLS_TSIP_CLIENT
|
||||
tsip_set_callback_ctx(ssl, &userContext);
|
||||
#endif
|
||||
|
||||
/* set callback context */
|
||||
wolfSSL_SetIOReadCtx(ssl, (void *)&cepid);
|
||||
wolfSSL_SetIOWriteCtx(ssl, (void *)&cepid);
|
||||
|
||||
|
||||
if(wolfSSL_connect(ssl) != SSL_SUCCESS) {
|
||||
printf("ERROR SSL connect: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) != strlen(sendBuff)) {
|
||||
printf("ERROR SSL write: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE)) < 0) {
|
||||
printf("ERROR SSL read: %d\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
rcvBuff[ret] = '\0' ;
|
||||
printf("Received: %s\n\n", rcvBuff);
|
||||
|
||||
out:
|
||||
|
||||
/* frees all data before client termination */
|
||||
if(ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
}
|
||||
if(ctx) {
|
||||
wolfSSL_CTX_free(ctx);
|
||||
}
|
||||
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
/* simple_tcp_server.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <wolfssl_simple_demo.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
|
||||
static int my_IORecv(char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return 0;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret > 0)
|
||||
return ret;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int my_IOSend(char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return 0;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
void simple_tcp_server( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ID repid = 1;
|
||||
ER ercd;
|
||||
int len;
|
||||
#define BUFF_SIZE 256
|
||||
char buff[BUFF_SIZE];
|
||||
T_IPV4EP dst_addr = {0, 0};
|
||||
|
||||
if((ercd = tcp_acp_cep(cepid, repid, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Accept: %d\n", ercd);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((len = my_IORecv(buff, sizeof(buff) - 1, (void*)&cepid)) < 0) {
|
||||
printf("ERROR: Read \n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
buff[len] = '\0';
|
||||
printf("Received: %s\n", buff);
|
||||
|
||||
if (my_IOSend(buff, len, (void*)&cepid) != len) {
|
||||
printf("ERROR: Write\n");
|
||||
}
|
||||
|
||||
out:
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
/* simple_tls_server.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "r_t4_itcpip.h"
|
||||
|
||||
#include "wolfssl/wolfcrypt/settings.h"
|
||||
#include "wolfssl/ssl.h"
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include <wolfssl_simple_demo.h>
|
||||
|
||||
static WOLFSSL_CTX *server_ctx;
|
||||
|
||||
static int my_IORecv(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_rcv_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
static int my_IOSend(WOLFSSL* ssl, char* buff, int sz, void* ctx)
|
||||
{
|
||||
int ret;
|
||||
ID cepid;
|
||||
|
||||
if(ctx != NULL)
|
||||
cepid = *(ID *)ctx;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
|
||||
ret = tcp_snd_dat(cepid, buff, sz, TMO_FEVR);
|
||||
if(ret == sz)
|
||||
return ret;
|
||||
else
|
||||
return WOLFSSL_CBIO_ERR_GENERAL;
|
||||
}
|
||||
|
||||
|
||||
void wolfSSL_TLS_server_init()
|
||||
{
|
||||
|
||||
int ret;
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/server-ecc-cert.pem";
|
||||
char *key = "./certs/server-ecc-key.pem";
|
||||
#else
|
||||
char *cert = "./certs/server-cert.pem";
|
||||
char *key = "./certs/server-key.pem";
|
||||
#endif
|
||||
char *clientCert = "./certs/client-cert.pem";
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = serv_ecc_der_256;
|
||||
#define sizeof_cert sizeof_serv_ecc_der_256
|
||||
const unsigned char *key = ecc_key_der_256;
|
||||
#define sizeof_key sizeof_ecc_key_der_256
|
||||
#define sizeof_clicert NULL
|
||||
#else
|
||||
const unsigned char *cert = server_cert_der_2048;
|
||||
#define sizeof_cert sizeof_server_cert_der_2048
|
||||
const unsigned char *key = server_key_der_2048;
|
||||
#define sizeof_key sizeof_server_key_der_2048
|
||||
const unsigned char *clientCert = client_cert_der_2048;
|
||||
#define sizeof_clicert sizeof_client_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
wolfSSL_Init();
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((server_ctx = wolfSSL_CTX_new(wolfSSLv23_server_method_ex((void *)NULL)))
|
||||
== NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
ret = wolfSSL_CTX_use_certificate_file(server_ctx, cert, 0);
|
||||
#else
|
||||
ret = wolfSSL_CTX_use_certificate_buffer(server_ctx, cert,
|
||||
sizeof_cert, SSL_FILETYPE_ASN1);
|
||||
#endif
|
||||
if (ret != SSL_SUCCESS) {
|
||||
printf("Error %d loading server-cert!\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Load server key into WOLFSSL_CTX */
|
||||
#if !defined(NO_FILESYSTEM)
|
||||
ret = wolfSSL_CTX_use_PrivateKey_file(server_ctx, key, 0);
|
||||
#else
|
||||
ret = wolfSSL_CTX_use_PrivateKey_buffer(server_ctx, key, sizeof_key,
|
||||
SSL_FILETYPE_ASN1);
|
||||
#endif
|
||||
if (ret != SSL_SUCCESS) {
|
||||
printf("Error %d loading server-key!\n", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Register callbacks */
|
||||
wolfSSL_SetIORecv(server_ctx, my_IORecv);
|
||||
wolfSSL_SetIOSend(server_ctx, my_IOSend);
|
||||
|
||||
}
|
||||
|
||||
void wolfSSL_TLS_server( )
|
||||
{
|
||||
ID cepid = 1;
|
||||
ID repid = 1;
|
||||
ER ercd;
|
||||
WOLFSSL_CTX *ctx = (WOLFSSL_CTX *)server_ctx;
|
||||
|
||||
WOLFSSL *ssl = NULL;
|
||||
int len;
|
||||
#define BUFF_SIZE 256
|
||||
char buff[BUFF_SIZE];
|
||||
T_IPV4EP dst_addr = {0, 0};
|
||||
|
||||
if((ercd = tcp_acp_cep(cepid, repid, &dst_addr, TMO_FEVR)) != E_OK) {
|
||||
printf("ERROR TCP Accept: %d\n", ercd);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if((ssl = wolfSSL_new(ctx)) == NULL) {
|
||||
printf("ERROR: failed wolfSSL_new\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
wolfSSL_SetIOReadCtx(ssl, (void *)&cepid);
|
||||
wolfSSL_SetIOWriteCtx(ssl, (void *)&cepid);
|
||||
|
||||
if (wolfSSL_accept(ssl) < 0) {
|
||||
printf("ERROR: SSL Accept(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
if ((len = wolfSSL_read(ssl, buff, sizeof(buff) - 1)) < 0) {
|
||||
printf("ERROR: SSL Read(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
goto out;
|
||||
}
|
||||
|
||||
buff[len] = '\0';
|
||||
printf("Received: %s\n", buff);
|
||||
|
||||
if (wolfSSL_write(ssl, buff, len) != len) {
|
||||
printf("ERROR: SSL Write(%d)\n", wolfSSL_get_error(ssl, 0));
|
||||
}
|
||||
|
||||
out:
|
||||
if (ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
}
|
||||
if (ctx) {
|
||||
wolfSSL_CTX_free(ctx);
|
||||
};
|
||||
|
||||
tcp_sht_cep(cepid);
|
||||
tcp_cls_cep(cepid, TMO_FEVR);
|
||||
}
|
||||
298
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/test_main.c
vendored
Normal file
298
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/test_main.c
vendored
Normal file
@@ -0,0 +1,298 @@
|
||||
/* test_main.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include <wolfssl_simple_demo.h>
|
||||
#include "stdio.h"
|
||||
#include "stdint.h"
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include "wolfssl/wolfcrypt/types.h"
|
||||
|
||||
#if defined(SIMPLE_TCP_CLIENT) || defined(SIMPLE_TLS_CLIENT) || \
|
||||
defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
#define SIMPLE_CLIENT
|
||||
#endif
|
||||
|
||||
#if defined(SIMPLE_TCP_SERVER) || defined(SIMPLE_TLS_SERVER)
|
||||
#define SIMPLE_SERVER
|
||||
#endif
|
||||
|
||||
#if defined(SIMPLE_CLIENT) || defined(SIMPLE_SERVER)
|
||||
#include "r_t4_itcpip.h"
|
||||
#include "r_sys_time_rx_if.h"
|
||||
#include "Pin.h"
|
||||
#include "r_tsip_rx_if.h"
|
||||
|
||||
#define T4_WORK_SIZE (14800)
|
||||
static UW tcpudp_work[(T4_WORK_SIZE / 4) + 1];
|
||||
|
||||
#endif
|
||||
|
||||
void main(void);
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
#include "key_data.h"
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
user_PKCbInfo guser_PKCbInfo;
|
||||
#endif
|
||||
|
||||
|
||||
static long tick;
|
||||
static void timeTick(void *pdata)
|
||||
{
|
||||
tick++;
|
||||
}
|
||||
|
||||
typedef struct func_args {
|
||||
int argc;
|
||||
char** argv;
|
||||
int return_code;
|
||||
} func_args;
|
||||
|
||||
|
||||
void wolfcrypt_test(func_args args);
|
||||
int benchmark_test(void *args);
|
||||
|
||||
double current_time(int reset)
|
||||
{
|
||||
if(reset) tick = 0 ;
|
||||
return ((double)tick/FREQ) ;
|
||||
}
|
||||
|
||||
#if defined(SIMPLE_CLIENT) || defined(SIMPLE_SERVER)
|
||||
|
||||
int Open_tcp( )
|
||||
{
|
||||
ER ercd;
|
||||
W size;
|
||||
sys_time_err_t sys_ercd;
|
||||
char ver[128];
|
||||
/* initialize TSIP since t4 seems to call R_TSIP_RandomNumber */
|
||||
R_TSIP_Open(NULL,NULL);
|
||||
|
||||
/* cast from uint8_t to char* */
|
||||
strcpy(ver, (char*)R_t4_version.library);
|
||||
|
||||
sys_ercd = R_SYS_TIME_Open();
|
||||
if (sys_ercd != SYS_TIME_SUCCESS) {
|
||||
printf("ERROR : R_SYS_TIME_Open() failed\n");
|
||||
return -1;
|
||||
}
|
||||
R_Pins_Create();
|
||||
/* start LAN controller */
|
||||
ercd = lan_open();
|
||||
/* initialize TCP/IP */
|
||||
size = tcpudp_get_ramsize();
|
||||
if (size > (sizeof(tcpudp_work))) {
|
||||
printf("size > (sizeof(tcpudp_work))!\n");
|
||||
return -1;
|
||||
}
|
||||
ercd = tcpudp_open(tcpudp_work);
|
||||
if (ercd != E_OK) {
|
||||
printf("ERROR : tcpudp_open failed\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Close_tcp()
|
||||
{
|
||||
/* end TCP/IP */
|
||||
tcpudp_close();
|
||||
lan_close();
|
||||
R_SYS_TIME_Close();
|
||||
R_TSIP_Close();
|
||||
}
|
||||
#endif /* definedSIMPLE_CLIENT || SIMPLE_SERVER */
|
||||
|
||||
#if defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
|
||||
int SetTsiptlsKey()
|
||||
{
|
||||
#if defined(WOLFSSL_RENESAS_TSIP) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
#if defined(USE_ECC_CERT)
|
||||
/* Root CA cert has ECC-P256 public key */
|
||||
tsip_inform_cert_sign((const byte *)ca_ecc_cert_der_sig);
|
||||
#else
|
||||
/* Root CA cert has RSA public key */
|
||||
tsip_inform_cert_sign((const byte *)ca_cert_der_sig);
|
||||
#endif
|
||||
|
||||
tsip_inform_user_keys_ex(
|
||||
(byte*)&g_key_block_data.encrypted_provisioning_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
|
||||
#elif defined(WOLFSSL_RENESAS_TSIP) && (WOLFSSL_RENESAS_TSIP_VER < 109)
|
||||
|
||||
tsip_inform_cert_sign((const byte *)ca_cert_sig);
|
||||
tsip_inform_user_keys((byte*)&g_key_block_data.encrypted_session_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key);
|
||||
|
||||
tsip_inform_cert_sign((const byte *)client_cert_der_sign);
|
||||
tsip_inform_user_keys((byte*)&g_key_block_data.encrypted_session_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key);
|
||||
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
void main(void)
|
||||
{
|
||||
int i = 0;
|
||||
int ret;
|
||||
int doClientCheck = 0;
|
||||
uint32_t channel;
|
||||
|
||||
#if defined(SIMPLE_TCP_CLIENT)
|
||||
int cipherlist_sz = 1;
|
||||
const char* cipherlist[] = {NULL};
|
||||
#elif defined(SIMPLE_TLS_TSIP_CLIENT) || defined(SIMPLE_TLS_CLIENT)
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
"ECDHE-ECDSA-AES128-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 1;
|
||||
#else
|
||||
cipherlist_sz = 2;
|
||||
#endif
|
||||
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
int cipherlist_sz;
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
cipherlist_sz = 1;
|
||||
#else
|
||||
cipherlist_sz = 6;
|
||||
#endif /* WOLFSSL_TLS13 */
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
(void)timeTick;
|
||||
(void)i;
|
||||
(void)ret;
|
||||
(void)channel;
|
||||
(void)doClientCheck;
|
||||
|
||||
#if defined(CRYPT_TEST) || defined(BENCHMARK)
|
||||
#if defined(CRYPT_TEST)
|
||||
func_args args = { 0 };
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
|
||||
printf("Start wolfCrypt Test\n");
|
||||
wolfcrypt_test(args);
|
||||
printf("End wolfCrypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
#endif
|
||||
#elif defined(SIMPLE_TCP_CLIENT) || defined(SIMPLE_TLS_CLIENT) || \
|
||||
defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
Open_tcp();
|
||||
|
||||
#if defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
SetTsiptlsKey();
|
||||
#endif
|
||||
|
||||
do {
|
||||
/* simply use TCP */
|
||||
#if defined(SIMPLE_TCP_CLIENT)
|
||||
simple_tcp_client();
|
||||
#elif defined(SIMPLE_TLS_CLIENT) || defined(SIMPLE_TLS_TSIP_CLIENT)
|
||||
if(cipherlist_sz > 0 ) printf("cipher : %s\n", cipherlist[i]);
|
||||
|
||||
wolfSSL_TLS_client_init(cipherlist[i]);
|
||||
wolfSSL_TLS_client();
|
||||
#endif
|
||||
|
||||
i++;
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
Close_tcp();
|
||||
#elif defined(SIMPLE_TCP_SERVER)|| defined(SIMPLE_TLS_SERVER)
|
||||
#include "r_cmt_rx_if.h"
|
||||
|
||||
Open_tcp();
|
||||
|
||||
#if defined(SIMPLE_TCP_SERVER)
|
||||
simple_tcp_server();
|
||||
#else
|
||||
wolfSSL_TLS_server_init();
|
||||
wolfSSL_TLS_server();
|
||||
#endif
|
||||
Close_tcp();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
void abort(void)
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,62 @@
|
||||
/* wolfssl_simple_demo.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_SIMPLE_DEMO_H_
|
||||
#define WOLFSSL_SIMPLE_DEMO_H_
|
||||
|
||||
#define FREQ 10000 /* Hz */
|
||||
|
||||
/* Enable wolfcrypt test */
|
||||
/* can be enabled with benchmark test */
|
||||
#define CRYPT_TEST
|
||||
|
||||
/* Enable benchmark */
|
||||
/* can be enabled with cyrpt test */
|
||||
/*#define BENCHMARK*/
|
||||
|
||||
/* Enable TLS client */
|
||||
/* cannot enable with other definition */
|
||||
/* simplest tcp client*/
|
||||
/*#define SIMPLE_TCP_CLIENT */
|
||||
/* software TLS client */
|
||||
/* #define SIMPLE_TLS_CLIENT */
|
||||
/* use TSIP Acceleration */
|
||||
/*#define SIMPLE_TLS_TSIP_CLIENT*/
|
||||
|
||||
/* simplest tcp server */
|
||||
/*#define SIMPLE_TCP_SERVER*/
|
||||
/* simple TLS server */
|
||||
/* #define SIMPLE_TLS_SERVER */
|
||||
|
||||
void wolfSSL_TLS_client_init();
|
||||
void wolfSSL_TLS_client();
|
||||
void simple_tcp_client();
|
||||
void wolfSSL_TLS_server_init();
|
||||
void wolfSSL_TLS_server();
|
||||
void simple_tcp_server();
|
||||
|
||||
#if defined(SIMPLE_TCP_CLIENT) || defined(SIMPLE_TLS_CLIENT) || \
|
||||
defined(SIMPLE_TCP_SERVER) || defined(SIMPLE_TLS_SERVER)
|
||||
#define min(x,y) ((x)<(y)?(x):(y))
|
||||
int isascii(const char *s);
|
||||
#endif
|
||||
|
||||
#endif /* WOLFSSL_SIMPLE_DEMO_H_ */
|
||||
609
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.rcpc
vendored
Normal file
609
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.rcpc
vendored
Normal file
@@ -0,0 +1,609 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<MicomToolCommonProjectFile Version="1.00">
|
||||
<CreatorType Name="e2studio" Version=""/>
|
||||
<Placeholders>
|
||||
<PlaceholderPrefix>${</PlaceholderPrefix>
|
||||
<PlaceholderPostfix>}</PlaceholderPostfix>
|
||||
</Placeholders>
|
||||
<Project Name="test" Type="Application">
|
||||
<Files>
|
||||
<Category Name="src">
|
||||
<Path>src\test_main.c</Path>
|
||||
<Path>..\..\wolfssl_demo\user_settings.h</Path>
|
||||
<Path>src\wolfssl_simple_demo.h</Path>
|
||||
<Category Name="client">
|
||||
<Path>src\client\simple_tcp_client.c</Path>
|
||||
<Path>src\client\simple_tls_tsip_client.c</Path>
|
||||
</Category>
|
||||
<Category Name="key_data">
|
||||
<Path>..\..\wolfssl_demo\key_data.c</Path>
|
||||
<Path>..\..\wolfssl_demo\key_data.h</Path>
|
||||
</Category>
|
||||
<Category Name="server">
|
||||
<Path>src\server\simple_tcp_server.c</Path>
|
||||
<Path>src\server\simple_tls_server.c</Path>
|
||||
</Category>
|
||||
<Category Name="smc_gen">
|
||||
<Category Name="Config_TMR0">
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0.c</Path>
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0.h</Path>
|
||||
<Path>src\smc_gen\Config_TMR0\Config_TMR0_user.c</Path>
|
||||
</Category>
|
||||
<Category Name="general">
|
||||
<Path>src\smc_gen\general\r_cg_hardware_setup.c</Path>
|
||||
<Path>src\smc_gen\general\r_cg_macrodriver.h</Path>
|
||||
<Path>src\smc_gen\general\r_cg_tmr.h</Path>
|
||||
<Path>src\smc_gen\general\r_cg_userdefine.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_cgc_user.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_entry.h</Path>
|
||||
<Path>src\smc_gen\general\r_smc_interrupt.c</Path>
|
||||
<Path>src\smc_gen\general\r_smc_interrupt.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_bsp">
|
||||
<Path>src\smc_gen\r_bsp\platform.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\readme.txt</Path>
|
||||
<Category Name="board">
|
||||
<Category Name="generic_rx72n">
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx72n\hwsetup.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx72n\hwsetup.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx72n\r_bsp.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx72n\r_bsp_config_reference.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\board\generic_rx72n\r_bsp_interrupt_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="user">
|
||||
<Path>src\smc_gen\r_bsp\board\user\r_bsp.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_bsp\doc\en\r01an1685ej0720-rx-bsp.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_bsp\doc\ja\r01an1685jj0720-rx-bsp.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="mcu">
|
||||
<Category Name="all">
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\dbsct.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\fsp_common_api.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowlvl.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowlvl.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowsrc.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\lowsrc.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\mcu_locks.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_common.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_common.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_cpu.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_locking.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_mcu_startup.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_mcu_startup.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_software_interrupt.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_bsp_software_interrupt.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_fsp_error.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rtos.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_compiler.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_intrinsic_functions.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_rx_intrinsic_functions.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\r_typedefs.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\resetprg.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\sbrk.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\all\sbrk.h</Path>
|
||||
</Category>
|
||||
<Category Name="rx72n">
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_clocks.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_clocks.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_info.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_init.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_init.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_locks.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_mapped_interrupts.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_mapped_interrupts.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\mcu_mapped_interrupts_private.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\r_bsp_cpu.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\r_bsp_locking.h</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\vecttbl.c</Path>
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\vecttbl.h</Path>
|
||||
<Category Name="register_access">
|
||||
<Category Name="ccrx">
|
||||
<Path>src\smc_gen\r_bsp\mcu\rx72n\register_access\ccrx\iodefine.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_cmt_rx">
|
||||
<Path>src\smc_gen\r_cmt_rx\r_cmt_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_cmt_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_cmt_rx\doc\en\r01an1856ej0520-rx-timer.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_cmt_rx\doc\ja\r01an1856jj0520-rx-timer.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_cmt_rx\src\r_cmt_rx.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_config">
|
||||
<Path>src\smc_gen\r_config\r_bsp_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_bsp_config_readme.txt</Path>
|
||||
<Path>src\smc_gen\r_config\r_bsp_interrupt_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_cmt_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_ether_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_sys_time_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_t4_driver_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_t4_rx_config.h</Path>
|
||||
<Path>src\smc_gen\r_config\r_tsip_rx_config.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_ether_rx">
|
||||
<Path>src\smc_gen\r_ether_rx\r_ether_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_ether_rx\doc\en\r01an2009ej0122-rx-ether.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_ether_rx\doc\ja\r01an2009jj0122-rx-ether.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_ether_rx\src\r_ether_rx.c</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\src\r_ether_rx_private.h</Path>
|
||||
<Category Name="phy">
|
||||
<Path>src\smc_gen\r_ether_rx\src\phy\phy.c</Path>
|
||||
<Path>src\smc_gen\r_ether_rx\src\phy\phy.h</Path>
|
||||
</Category>
|
||||
<Category Name="targets">
|
||||
<Category Name="rx72n">
|
||||
<Path>src\smc_gen\r_ether_rx\src\targets\rx72n\r_ether_setting_rx72n.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_pincfg">
|
||||
<Path>src\smc_gen\r_pincfg\Pin.c</Path>
|
||||
<Path>src\smc_gen\r_pincfg\Pin.h</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_ether_rx_pinset.c</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_ether_rx_pinset.h</Path>
|
||||
<Path>src\smc_gen\r_pincfg\r_pinset.h</Path>
|
||||
</Category>
|
||||
<Category Name="r_sys_time_rx">
|
||||
<Path>src\smc_gen\r_sys_time_rx\r_sys_time_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_sys_time_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_sys_time_rx\doc\en\r20an0431ej0101-rx-middle.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_sys_time_rx\doc\ja\r20an0431jj0101-rx-middle.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_sys_time_rx\ref\r_sys_time_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_sys_time_rx\src\r_sys_time_rx.c</Path>
|
||||
<Path>src\smc_gen\r_sys_time_rx\src\r_sys_time_rx_private.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_t4_driver_rx">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\doc\en\r20an0311ej0109-rx-t4.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\doc\ja\r20an0311jj0109-rx-t4.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\ref\r_t4_driver_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\ether_callback.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\t4_driver.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\timer.c</Path>
|
||||
<Path>src\smc_gen\r_t4_driver_rx\src\timer.h</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_t4_rx">
|
||||
<Path>src\smc_gen\r_t4_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20an0051ej0210-rx-t4.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20uw0031ej0111-t4tiny.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\en\r20uw0032ej0109-t4tiny.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20an0051jj0210-rx-t4.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20uw0031jj0111-t4tiny.pdf</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\doc\ja\r20uw0032jj0109-t4tiny.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="lib">
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_mw_version.h</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_stdint.h</Path>
|
||||
<Path>src\smc_gen\r_t4_rx\lib\r_t4_itcpip.h</Path>
|
||||
</Category>
|
||||
<Category Name="ref">
|
||||
<Path>src\smc_gen\r_t4_rx\ref\r_t4_rx_config_reference.h</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>src\smc_gen\r_t4_rx\src\config_tcpudp.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
<Category Name="r_tsip_rx">
|
||||
<Path>src\smc_gen\r_tsip_rx\r_tsip_rx_if.h</Path>
|
||||
<Path>src\smc_gen\r_tsip_rx\readme.txt</Path>
|
||||
<Category Name="doc">
|
||||
<Category Name="en">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\en\r20an0548ej0115-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
<Category Name="ja">
|
||||
<Path>src\smc_gen\r_tsip_rx\doc\ja\r20an0548jj0115-rx-tsip-security.pdf</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F572NNHxFB</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.03.00">
|
||||
<BuildMode Active="True" Name="HardwareDebug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-nodpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\common"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\wolfssl_demo"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\generate"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE,RENESAS_T4_USE,WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-asmopt=-bank</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-tfu=intrinsic</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-nodpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-bank</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.abs"</Option>
|
||||
<Option>-form=absolute</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-vect=_undefined_interrupt_source_isr</Option>
|
||||
<Option>-list=${ProjName}.map</Option>
|
||||
<Option>-nooptimize</Option>
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2,D_8=R_8</Option>
|
||||
<Option>-cpu=RAM=00000000-0007ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0087ffff,RAM=00ff8000-00ffffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffc00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../wolfssl/Debug/wolfssl.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../../../${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../../../${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx72m_rx72n_rx66n_little.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R,B_8,R_8/04,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/0800000,PResetPRG,C_1,C_2,C,C_8,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-nodpfpu</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-head=runtime,ctype,stdio,stdlib,string,new</Option>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-nologo</Option>
|
||||
<GenerateMode>BuildOptionChanged</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>HardwareDebug\simple_tcp_client.obj</Path>
|
||||
<Path>HardwareDebug\simple_tls_tsip_client.obj</Path>
|
||||
<Path>HardwareDebug\key_data.obj</Path>
|
||||
<Path>HardwareDebug\simple_tcp_server.obj</Path>
|
||||
<Path>HardwareDebug\simple_tls_server.obj</Path>
|
||||
<Path>HardwareDebug\Config_TMR0.obj</Path>
|
||||
<Path>HardwareDebug\Config_TMR0_user.obj</Path>
|
||||
<Path>HardwareDebug\r_cg_hardware_setup.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_cgc.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_cgc_user.obj</Path>
|
||||
<Path>HardwareDebug\r_smc_interrupt.obj</Path>
|
||||
<Path>HardwareDebug\hwsetup.obj</Path>
|
||||
<Path>HardwareDebug\dbsct.obj</Path>
|
||||
<Path>HardwareDebug\lowlvl.obj</Path>
|
||||
<Path>HardwareDebug\lowsrc.obj</Path>
|
||||
<Path>HardwareDebug\mcu_locks.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_common.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_cpu.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_locking.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_mcu_startup.obj</Path>
|
||||
<Path>HardwareDebug\r_bsp_software_interrupt.obj</Path>
|
||||
<Path>HardwareDebug\r_rx_intrinsic_functions.obj</Path>
|
||||
<Path>HardwareDebug\resetprg.obj</Path>
|
||||
<Path>HardwareDebug\sbrk.obj</Path>
|
||||
<Path>HardwareDebug\mcu_clocks.obj</Path>
|
||||
<Path>HardwareDebug\mcu_init.obj</Path>
|
||||
<Path>HardwareDebug\mcu_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\mcu_mapped_interrupts.obj</Path>
|
||||
<Path>HardwareDebug\vecttbl.obj</Path>
|
||||
<Path>HardwareDebug\r_cmt_rx.obj</Path>
|
||||
<Path>HardwareDebug\phy.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_rx.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_setting_rx72n.obj</Path>
|
||||
<Path>HardwareDebug\Pin.obj</Path>
|
||||
<Path>HardwareDebug\r_ether_rx_pinset.obj</Path>
|
||||
<Path>HardwareDebug\r_sys_time_rx.obj</Path>
|
||||
<Path>HardwareDebug\ether_callback.obj</Path>
|
||||
<Path>HardwareDebug\t4_driver.obj</Path>
|
||||
<Path>HardwareDebug\timer.obj</Path>
|
||||
<Path>HardwareDebug\config_tcpudp.obj</Path>
|
||||
<Path>HardwareDebug\benchmark.obj</Path>
|
||||
<Path>HardwareDebug\test.obj</Path>
|
||||
<Path>HardwareDebug\wolfssl_dummy.obj</Path>
|
||||
<Path>HardwareDebug\test_main.obj</Path>
|
||||
<Path>HardwareDebug\test.lib</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\wolfssl_demo"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\generate"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
<MacroForC>RENESAS_T4_USE</MacroForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
<BuildMode Active="False" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\generate"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-define=DEBUG_CONSOLE</Option>
|
||||
<Option>-asmopt=-bank</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-outcode=utf8</Option>
|
||||
<Option>-tfu=intrinsic</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</Option>
|
||||
<Option>-utf8</Option>
|
||||
<Option>-bank</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.abs"</Option>
|
||||
<Option>-form=absolute</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-vect=_undefined_interrupt_source_isr</Option>
|
||||
<Option>-list=${ProjName}.map</Option>
|
||||
<Option>-nooptimize</Option>
|
||||
<Option>-rom=D=R,D_1=R_1,D_2=R_2,D_8=R_8</Option>
|
||||
<Option>-cpu=RAM=00000000-0007ffff,FIX=00080000-00083fff,FIX=00086000-00087fff,FIX=00088000-0009ffff,FIX=000a0000-000a3fff,RAM=000a4000-000a5fff,FIX=000a6000-000bffff,FIX=000c0000-000dffff,FIX=000e0000-000fffff,ROM=00100000-00107fff,FIX=007fc000-007fcfff,FIX=007fe000-007fffff,RAM=00800000-0087ffff,RAM=00ff8000-00ffffff,RAM=fe7f5d00-fe7f5d7f,RAM=fe7f7d70-fe7f7d9f,ROM=ffc00000-ffffffff</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../../../${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/T4_Library_ether_ccrx_rxv1_little.lib"</Option>
|
||||
<Option>-library="${ProjDirPath}/../../../../../../../../../${ProjName}/src/smc_gen/r_tsip_rx/lib/ccrx/r_tsip_rx72m_rx72n_rx66n_little.lib"</Option>
|
||||
<Option>-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,P/0FFE00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC,B_ETHERNET_BUFFERS_1,B_RX_DESC_1,B_TX_DESC_1/00010000</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-head=runtime,stdio,stdlib,string,new</Option>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-nologo</Option>
|
||||
<GenerateMode>BuildOptionChanged</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>Debug\simple_tcp_client.obj</Path>
|
||||
<Path>Debug\simple_tls_tsip_client.obj</Path>
|
||||
<Path>Debug\key_data.obj</Path>
|
||||
<Path>Debug\simple_tcp_server.obj</Path>
|
||||
<Path>Debug\simple_tls_server.obj</Path>
|
||||
<Path>Debug\Config_TMR0.obj</Path>
|
||||
<Path>Debug\Config_TMR0_user.obj</Path>
|
||||
<Path>Debug\r_cg_hardware_setup.obj</Path>
|
||||
<Path>Debug\r_smc_cgc.obj</Path>
|
||||
<Path>Debug\r_smc_cgc_user.obj</Path>
|
||||
<Path>Debug\r_smc_interrupt.obj</Path>
|
||||
<Path>Debug\hwsetup.obj</Path>
|
||||
<Path>Debug\dbsct.obj</Path>
|
||||
<Path>Debug\lowlvl.obj</Path>
|
||||
<Path>Debug\lowsrc.obj</Path>
|
||||
<Path>Debug\mcu_locks.obj</Path>
|
||||
<Path>Debug\r_bsp_common.obj</Path>
|
||||
<Path>Debug\r_bsp_cpu.obj</Path>
|
||||
<Path>Debug\r_bsp_interrupts.obj</Path>
|
||||
<Path>Debug\r_bsp_locking.obj</Path>
|
||||
<Path>Debug\r_bsp_mcu_startup.obj</Path>
|
||||
<Path>Debug\r_bsp_software_interrupt.obj</Path>
|
||||
<Path>Debug\r_rx_intrinsic_functions.obj</Path>
|
||||
<Path>Debug\resetprg.obj</Path>
|
||||
<Path>Debug\sbrk.obj</Path>
|
||||
<Path>Debug\mcu_clocks.obj</Path>
|
||||
<Path>Debug\mcu_init.obj</Path>
|
||||
<Path>Debug\mcu_interrupts.obj</Path>
|
||||
<Path>Debug\mcu_mapped_interrupts.obj</Path>
|
||||
<Path>Debug\vecttbl.obj</Path>
|
||||
<Path>Debug\r_cmt_rx.obj</Path>
|
||||
<Path>Debug\phy.obj</Path>
|
||||
<Path>Debug\r_ether_rx.obj</Path>
|
||||
<Path>Debug\r_ether_setting_rx72n.obj</Path>
|
||||
<Path>Debug\Pin.obj</Path>
|
||||
<Path>Debug\r_ether_rx_pinset.obj</Path>
|
||||
<Path>Debug\r_sys_time_rx.obj</Path>
|
||||
<Path>Debug\ether_callback.obj</Path>
|
||||
<Path>Debug\t4_driver.obj</Path>
|
||||
<Path>Debug\timer.obj</Path>
|
||||
<Path>Debug\config_tcpudp.obj</Path>
|
||||
<Path>Debug\benchmark.obj</Path>
|
||||
<Path>Debug\test.obj</Path>
|
||||
<Path>Debug\wolfssl_dummy.obj</Path>
|
||||
<Path>Debug\test_main.obj</Path>
|
||||
<Path>Debug\test.lib</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\generate"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForC>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\general"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\Config_TMR0"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_pincfg"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_config"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_sys_time_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_driver_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_t4_rx\lib"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_tsip_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_bsp"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_cmt_rx\src"</IncludePathForAsm>
|
||||
<IncludePathForAsm>"${ProjDirPath}\..\..\..\..\..\..\..\..\..\${ProjName}\src\smc_gen\r_ether_rx"</IncludePathForAsm>
|
||||
<MacroForC>DEBUG_CONSOLE</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
</BuildOptions>
|
||||
</Project>
|
||||
</MicomToolCommonProjectFile>
|
||||
1150
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.scfg
vendored
Normal file
1150
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.scfg
vendored
Normal file
File diff suppressed because it is too large
Load Diff
175
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test_HardwareDebug.launch
vendored
Normal file
175
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test_HardwareDebug.launch
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.renesas.cdt.launch.dsf.gdbremote.launchConfigurationType">
|
||||
<booleanAttribute key=".setStepMode" value="false"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.additionalServerArgs" value=""/>
|
||||
<intAttribute key="com.renesas.cdt.core.connectionTimeout" value="30"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.initCommands" value=""/>
|
||||
<stringAttribute key="com.renesas.cdt.core.ipAddress" value="localhost"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.jtagDevice" value="E2 Lite (RX)"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.jtagDeviceId" value="com.renesas.hardwaredebug.rx.e2"/>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBExe">
|
||||
<listEntry value="rx-elf-gdb -rx-force-isa=v3 -rx-force-double-fpu"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBLaunchName">
|
||||
<listEntry value="main"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="com.renesas.cdt.core.listGDBPort">
|
||||
<listEntry value="61234"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="com.renesas.cdt.core.optionInitCommands" value="monitor set_internal_mem_overwrite 0-645 monitor force_rtos_off "/>
|
||||
<intAttribute key="com.renesas.cdt.core.portNumber" value="61234"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.runCommands" value=""/>
|
||||
<stringAttribute key="com.renesas.cdt.core.secondGDBExe" value="green_dsp-elf-gdb"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.secondGDBSupport" value="false"/>
|
||||
<intAttribute key="com.renesas.cdt.core.secondGdbPortNumber" value="61237"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.serverParam" value="-g E2LITE -t R5F572NN -uConnectionTimeout= 30 -uClockSrcHoco= 1 -uAllowClockSourceInternal= 1 -uUseFine= 1 -uFineBaudRate= "1.50" -w 0 -z "0" -uRegisterSetting= "0" -uModePin= "0" -uChangeStartupBank= 0 -uStartupBank= "0" -uDebugMode= "0" -uExecuteProgram= 0 -uIdCode= "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -uresetOnReload= 1 -n 0 -uWorkRamAddress= "1000" -uverifyOnWritingMemory= 0 -uProgReWriteIRom= 0 -uProgReWriteDFlash= 0 -uhookWorkRamAddr= "0x7fb40" -uhookWorkRamSize= "0x4c0" -uOSRestriction= 0"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.startServer" value="true"/>
|
||||
<stringAttribute key="com.renesas.cdt.core.targetDevice" value="R5F572NN"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.useRemoteTarget" value="true"/>
|
||||
<booleanAttribute key="com.renesas.cdt.core.verboseMode" value="false"/>
|
||||
<stringAttribute key="com.renesas.cdt.debug.ioview.dsf.registerSelection0" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <selectedRegisterList ioFilePath="C:\Users\takas\.eclipse\com.renesas.platform_1435879475\DebugComp\RX\IoFiles\RX72N.sfrx"/> "/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.IO_MAP" value="${support_area_loc}"/>
|
||||
<booleanAttribute key="com.renesas.cdt.launch.dsf.USE_DEFAULT_IO_MAP" value="true"/>
|
||||
<listAttribute key="com.renesas.cdt.launch.dsf.downloadImages">
|
||||
<listEntry value="|true|true|true|0|true|No core|INTERNAL_MEMORY||false"/>
|
||||
</listAttribute>
|
||||
<booleanAttribute key="com.renesas.cdt.launch.dsf.downloadImagesUpgradedV30" value="true"/>
|
||||
<listAttribute key="com.renesas.cdt.launch.dsf.externalFlashDestinationAddresses"/>
|
||||
<listAttribute key="com.renesas.cdt.launch.dsf.externalFlashDownloadModules"/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.launchSeqType" value="com.renesas.cdt.launch.dsf.launchSequence.e2GdbServer"/>
|
||||
<stringAttribute key="com.renesas.cdt.launch.dsf.serverPath" value="${renesas.support.targetLoc:rx-debug}\e2-server-gdb"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.change.startup_bank" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.clock_source" value="1"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.e1_pwr" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.fine.baud.rate" value="2.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.flash_overwrite_blocks" value="0-645"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Addr" value="523072"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.hook_work_ram_Size" value="1216"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.inputclock" value="27.0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.clock.freq" value="16.5"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.mode_pin" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.prog_rewrite_irom" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.serial_number" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.startup_bank" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.e1.supply.voltage" value="3.3V"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.timer_clock" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.e1.verify.on.writing.to.memory" value="false"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.e1.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.clock_source" value="1"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.fine.baud.rate" value="1.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.flash_overwrite_blocks" value="0-31"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.hook_work_ram_Addr" value="9680"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.hook_work_ram_Size" value="560"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.inputclock" value="22.0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.jtag.clock.freq" value="16.5"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.mode_pin" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.power.voltage" value="0.0000"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.ez.prog_rewrite_irom" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.ez.serial_number" value=""/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.timer_clock" value="0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.ez.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e1.E1DebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2.E2LiteDebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.allow.change.startup_bank" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.allow.clock.source.internal" value="true"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.clock_source" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.connection.mode" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.e2lite_pwr" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.enable.hot.plug" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.execute.program" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.external_memory" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.fine.baud.rate" value="1.50"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.flash_overwrite_blocks" value="0-645"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_Stop_func" value="0x0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_enable_Stop" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_enable_start" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_start_func" value="0x0"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_work_ram_Addr" value="523072"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.hook_work_ram_Size" value="1216"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.id_code" value="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.inputclock" value="16"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.jtag.clock.freq" value="6.00"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.jtag.or.fine" value="1"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.le" value="true"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.mode" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.mode_pin" value="0"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.prog_rewrite_dflash" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.prog_rewrite_irom" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.rtosIntegrationInDebugView" value="false"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.rtosintegrationthreadsrunning" value="false"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.serial_number" value=""/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.startup_bank" value="0"/>
|
||||
<stringAttribute key="com.renesas.hardwaredebug.rx.e2lite.supply.voltage" value="3.3"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.timer_clock" value="240000000"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.e2lite.verify.on.writing.to.memory" value="false"/>
|
||||
<intAttribute key="com.renesas.hardwaredebug.rx.e2lite.work_ram_start" value="4096"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.rx.ez.EzDebugToolSettingsTree.resetAfterReload" value="true"/>
|
||||
<booleanAttribute key="com.renesas.hardwaredebug.timemeasurement" value="true"/>
|
||||
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.delay" value="3"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doHalt" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.doReset" value="false"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value="C:\workspace\hide\workspace_rx72n\wolfssl\IDE\Renesas\e2studio\RX72N\EnvisionKit\Simple\test\HardwareDebug\test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value="0"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.initCommands" value=""/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.runCommands" value=""/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value="C:\workspace\hide\workspace_rx72n\wolfssl\IDE\Renesas\e2studio\RX72N\EnvisionKit\Simple\test\HardwareDebug\test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value="0"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="rx-elf-gdb -rx-force-isa=v3 -rx-force-double-fpu"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.dsf.gdb.NON_STOP" value="true"/>
|
||||
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_START_MODE" value="remote"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.DEBUGGER_STOP_AT_MAIN_SYMBOL" value="main"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="HardwareDebug/test.x"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="test"/>
|
||||
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="true"/>
|
||||
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value="com.renesas.cdt.managedbuild.renesas.ccrx.hardwaredebug.configuration.1378385971"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/test"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?><memoryBlockExpressionList context="reserved-for-future-use"><gdbmemoryBlockExpression address="6520" core_thread_id="1_i1" label="0x1978"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression><gdbmemoryBlockExpression address="6668" core_thread_id="1_i1" label="0x1a0c"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression><gdbmemoryBlockExpression address="6504" core_thread_id="1_i1" label="0x1968"><memoryRendering id="org.eclipse.debug.ui.rendering.raw_memory"><renderingInstance containerId="org.eclipse.debug.ui.MemoryView.RenderingViewPane.1" viewId="org.eclipse.debug.ui.MemoryView" viewSecondaryId=""/></memoryRendering></gdbmemoryBlockExpression></memoryBlockExpressionList>"/>
|
||||
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
|
||||
</launchConfiguration>
|
||||
223
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/wolfssl/wolfssl.rcpc
vendored
Normal file
223
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/wolfssl/wolfssl.rcpc
vendored
Normal file
@@ -0,0 +1,223 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<MicomToolCommonProjectFile Version="1.00">
|
||||
<CreatorType Name="e2studio" Version=""/>
|
||||
<Placeholders>
|
||||
<PlaceholderPrefix>${</PlaceholderPrefix>
|
||||
<PlaceholderPostfix>}</PlaceholderPostfix>
|
||||
</Placeholders>
|
||||
<Project Name="wolfssl" Type="Library">
|
||||
<Files>
|
||||
<Category Name="src">
|
||||
<Path>..\..\..\..\..\..\..\src\crl.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\internal.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\keys.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\ocsp.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\sniffer.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\ssl.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\tls.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\tls13.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\src\wolfio.c</Path>
|
||||
</Category>
|
||||
<Category Name="wolfcrypt">
|
||||
<Category Name="port">
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_common.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_aes.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_sha.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_util.c</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\aes.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\arc4.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\asm.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\asn.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\blake2b.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\camellia.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\chacha.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\chacha20_poly1305.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\cmac.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\coding.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\compress.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\cpuid.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\cryptocb.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\curve25519.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\des3.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\dh.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\dsa.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ecc.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ecc_fp.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ed25519.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\error.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\fe_low_mem.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\fe_operations.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ge_low_mem.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ge_operations.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\hash.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\hmac.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\integer.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\kdf.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\logging.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\md2.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\md4.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\md5.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\memory.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\pkcs12.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\pkcs7.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\poly1305.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\pwdbased.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\random.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\ripemd.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\rsa.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sha.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sha256.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sha3.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sha512.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\signature.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_arm32.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_arm64.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_c32.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_c64.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_int.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\sp_x86_64.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\srp.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\tfm.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\wc_encrypt.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\wc_port.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\wolfevent.c</Path>
|
||||
<Path>..\..\..\..\..\..\..\wolfcrypt\src\wolfmath.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F572NNHxFB</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\wolfssl_demo"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\Simple\test\src"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\test\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-define=WOLFSSL_USER_SETTINGS,RENESAS_T4_USE</Option>
|
||||
<Option>-asmopt=-bank</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-tfu=intrinsic</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-bank</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-form=library=u</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-list=${ProjName}.lbp</Option>
|
||||
<Option>-nologo</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<GenerateMode>None</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>Debug\crl.obj</Path>
|
||||
<Path>Debug\internal.obj</Path>
|
||||
<Path>Debug\keys.obj</Path>
|
||||
<Path>Debug\ocsp.obj</Path>
|
||||
<Path>Debug\sniffer.obj</Path>
|
||||
<Path>Debug\ssl.obj</Path>
|
||||
<Path>Debug\tls.obj</Path>
|
||||
<Path>Debug\tls13.obj</Path>
|
||||
<Path>Debug\wolfio.obj</Path>
|
||||
<Path>Debug\renesas_common.obj</Path>
|
||||
<Path>Debug\renesas_tsip_aes.obj</Path>
|
||||
<Path>Debug\renesas_tsip_sha.obj</Path>
|
||||
<Path>Debug\renesas_tsip_util.obj</Path>
|
||||
<Path>Debug\aes.obj</Path>
|
||||
<Path>Debug\arc4.obj</Path>
|
||||
<Path>Debug\asm.obj</Path>
|
||||
<Path>Debug\asn.obj</Path>
|
||||
<Path>Debug\blake2b.obj</Path>
|
||||
<Path>Debug\camellia.obj</Path>
|
||||
<Path>Debug\chacha.obj</Path>
|
||||
<Path>Debug\chacha20_poly1305.obj</Path>
|
||||
<Path>Debug\cmac.obj</Path>
|
||||
<Path>Debug\coding.obj</Path>
|
||||
<Path>Debug\compress.obj</Path>
|
||||
<Path>Debug\cpuid.obj</Path>
|
||||
<Path>Debug\cryptocb.obj</Path>
|
||||
<Path>Debug\curve25519.obj</Path>
|
||||
<Path>Debug\des3.obj</Path>
|
||||
<Path>Debug\dh.obj</Path>
|
||||
<Path>Debug\dsa.obj</Path>
|
||||
<Path>Debug\ecc.obj</Path>
|
||||
<Path>Debug\ecc_fp.obj</Path>
|
||||
<Path>Debug\ed25519.obj</Path>
|
||||
<Path>Debug\error.obj</Path>
|
||||
<Path>Debug\fe_low_mem.obj</Path>
|
||||
<Path>Debug\fe_operations.obj</Path>
|
||||
<Path>Debug\ge_low_mem.obj</Path>
|
||||
<Path>Debug\ge_operations.obj</Path>
|
||||
<Path>Debug\hash.obj</Path>
|
||||
<Path>Debug\hmac.obj</Path>
|
||||
<Path>Debug\integer.obj</Path>
|
||||
<Path>Debug\kdf.obj</Path>
|
||||
<Path>Debug\logging.obj</Path>
|
||||
<Path>Debug\md2.obj</Path>
|
||||
<Path>Debug\md4.obj</Path>
|
||||
<Path>Debug\md5.obj</Path>
|
||||
<Path>Debug\memory.obj</Path>
|
||||
<Path>Debug\pkcs12.obj</Path>
|
||||
<Path>Debug\pkcs7.obj</Path>
|
||||
<Path>Debug\poly1305.obj</Path>
|
||||
<Path>Debug\pwdbased.obj</Path>
|
||||
<Path>Debug\random.obj</Path>
|
||||
<Path>Debug\ripemd.obj</Path>
|
||||
<Path>Debug\rsa.obj</Path>
|
||||
<Path>Debug\sha.obj</Path>
|
||||
<Path>Debug\sha256.obj</Path>
|
||||
<Path>Debug\sha3.obj</Path>
|
||||
<Path>Debug\sha512.obj</Path>
|
||||
<Path>Debug\signature.obj</Path>
|
||||
<Path>Debug\sp_arm32.obj</Path>
|
||||
<Path>Debug\sp_arm64.obj</Path>
|
||||
<Path>Debug\sp_c32.obj</Path>
|
||||
<Path>Debug\sp_c64.obj</Path>
|
||||
<Path>Debug\sp_int.obj</Path>
|
||||
<Path>Debug\sp_x86_64.obj</Path>
|
||||
<Path>Debug\srp.obj</Path>
|
||||
<Path>Debug\tfm.obj</Path>
|
||||
<Path>Debug\wc_encrypt.obj</Path>
|
||||
<Path>Debug\wc_port.obj</Path>
|
||||
<Path>Debug\wolfevent.obj</Path>
|
||||
<Path>Debug\wolfmath.obj</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\wolfssl_demo"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\Simple\test\src"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\test\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
<MacroForC>RENESAS_T4_USE</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
</BuildOptions>
|
||||
</Project>
|
||||
</MicomToolCommonProjectFile>
|
||||
35
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/include.am
vendored
Normal file
35
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/include.am
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# vim:ft=automake
|
||||
# included from Top Level Makefile.am
|
||||
# All paths should be given relative to the root
|
||||
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/README_EN.md
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/README_JP.md
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/InstructionManualForExample_RX72N_EnvisonKit_EN.pdf
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/InstructionManualForExample_RX72N_EnvisonKit_JP.pdf
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/resource/section.esi
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl/wolfssl.rcpc
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_tsip_unit_test.c
|
||||
|
||||
# Simple Example Contents
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/sectioninfo.esi
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/common/wolfssl_dummy.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/client/simple_tcp_client.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/client/simple_tls_tsip_client.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/server/simple_tcp_server.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/server/simple_tls_server.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/test_main.c
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/src/wolfssl_simple_demo.h
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/.project
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test_HardwareDebug.launch
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.rcpc
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/test/test.scfg
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/wolfssl/.cproject
|
||||
EXTRA_DIST+= IDE/Renesas/e2studio/RX72N/EnvisionKit/Simple/wolfssl/.project
|
||||
42
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/resource/section.esi
vendored
Normal file
42
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/resource/section.esi
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="ASCII"?>
|
||||
<com.renesas.linkersection.model:SectionContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.renesas.linkersection.model="http:///LinkerSection.ecore">
|
||||
<sections name="B_ETHERNET_BUFFERS_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress"/>
|
||||
</sections>
|
||||
<sections name="B_RX_DESC_1"/>
|
||||
<sections name="B_TX_DESC_1"/>
|
||||
<sections name="R"/>
|
||||
<sections name="R_1"/>
|
||||
<sections name="R_2"/>
|
||||
<sections name="R_8"/>
|
||||
<sections name="B_8"/>
|
||||
<sections name="B"/>
|
||||
<sections name="B_1"/>
|
||||
<sections name="B_2"/>
|
||||
<sections name="RPFRAM2*"/>
|
||||
<sections name="SU"/>
|
||||
<sections name="SI"/>
|
||||
<sections name="C_PKCS11_STORAGE*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1050624"/>
|
||||
</sections>
|
||||
<sections name="C_SYSTEM_CONFIG*">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="1067008"/>
|
||||
</sections>
|
||||
<sections name="C_1">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4292870912"/>
|
||||
</sections>
|
||||
<sections name="C_2"/>
|
||||
<sections name="C"/>
|
||||
<sections name="C_8"/>
|
||||
<sections name="C$*"/>
|
||||
<sections name="D*"/>
|
||||
<sections name="W*"/>
|
||||
<sections name="L"/>
|
||||
<sections name="P*"/>
|
||||
<sections name="EXCEPTVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967168"/>
|
||||
</sections>
|
||||
<sections name="RESETVECT">
|
||||
<sectionAddress xsi:type="com.renesas.linkersection.model:FixedAddress" fixedAddress="4294967292"/>
|
||||
</sections>
|
||||
</com.renesas.linkersection.model:SectionContainer>
|
||||
232
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl/wolfssl.rcpc
vendored
Normal file
232
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl/wolfssl.rcpc
vendored
Normal file
@@ -0,0 +1,232 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<MicomToolCommonProjectFile Version="1.00">
|
||||
<CreatorType Name="e2studio" Version=""/>
|
||||
<Placeholders>
|
||||
<PlaceholderPrefix>${</PlaceholderPrefix>
|
||||
<PlaceholderPostfix>}</PlaceholderPostfix>
|
||||
</Placeholders>
|
||||
<Project Name="wolfssl" Type="Library">
|
||||
<Files>
|
||||
<Category Name="src">
|
||||
<Path>..\..\..\..\..\..\src\crl.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\internal.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\keys.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\ocsp.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\sniffer.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\ssl.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\tls.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\tls13.c</Path>
|
||||
<Path>..\..\..\..\..\..\src\wolfio.c</Path>
|
||||
</Category>
|
||||
<Category Name="wolfcrypt">
|
||||
<Category Name="port">
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_common.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_aes.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_sha.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\port\Renesas\renesas_tsip_util.c</Path>
|
||||
</Category>
|
||||
<Category Name="src">
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\aes.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\arc4.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\asm.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\asn.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\blake2b.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\camellia.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\chacha.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\chacha20_poly1305.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\cmac.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\coding.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\compress.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\cpuid.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\cryptocb.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\curve25519.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\des3.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\dh.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\dsa.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ecc.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ecc_fp.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ed25519.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\error.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\fe_low_mem.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\fe_operations.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ge_low_mem.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ge_operations.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\hash.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\hmac.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\integer.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\kdf.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\logging.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\md2.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\md4.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\md5.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\memory.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\pkcs12.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\pkcs7.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\poly1305.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\pwdbased.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\random.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\ripemd.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\rsa.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sha.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sha256.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sha3.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sha512.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\signature.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_arm32.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_arm64.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_c32.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_c64.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_int.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\sp_x86_64.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\srp.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\tfm.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\wc_encrypt.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\wc_port.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\wolfevent.c</Path>
|
||||
<Path>..\..\..\..\..\..\wolfcrypt\src\wolfmath.c</Path>
|
||||
</Category>
|
||||
</Category>
|
||||
</Files>
|
||||
<Device Category="com.renesas.cdt.managedbuild.renesas.ccrx.common.option.cpu.rx600" Series="RX">R5F572NNHxFB</Device>
|
||||
<BuildOptions Name="CC-RX" Version="v3.04.00">
|
||||
<BuildMode Active="True" Name="Debug">
|
||||
<GeneralOptions/>
|
||||
<CompileOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\demos"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\include"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\portable\Renesas\RX700v3_DPFPU"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\libraries\freertos_plus\standard\freertos_plus_tcp\include"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\amazon_freertos_common"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\config_files"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_config"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_bsp"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_tsip_rx"</Option>
|
||||
<Option>-include="${ProjDirPath}\..\wolfssl_demo"</Option>
|
||||
<Option>-define=WOLFSSL_USER_SETTINGS</Option>
|
||||
<Option>-asmopt=-bank</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-tfu=intrinsic</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-lang=c99</Option>
|
||||
<Option>-lang=cpp</Option>
|
||||
<Option>-output=obj=${CONFIGDIR}\${FILELEAF}.obj</Option>
|
||||
<Option>-obj_path=${CONFIGDIR}</Option>
|
||||
</CompileOptions>
|
||||
<AssembleOptions>
|
||||
<Option>-isa=rxv3</Option>
|
||||
<Option>-fpu</Option>
|
||||
<Option>-dpfpu</Option>
|
||||
<Option>-bank</Option>
|
||||
<Option>-debug</Option>
|
||||
<Option>-nologo</Option>
|
||||
<Option>-output=${CONFIGDIR}</Option>
|
||||
</AssembleOptions>
|
||||
<LinkOptions>
|
||||
<Option>-output="${ProjName}.lib"</Option>
|
||||
<Option>-form=library=u</Option>
|
||||
<Option>-nomessage</Option>
|
||||
<Option>-list=${ProjName}.lbp</Option>
|
||||
<Option>-nologo</Option>
|
||||
<PreLinker>Auto</PreLinker>
|
||||
</LinkOptions>
|
||||
<LibraryGenerateOptions>
|
||||
<GenerateMode>None</GenerateMode>
|
||||
</LibraryGenerateOptions>
|
||||
<LinkOrder>
|
||||
<Path>Debug\crl.obj</Path>
|
||||
<Path>Debug\internal.obj</Path>
|
||||
<Path>Debug\keys.obj</Path>
|
||||
<Path>Debug\ocsp.obj</Path>
|
||||
<Path>Debug\sniffer.obj</Path>
|
||||
<Path>Debug\ssl.obj</Path>
|
||||
<Path>Debug\tls.obj</Path>
|
||||
<Path>Debug\tls13.obj</Path>
|
||||
<Path>Debug\wolfio.obj</Path>
|
||||
<Path>Debug\renesas_common.obj</Path>
|
||||
<Path>Debug\renesas_tsip_aes.obj</Path>
|
||||
<Path>Debug\renesas_tsip_sha.obj</Path>
|
||||
<Path>Debug\renesas_tsip_util.obj</Path>
|
||||
<Path>Debug\aes.obj</Path>
|
||||
<Path>Debug\arc4.obj</Path>
|
||||
<Path>Debug\asm.obj</Path>
|
||||
<Path>Debug\asn.obj</Path>
|
||||
<Path>Debug\blake2b.obj</Path>
|
||||
<Path>Debug\camellia.obj</Path>
|
||||
<Path>Debug\chacha.obj</Path>
|
||||
<Path>Debug\chacha20_poly1305.obj</Path>
|
||||
<Path>Debug\cmac.obj</Path>
|
||||
<Path>Debug\coding.obj</Path>
|
||||
<Path>Debug\compress.obj</Path>
|
||||
<Path>Debug\cpuid.obj</Path>
|
||||
<Path>Debug\cryptocb.obj</Path>
|
||||
<Path>Debug\curve25519.obj</Path>
|
||||
<Path>Debug\des3.obj</Path>
|
||||
<Path>Debug\dh.obj</Path>
|
||||
<Path>Debug\dsa.obj</Path>
|
||||
<Path>Debug\ecc.obj</Path>
|
||||
<Path>Debug\ecc_fp.obj</Path>
|
||||
<Path>Debug\ed25519.obj</Path>
|
||||
<Path>Debug\error.obj</Path>
|
||||
<Path>Debug\fe_low_mem.obj</Path>
|
||||
<Path>Debug\fe_operations.obj</Path>
|
||||
<Path>Debug\ge_low_mem.obj</Path>
|
||||
<Path>Debug\ge_operations.obj</Path>
|
||||
<Path>Debug\hash.obj</Path>
|
||||
<Path>Debug\hmac.obj</Path>
|
||||
<Path>Debug\integer.obj</Path>
|
||||
<Path>Debug\kdf.obj</Path>
|
||||
<Path>Debug\logging.obj</Path>
|
||||
<Path>Debug\md2.obj</Path>
|
||||
<Path>Debug\md4.obj</Path>
|
||||
<Path>Debug\md5.obj</Path>
|
||||
<Path>Debug\memory.obj</Path>
|
||||
<Path>Debug\pkcs12.obj</Path>
|
||||
<Path>Debug\pkcs7.obj</Path>
|
||||
<Path>Debug\poly1305.obj</Path>
|
||||
<Path>Debug\pwdbased.obj</Path>
|
||||
<Path>Debug\random.obj</Path>
|
||||
<Path>Debug\ripemd.obj</Path>
|
||||
<Path>Debug\rsa.obj</Path>
|
||||
<Path>Debug\sha.obj</Path>
|
||||
<Path>Debug\sha256.obj</Path>
|
||||
<Path>Debug\sha3.obj</Path>
|
||||
<Path>Debug\sha512.obj</Path>
|
||||
<Path>Debug\signature.obj</Path>
|
||||
<Path>Debug\sp_arm32.obj</Path>
|
||||
<Path>Debug\sp_arm64.obj</Path>
|
||||
<Path>Debug\sp_c32.obj</Path>
|
||||
<Path>Debug\sp_c64.obj</Path>
|
||||
<Path>Debug\sp_int.obj</Path>
|
||||
<Path>Debug\sp_x86_64.obj</Path>
|
||||
<Path>Debug\srp.obj</Path>
|
||||
<Path>Debug\tfm.obj</Path>
|
||||
<Path>Debug\wc_encrypt.obj</Path>
|
||||
<Path>Debug\wc_port.obj</Path>
|
||||
<Path>Debug\wolfevent.obj</Path>
|
||||
<Path>Debug\wolfmath.obj</Path>
|
||||
</LinkOrder>
|
||||
<CommonOptions>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\demos"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\include"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\freertos_kernel\portable\Renesas\RX700v3_DPFPU"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\libraries\freertos_plus\standard\freertos_plus_tcp\include"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\amazon_freertos_common"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\config_files"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_config"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_bsp"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\..\..\..\..\..\..\vendors\renesas\boards\rx72n-envision-kit\aws_demos\src\smc_gen\r_tsip_rx"</IncludePathForC>
|
||||
<IncludePathForC>"${ProjDirPath}\..\wolfssl_demo"</IncludePathForC>
|
||||
<MacroForC>WOLFSSL_USER_SETTINGS</MacroForC>
|
||||
</CommonOptions>
|
||||
</BuildMode>
|
||||
</BuildOptions>
|
||||
</Project>
|
||||
</MicomToolCommonProjectFile>
|
||||
235
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.c
vendored
Normal file
235
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.c
vendored
Normal file
@@ -0,0 +1,235 @@
|
||||
/* key_data.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include "key_data.h"
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
RX72N supports TSIP v1.09 or later
|
||||
--------------------------------------------------------------------------*/
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >= 109)
|
||||
|
||||
const st_key_block_data_t g_key_block_data =
|
||||
{
|
||||
/* uint8_t encrypted_provisioning_key[R_TSIP_AES_CBC_IV_BYTE_SIZE * 2]; */
|
||||
{
|
||||
0xDF, 0x78, 0x49, 0x28, 0xA9, 0x4C, 0x36, 0xD6, 0xC9, 0x89, 0x98, 0xDF,
|
||||
0xFF, 0xB1, 0xCB, 0xBC, 0x9F, 0xF4, 0x34, 0xCD, 0x81, 0x53, 0x67, 0xB3,
|
||||
0xFC, 0x85, 0xC6, 0x0B, 0xA2, 0xC8, 0xF4, 0x83
|
||||
},
|
||||
/* uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE]; */
|
||||
{
|
||||
0xF6, 0xA9, 0x83, 0x5A, 0xA1, 0x65, 0x1D, 0x28, 0xC8, 0x1A, 0xA6, 0x9D,
|
||||
0x34, 0xB2, 0x4D, 0x92
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0xC8, 0x12, 0x94, 0x44, 0x43, 0x35, 0x82, 0x09, 0xF2, 0x54, 0x69, 0xB6,
|
||||
0x9B, 0x8E, 0x6F, 0x92, 0xE3, 0x3A, 0xB2, 0x55, 0x63, 0x8D, 0xDB, 0x47,
|
||||
0x75, 0x8D, 0x9D, 0x56, 0xD7, 0x7F, 0x42, 0x3A, 0x04, 0x4C, 0xAA, 0xF1,
|
||||
0x94, 0x9C, 0x8C, 0x97, 0xAF, 0x5C, 0xBA, 0x0E, 0xBD, 0x8A, 0xE3, 0x67,
|
||||
0x3E, 0xF8, 0x4C, 0x8E, 0xB7, 0x71, 0xB0, 0xCE, 0x09, 0x3C, 0xEC, 0x9C,
|
||||
0xCC, 0x81, 0x9D, 0x37, 0x9E, 0x34, 0x39, 0x6D, 0xF0, 0x7D, 0x1A, 0x4A,
|
||||
0xEB, 0xF5, 0x99, 0x91, 0xE1, 0xB0, 0x99, 0x72, 0xB3, 0xF3, 0x2B, 0xE1,
|
||||
0x6F, 0x5B, 0xD4, 0xA3, 0xB9, 0x9C, 0xEB, 0x95, 0xC3, 0xB2, 0x8F, 0x5C,
|
||||
0x58, 0xD5, 0x0A, 0xAA, 0x02, 0x01, 0xBF, 0xE1, 0xE9, 0x23, 0xFB, 0x03,
|
||||
0xCF, 0x54, 0x6D, 0x29, 0xE7, 0x5E, 0x96, 0x51, 0x68, 0x6B, 0xDD, 0x06,
|
||||
0x67, 0x5E, 0x84, 0x50, 0x21, 0x50, 0x78, 0x89, 0x80, 0xF8, 0x61, 0x9C,
|
||||
0xBE, 0xDA, 0x75, 0x55, 0x1A, 0xE6, 0x3C, 0xA5, 0x1C, 0xE4, 0x5A, 0x5C,
|
||||
0x68, 0x7C, 0x48, 0xC7, 0x6A, 0xC9, 0x80, 0x54, 0x31, 0xE7, 0x65, 0x8A,
|
||||
0x13, 0xF3, 0x6D, 0x0F, 0xB3, 0x62, 0x8D, 0x1B, 0xEA, 0x71, 0x12, 0x86,
|
||||
0x50, 0x98, 0xA3, 0x8E, 0x64, 0x1D, 0x3E, 0xA4, 0x5A, 0x99, 0xB3, 0xBD,
|
||||
0x3E, 0x3D, 0xF5, 0x0F, 0x41, 0x09, 0xFB, 0x04, 0x7B, 0x8D, 0xA1, 0xCF,
|
||||
0xBA, 0x71, 0x85, 0x86, 0x3C, 0x04, 0xDD, 0x74, 0x8D, 0xE3, 0x3C, 0x8E,
|
||||
0x52, 0x3C, 0x05, 0x7A, 0xBE, 0xCC, 0xEA, 0x9D, 0x57, 0x2C, 0x40, 0x05,
|
||||
0xEE, 0x49, 0x1D, 0xD2, 0xA3, 0x5A, 0xFA, 0x25, 0x1D, 0x1F, 0xDD, 0xB5,
|
||||
0x36, 0x7D, 0x25, 0xD3, 0x34, 0x39, 0xC2, 0x59, 0x57, 0xAD, 0x3C, 0x9D,
|
||||
0xC9, 0xBF, 0x09, 0x8D, 0xA0, 0x40, 0x5A, 0x14, 0x7B, 0xCF, 0xFE, 0x05,
|
||||
0x3E, 0xF3, 0xD1, 0x7D, 0xBB, 0x33, 0x96, 0x40, 0x79, 0xC2, 0x7B, 0x15,
|
||||
0x2E, 0xEE, 0xE3, 0x5B, 0x9C, 0x06, 0x72, 0x95, 0xFF, 0xCB, 0xC9, 0xE4,
|
||||
0x96, 0x97, 0x18, 0x0D, 0xE7, 0x78, 0xCD, 0xE9, 0xA7, 0xEA, 0xE9, 0xDF
|
||||
},
|
||||
/* uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16]; */
|
||||
{
|
||||
0
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16]
|
||||
*/
|
||||
{
|
||||
0xAF, 0x8C, 0x78, 0xE3, 0x6C, 0x9E, 0xC6, 0x76, 0xE5, 0x86, 0x84, 0xBE,
|
||||
0xF5, 0x6C, 0xD7, 0x2B, 0x46, 0x24, 0x35, 0x99, 0xA5, 0x64, 0xDD, 0xFA,
|
||||
0x35, 0x22, 0x5A, 0xB8, 0x5F, 0xD8, 0x1E, 0xCF, 0xCC, 0x73, 0x10, 0xD6,
|
||||
0x13, 0x69, 0x8F, 0x36, 0xA9, 0x8E, 0x09, 0xDF, 0x83, 0x20, 0x85, 0xBE,
|
||||
0x81, 0x69, 0x51, 0x75, 0xCB, 0xA5, 0x90, 0x8C, 0xC1, 0x75, 0xBE, 0x0F,
|
||||
0x8C, 0xB6, 0xFE, 0x73, 0x03, 0x37, 0x03, 0x41, 0xC0, 0x98, 0xC2, 0xEE,
|
||||
0x2D, 0x1B, 0xDA, 0x10, 0x8B, 0xF6, 0xB6, 0x67, 0xE9, 0x29, 0xCD, 0xEC,
|
||||
0x4C, 0x4D, 0x84, 0x28, 0x61, 0x3A, 0xF5, 0x6D, 0xEE, 0x78, 0x45, 0xF3,
|
||||
0x17, 0xC9, 0x77, 0xAB, 0x56, 0x2C, 0x68, 0xCB, 0x14, 0x9F, 0x5A, 0xE7,
|
||||
0x11, 0xC7, 0x13, 0x4B, 0xDC, 0x31, 0x60, 0x77, 0xDA, 0x56, 0x0C, 0x15,
|
||||
0xB2, 0xA9, 0x73, 0x4C, 0xD3, 0x46, 0x29, 0x18, 0x1C, 0x8C, 0xFD, 0xCF,
|
||||
0xAC, 0x4B, 0x55, 0x30, 0x96, 0xDC, 0xE9, 0xC0, 0x6A, 0x74, 0x68, 0x1D,
|
||||
0x6B, 0x25, 0xB0, 0x8F, 0x0C, 0xD7, 0xDD, 0xFC, 0xA8, 0x15, 0x87, 0x3E,
|
||||
0xA3, 0x91, 0x46, 0x25, 0x6C, 0x6F, 0xC4, 0xB2, 0xE1, 0xB8, 0x5F, 0xF3,
|
||||
0x6A, 0x0D, 0x9C, 0x29, 0x08, 0x6F, 0x5E, 0xFF, 0xA0, 0x81, 0x34, 0xA5,
|
||||
0x2B, 0x2B, 0x47, 0xE0, 0x6D, 0x56, 0xD2, 0x52, 0xC7, 0x19, 0x63, 0x72,
|
||||
0x84, 0x96, 0x64, 0xA5, 0xF2, 0x92, 0x3C, 0x38, 0x37, 0x9F, 0x6A, 0x2D,
|
||||
0x58, 0x33, 0x8C, 0x5C, 0x27, 0x05, 0xCB, 0x4F, 0x62, 0x2F, 0x40, 0xE9,
|
||||
0x55, 0x2C, 0x75, 0x4B, 0x02, 0xB3, 0x61, 0xAD, 0x34, 0x14, 0x49, 0x26,
|
||||
0x94, 0x45, 0x9B, 0xB8, 0xDB, 0x1F, 0xCE, 0xE9, 0xB1, 0xBF, 0x47, 0xF3,
|
||||
0xD4, 0xAD, 0xEB, 0xBC, 0x4F, 0x61, 0xAD, 0x66, 0xAF, 0x10, 0x94, 0x5D,
|
||||
0x25, 0x5B, 0x52, 0xF3, 0x44, 0xBA, 0x28, 0xF8, 0xF2, 0x01, 0x41, 0x61,
|
||||
0xF3, 0xE5, 0x91, 0x44, 0xF9, 0xA3, 0x56, 0xD8, 0xE9, 0x43, 0x0F, 0x78,
|
||||
0x7E, 0x1C, 0x01, 0xA6, 0xD7, 0x47, 0x87, 0x7C, 0xC5, 0xAF, 0x2A, 0xD3,
|
||||
0x71, 0x3A, 0x3E, 0x96, 0xF5, 0x8E, 0xA8, 0x1A, 0x89, 0x17, 0xCD, 0x52,
|
||||
0x7E, 0x98, 0x70, 0xB3, 0x57, 0x22, 0x59, 0x1C, 0xB7, 0x61, 0xD3, 0x32,
|
||||
0xE5, 0x2E, 0x6B, 0x6F, 0x2B, 0xD2, 0xAB, 0x27, 0x62, 0x65, 0xBE, 0x0B,
|
||||
0x8B, 0xFC, 0x9D, 0xB7, 0x3B, 0x4F, 0xA7, 0x35, 0xA6, 0xB3, 0x10, 0x98,
|
||||
0x6D, 0x47, 0x12, 0x16, 0x89, 0x33, 0x9A, 0x87, 0x85, 0x50, 0x21, 0x2B,
|
||||
0x03, 0xD0, 0x0C, 0x25, 0x52, 0xC1, 0xA4, 0xD9, 0x50, 0x57, 0x0A, 0x88,
|
||||
0x67, 0xE9, 0x55, 0x78, 0xFF, 0x23, 0xC0, 0xD1, 0xB6, 0xF4, 0xBD, 0x64,
|
||||
0x38, 0x9A, 0x59, 0xD8, 0x0C, 0xCA, 0x3C, 0x44, 0xBB, 0x31, 0x40, 0xF3,
|
||||
0x3F, 0x84, 0x74, 0x1A, 0x1B, 0xFB, 0x81, 0x22, 0x20, 0x0E, 0x68, 0x48,
|
||||
0x7F, 0xBF, 0xBB, 0xE2, 0xF7, 0xEA, 0x1C, 0xDD, 0x63, 0xAA, 0x3E, 0xFE,
|
||||
0x7A, 0xBD, 0x6C, 0x2A, 0x2C, 0x6C, 0x8E, 0x3C, 0xB6, 0x42, 0x2F, 0x42,
|
||||
0xF2, 0x17, 0x07, 0x2F, 0x4F, 0xAA, 0x4B, 0xA0, 0xE7, 0x98, 0xAE, 0x95,
|
||||
0x21, 0x2A, 0xF8, 0x1C, 0x33, 0x81, 0xC2, 0x64, 0xEC, 0xF3, 0xD7, 0x75,
|
||||
0x81, 0x61, 0x8C, 0xDF, 0x7F, 0x76, 0x6B, 0x44, 0x22, 0x36, 0xD3, 0x7F,
|
||||
0x17, 0x40, 0x84, 0xF8, 0xA8, 0x4B, 0xD5, 0xD4, 0x4E, 0xA1, 0x86, 0xDB,
|
||||
0x9B, 0xCD, 0xB6, 0x6C, 0xDF, 0x35, 0x0C, 0x0D, 0x7E, 0x0F, 0x01, 0x9C,
|
||||
0xF7, 0x6E, 0x89, 0xE6, 0x2F, 0x0E, 0xC5, 0xF3, 0xEA, 0x69, 0x8C, 0xA5,
|
||||
0xD5, 0x48, 0xEE, 0x5B, 0x77, 0x04, 0xFE, 0xC7, 0x56, 0x87, 0x27, 0xD4,
|
||||
0xF9, 0xCC, 0xB4, 0xB4, 0xB7, 0x1A, 0x85, 0x38, 0x0B, 0x93, 0xD2, 0x1D,
|
||||
0xD3, 0xDE, 0x7E, 0x45, 0xAF, 0x82, 0x46, 0x65, 0xFE, 0x59, 0x55, 0x83
|
||||
},
|
||||
/* uint8_t
|
||||
* encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
*/
|
||||
{
|
||||
0xE6, 0x6C, 0xB8, 0x7C, 0xDB, 0x85, 0x50, 0x51, 0x4A, 0x75, 0x38, 0xA4,
|
||||
0x74, 0x7A, 0x8C, 0x7C, 0x07, 0x71, 0x0E, 0x52, 0xC3, 0x19, 0xD1, 0xE6,
|
||||
0xF8, 0x36, 0xD2, 0xD3, 0x53, 0xF8, 0xA7, 0xCE, 0xBC, 0xBE, 0xAE, 0x62,
|
||||
0x7F, 0x00, 0x54, 0xB1, 0x01, 0x11, 0xCA, 0xE3, 0x77, 0x3E, 0x2E, 0x21
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
/* Public key type of CA root cert: 0: RSA-2048 2: ECDSA-P256*/
|
||||
#if defined(USE_ECC_CERT)
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_ECDSA_P256;
|
||||
#else
|
||||
const uint32_t encrypted_user_key_type =
|
||||
R_TSIP_TLS_PUBLIC_KEY_TYPE_RSA2048;
|
||||
#endif
|
||||
|
||||
const unsigned char ca_ecc_cert_der_sig[] =
|
||||
{
|
||||
0x6e, 0x7d, 0x2b, 0xd3, 0x6d, 0x6a, 0x70, 0x31, 0xbf, 0xcd, 0x6f, 0x32,
|
||||
0x74, 0x8b, 0x4d, 0xdf, 0x7c, 0x72, 0xc6, 0x78, 0x61, 0x2b, 0x0f, 0xcc,
|
||||
0xbc, 0xa3, 0x25, 0x54, 0x04, 0xfa, 0x9e, 0xf7, 0x1c, 0xa2, 0xe1, 0x33,
|
||||
0x90, 0x08, 0xcd, 0x3c, 0xc1, 0x03, 0x66, 0xb6, 0x3f, 0xf1, 0xbf, 0xaf,
|
||||
0x0d, 0xb0, 0xeb, 0xe4, 0xc7, 0x54, 0x60, 0x34, 0x3b, 0x62, 0xcf, 0x28,
|
||||
0x95, 0xa2, 0x08, 0x79, 0xc5, 0x51, 0xf3, 0xe1, 0x88, 0x3b, 0xa0, 0x1d,
|
||||
0x1d, 0x42, 0x5a, 0xba, 0x09, 0xe4, 0x64, 0xa1, 0x83, 0xf4, 0x60, 0x44,
|
||||
0x89, 0xd3, 0xdd, 0x6c, 0x71, 0x7b, 0xd1, 0xb0, 0x28, 0x7b, 0x98, 0xe2,
|
||||
0x4b, 0x99, 0x9a, 0x22, 0xd0, 0xeb, 0x1c, 0x5c, 0xbe, 0x49, 0x1a, 0xcf,
|
||||
0xd7, 0x4b, 0x19, 0xe9, 0xdf, 0x82, 0x21, 0xe3, 0x87, 0x7a, 0x25, 0x58,
|
||||
0x8f, 0x29, 0x0e, 0xce, 0xf4, 0x09, 0x0f, 0x2f, 0x04, 0xe9, 0xd2, 0xf9,
|
||||
0xcc, 0xb7, 0x7a, 0x46, 0x5d, 0x98, 0x05, 0x54, 0x89, 0x8e, 0x09, 0x79,
|
||||
0xa8, 0x6f, 0xf6, 0x12, 0xdd, 0x93, 0x38, 0x83, 0x14, 0x3f, 0x42, 0xcf,
|
||||
0x03, 0x9d, 0x84, 0x9d, 0xe9, 0x6e, 0x9f, 0x87, 0x0f, 0xb8, 0x15, 0x9b,
|
||||
0x9b, 0x4c, 0x32, 0x3b, 0x82, 0x7b, 0x3d, 0xd4, 0x85, 0x1e, 0x71, 0x99,
|
||||
0x67, 0x40, 0x59, 0xad, 0x8c, 0x31, 0xd7, 0xa2, 0x81, 0xfd, 0x46, 0x21,
|
||||
0xd7, 0xc8, 0x89, 0x3d, 0x17, 0x3f, 0x5e, 0x82, 0x5e, 0xfa, 0x7b, 0x34,
|
||||
0x7a, 0x1b, 0x85, 0x86, 0xf8, 0x02, 0xf2, 0xf3, 0x01, 0x2c, 0xbd, 0x4a,
|
||||
0x98, 0x0f, 0xe9, 0x4b, 0x1a, 0xa3, 0xee, 0xfc, 0x77, 0xda, 0xcf, 0xee,
|
||||
0x9c, 0xca, 0xf9, 0xbf, 0xaa, 0x5b, 0xbc, 0x01, 0x4b, 0xd4, 0x74, 0x7c,
|
||||
0xee, 0xfb, 0x7c, 0xc4, 0x31, 0xb7, 0x46, 0x9e, 0x94, 0x84, 0xa3, 0x82,
|
||||
0x0c, 0x7b, 0x61, 0x4e
|
||||
};
|
||||
const int sizeof_ca_ecc_cert_sig = sizeof(ca_ecc_cert_der_sig);
|
||||
|
||||
/* ./ca-cert.der.sign, */
|
||||
const unsigned char ca_cert_der_sig[] =
|
||||
{
|
||||
0x0a, 0xc8, 0xbb, 0x7e, 0x5a, 0x72, 0x6a, 0x5b, 0xf0, 0xc6, 0xbf, 0x36,
|
||||
0x8e, 0xe1, 0xcd, 0xbc, 0x08, 0xfd, 0x22, 0x5a, 0x3b, 0x48, 0x33, 0xb9,
|
||||
0x12, 0x55, 0x80, 0x6c, 0x36, 0x14, 0x05, 0x24, 0x63, 0x20, 0x8b, 0x26,
|
||||
0x69, 0xa9, 0xe3, 0x15, 0xb9, 0x00, 0x8d, 0xea, 0x3a, 0xee, 0x2d, 0x41,
|
||||
0xec, 0x43, 0x4a, 0x17, 0x48, 0x26, 0x4a, 0xd6, 0xe4, 0x1b, 0xa5, 0x97,
|
||||
0x2e, 0xf6, 0x41, 0xa7, 0xa2, 0x2b, 0x83, 0x2c, 0xad, 0x6e, 0x4e, 0xfc,
|
||||
0x57, 0xf1, 0x28, 0xf0, 0xa7, 0xf9, 0x5b, 0x48, 0xab, 0xed, 0x63, 0x22,
|
||||
0xed, 0x1e, 0xf1, 0x9d, 0xab, 0xbf, 0x9c, 0x78, 0x04, 0x49, 0xad, 0xf1,
|
||||
0x43, 0x2f, 0x21, 0x9c, 0x90, 0xb8, 0x35, 0x14, 0x68, 0x12, 0x89, 0x00,
|
||||
0x20, 0x5b, 0x83, 0x52, 0xb7, 0xec, 0x26, 0x01, 0x26, 0xe1, 0x0f, 0xf6,
|
||||
0x98, 0xd1, 0xb6, 0x28, 0x84, 0xc8, 0xa5, 0x3e, 0xe9, 0xfb, 0x19, 0x2e,
|
||||
0x8f, 0xd7, 0x66, 0x98, 0xc0, 0x5e, 0x7b, 0xbc, 0x1a, 0xd9, 0x27, 0xb9,
|
||||
0x76, 0xcc, 0x58, 0x48, 0x0c, 0x0c, 0x22, 0x23, 0x19, 0xfd, 0x22, 0xfa,
|
||||
0x47, 0x90, 0x38, 0x62, 0xe0, 0x91, 0x79, 0x35, 0x3d, 0xa2, 0x83, 0x99,
|
||||
0x2b, 0x86, 0x7a, 0x88, 0x9b, 0x07, 0xe7, 0xc5, 0x95, 0x69, 0x9a, 0x2b,
|
||||
0x2e, 0x47, 0xcf, 0xfd, 0x9e, 0x64, 0xb5, 0xca, 0x44, 0x94, 0x95, 0xf3,
|
||||
0x2a, 0x8f, 0x4a, 0xcf, 0x0f, 0xd4, 0x7e, 0x0d, 0x0f, 0x2a, 0x0b, 0xb6,
|
||||
0x89, 0x64, 0xe3, 0x8c, 0x02, 0x3e, 0x76, 0x66, 0x68, 0x19, 0xa9, 0x07,
|
||||
0x5a, 0xc6, 0x33, 0xcd, 0x27, 0xff, 0x07, 0xd4, 0x91, 0x5b, 0x11, 0x3a,
|
||||
0xe3, 0xf5, 0x69, 0x70, 0xa7, 0xfe, 0xf2, 0xf0, 0xbd, 0x11, 0xaf, 0xa7,
|
||||
0x37, 0xda, 0x24, 0x75, 0x3e, 0x1a, 0x39, 0x49, 0xb4, 0x1e, 0x0e, 0xaf,
|
||||
0x5d, 0x1e, 0x94, 0xdf
|
||||
};
|
||||
const int sizeof_ca_cert_sig = sizeof(ca_cert_der_sig);
|
||||
/* ./client-cert.der.sign, */
|
||||
const unsigned char client_cert_der_sign[] =
|
||||
{
|
||||
0x5D, 0x1F, 0x89, 0x41, 0xEC, 0x47, 0xC8, 0x90, 0x61, 0x79,
|
||||
0x8A, 0x16, 0x1F, 0x31, 0x96, 0x67, 0xD9, 0x3C, 0xEC, 0x6B,
|
||||
0x58, 0xC6, 0x5A, 0xED, 0x99, 0xB3, 0xEF, 0x27, 0x6F, 0x04,
|
||||
0x8C, 0xD9, 0x68, 0xB1, 0xD6, 0x23, 0x15, 0x84, 0x00, 0xE1,
|
||||
0x27, 0xD1, 0x1F, 0x68, 0xB7, 0x3F, 0x13, 0x53, 0x8A, 0x95,
|
||||
0x5A, 0x20, 0x7C, 0xB2, 0x76, 0x5B, 0xDC, 0xE0, 0xA6, 0x21,
|
||||
0x7C, 0x49, 0xCF, 0x93, 0xBA, 0xD5, 0x12, 0x9F, 0xEE, 0x90,
|
||||
0x5B, 0x3F, 0xA3, 0x9D, 0x13, 0x72, 0xAC, 0x72, 0x16, 0xFE,
|
||||
0x1D, 0xBE, 0xEB, 0x8E, 0xC7, 0xDC, 0xC4, 0xF8, 0x1A, 0xD8,
|
||||
0xA0, 0xA4, 0xF6, 0x04, 0x30, 0xF6, 0x7E, 0xB6, 0xC8, 0xE1,
|
||||
0xAB, 0x88, 0x37, 0x08, 0x63, 0x72, 0xAA, 0x46, 0xCC, 0xCA,
|
||||
0xF0, 0x9E, 0x02, 0x1E, 0x65, 0x67, 0xFF, 0x2C, 0x9D, 0x81,
|
||||
0x6C, 0x1E, 0xF1, 0x54, 0x05, 0x68, 0x68, 0x18, 0x72, 0x26,
|
||||
0x55, 0xB6, 0x2C, 0x95, 0xC0, 0xC9, 0xB2, 0xA7, 0x0B, 0x60,
|
||||
0xD7, 0xEB, 0x1D, 0x08, 0x1A, 0xA2, 0x54, 0x15, 0x89, 0xCB,
|
||||
0x83, 0x21, 0x5D, 0x15, 0x9B, 0x38, 0xAC, 0x89, 0x63, 0xD5,
|
||||
0x4B, 0xF4, 0x8B, 0x47, 0x93, 0x78, 0x43, 0xCB, 0x9B, 0x71,
|
||||
0xBF, 0x94, 0x76, 0xB5, 0xCE, 0x35, 0xA9, 0x1A, 0xD5, 0xA5,
|
||||
0xD8, 0x19, 0xA6, 0x04, 0x39, 0xB1, 0x09, 0x8C, 0x65, 0x02,
|
||||
0x58, 0x3A, 0x95, 0xEF, 0xA2, 0xC3, 0x85, 0x18, 0x61, 0x23,
|
||||
0x2D, 0xC5, 0xCD, 0x62, 0xC1, 0x19, 0x31, 0xE5, 0x36, 0x95,
|
||||
0x22, 0xDB, 0x3E, 0x1A, 0x3C, 0xE8, 0xC6, 0x2E, 0xDF, 0xD9,
|
||||
0x2F, 0x84, 0xC1, 0xF0, 0x38, 0x2B, 0xE5, 0x73, 0x35, 0x4F,
|
||||
0x05, 0xE2, 0xA5, 0x60, 0x79, 0xB0, 0x23, 0xDC, 0x56, 0x4C,
|
||||
0xE7, 0xD9, 0x1F, 0xCF, 0x6A, 0xFC, 0x55, 0xEB, 0xAA, 0x48,
|
||||
0x3E, 0x95, 0x2A, 0x10, 0x01, 0x05
|
||||
};
|
||||
const int sizeof_client_cert_der_sign = sizeof(client_cert_der_sign);
|
||||
|
||||
uint32_t s_inst1[R_TSIP_SINST_WORD_SIZE] = { 0 };
|
||||
uint32_t s_inst2[R_TSIP_SINST2_WORD_SIZE]= { 0 };
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && (WOLFSSL_RENESAS_TSIP_VER >= 109) */
|
||||
58
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.h
vendored
Normal file
58
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/key_data.h
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/* key_data.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#ifndef KEY_DATA_H_
|
||||
#define KEY_DATA_H_
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP)
|
||||
|
||||
#include "r_tsip_rx_if.h"
|
||||
|
||||
typedef struct st_key_block_data
|
||||
{
|
||||
uint8_t encrypted_provisioning_key[R_TSIP_AES_CBC_IV_BYTE_SIZE * 2];
|
||||
uint8_t iv[R_TSIP_AES_CBC_IV_BYTE_SIZE];
|
||||
uint8_t encrypted_user_rsa2048_ne_key[R_TSIP_RSA2048_NE_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_update_key[R_TSIP_AES256_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_rsa2048_private_key[R_TSIP_RSA2048_ND_KEY_BYTE_SIZE + 16];
|
||||
uint8_t encrypted_user_ecc256_private_key[R_TSIP_ECC_PRIVATE_KEY_BYTE_SIZE + 16];
|
||||
} st_key_block_data_t;
|
||||
|
||||
|
||||
extern const uint32_t encrypted_user_key_type;
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
|
||||
extern const unsigned char ca_cert_der_sig[];
|
||||
extern const unsigned char ca_ecc_cert_der_sig[];
|
||||
extern const unsigned char client_cert_der_sign[];
|
||||
extern const int sizeof_ca_cert_der;
|
||||
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP */
|
||||
#endif /* KEY_DATA_H_ */
|
||||
|
||||
240
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
vendored
Normal file
240
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/user_settings.h
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
/* user_settings.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#if defined(RENESAS_T4_USE)
|
||||
#include "wolfssl_simple_demo.h"
|
||||
#endif
|
||||
/*-- Renesas MCU type ---------------------------------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_RX72N
|
||||
|
||||
|
||||
/*-- Renesas TSIP usage and its version ---------------------------------------
|
||||
*
|
||||
* "WOLFSSL_RENESAS_TSIP" definition makes wolfSSL to use H/W acceleration
|
||||
* for cipher operations.
|
||||
* TSIP definition asks to have its version number.
|
||||
* "WOLFSSL_RENESAS_TSIP_VER" takes following value:
|
||||
* 106: TSIPv1.06
|
||||
* 109: TSIPv1.09
|
||||
* 113: TSIPv1.13
|
||||
* 114: TSIPv1.14
|
||||
* 115: TSIPv1.15
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_RENESAS_TSIP
|
||||
#define WOLFSSL_RENESAS_TSIP_VER 115
|
||||
|
||||
#if defined(SIMPLE_TLS_CLIENT) || defined(SIMPLE_TLS_SERVER)
|
||||
#undef WOLFSSL_RENESAS_TSIP
|
||||
#undef WOLFSSL_RENESAS_TSIP_VER
|
||||
#endif
|
||||
|
||||
/*-- TLS version definitions --------------------------------------------------
|
||||
*
|
||||
* wolfSSL supports TLSv1.2 by default. In case you want your system to support
|
||||
* TLSv1.3, uncomment line below.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define WOLFSSL_TLS13
|
||||
|
||||
|
||||
/*-- Operating System related definitions --------------------------------------
|
||||
*
|
||||
* In case any real-time OS is used, define its name(e.g. FREERTOS).
|
||||
* Otherwise, define "SINGLE_THREADED". They are exclusive each other.
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#if !defined(RENESAS_T4_USE)
|
||||
#define FREERTOS
|
||||
#define FREERTOS_TCP
|
||||
#else
|
||||
#define SINGLE_THREADED
|
||||
#endif
|
||||
|
||||
#if !defined(FREERTOS_TCP)
|
||||
#define WOLFSSL_NO_SOCK
|
||||
#define WOLFSSL_USER_IO
|
||||
#endif
|
||||
|
||||
/*-- Cipher related definitions -----------------------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_MD4
|
||||
#define WOLFSSL_DH_CONST
|
||||
#define HAVE_TLS_EXTENSIONS
|
||||
|
||||
#define HAVE_AESGCM
|
||||
#define HAVE_AESCCM
|
||||
#define HAVE_AES_CBC
|
||||
#define WOLFSSL_SHA512
|
||||
|
||||
#define HAVE_SUPPORTED_CURVES
|
||||
#define HAVE_ECC
|
||||
#define HAVE_CURVE25519
|
||||
#define CURVE25519_SMALL
|
||||
|
||||
|
||||
#define WOLFSSL_STATIC_RSA
|
||||
|
||||
/* USE_ECC_CERT
|
||||
* This macro is for selecting root CA certificate to load, it is valid only
|
||||
* in example applications. wolfSSL does not refer this macro.
|
||||
* If you want to use cipher suites including ECDSA authentication in
|
||||
* the example applications with TSIP, enable this macro.
|
||||
* In TSIP 1.13 or later version, following cipher suites are
|
||||
* available:
|
||||
* - TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
|
||||
* - TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SAH256
|
||||
*
|
||||
* Note that, this macro disables cipher suites including RSA
|
||||
* authentication such as:
|
||||
* - TLS_RSA_WITH_AES_128_CBC_SHA
|
||||
* - TLS_RSA_WITH_AES_256_CBC_SHA
|
||||
* - TLS_RSA_WITH_AES_128_CBC_SHA256
|
||||
* - TLS_RSA_WITH_AES_256_CBC_SHA256
|
||||
* - TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
|
||||
* - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA256
|
||||
*
|
||||
*/
|
||||
#define USE_ECC_CERT
|
||||
|
||||
/* In this example application, Root CA cert buffer named
|
||||
* "ca_ecc_cert_der_256" is used under the following macro definition
|
||||
* for ECDSA.
|
||||
*/
|
||||
#define USE_CERT_BUFFERS_256
|
||||
|
||||
/* In this example application, Root CA cert buffer named
|
||||
* "ca_cert_der_2048" is used under the following macro definition
|
||||
* for RSA authentication.
|
||||
*/
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
|
||||
/*-- Misc definitions ---------------------------------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
|
||||
|
||||
/*
|
||||
* -- "NO_ASN_TIME" macro is to avoid certificate expiration validation --
|
||||
*
|
||||
* Note. In your actual products, do not forget to comment-out
|
||||
* "NO_ASN_TIME" macro. And prepare time function to get calender time,
|
||||
* otherwise, certificate expiration validation will not work.
|
||||
*/
|
||||
/*#define NO_ASN_TIME*/
|
||||
|
||||
#define NO_MAIN_DRIVER
|
||||
#define BENCH_EMBEDDED
|
||||
#define NO_WOLFSSL_DIR
|
||||
#define WOLFSSL_NO_CURRDIR
|
||||
#define NO_FILESYSTEM
|
||||
#define WOLFSSL_LOG_PRINTF
|
||||
#define WOLFSSL_HAVE_MIN
|
||||
#define WOLFSSL_HAVE_MAX
|
||||
#define WOLFSSL_SMALL_STACK
|
||||
#define NO_WRITEV
|
||||
|
||||
|
||||
#define WOLFSSL_USER_CURRTIME /* for benchmark */
|
||||
#define TIME_OVERRIDES
|
||||
#define XTIME time
|
||||
#define WOLFSSL_GMTIME
|
||||
#define XGMTIME(c,t) gmtime(c)
|
||||
#define USE_WOLF_SUSECONDS_T
|
||||
#define USE_WOLF_TIMEVAL_T
|
||||
|
||||
#define XSTRNCASECMP(s1,s2,n) strncmp(s1,s2,n)
|
||||
|
||||
#define WC_RSA_BLINDING
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define ECC_TIMING_RESISTANT
|
||||
|
||||
#define USE_FAST_MATH
|
||||
|
||||
/*-- Debugging options ------------------------------------------------------
|
||||
*
|
||||
* "DEBUG_WOLFSSL" definition enables log to output into stdout.
|
||||
* Note: wolfSSL_Debugging_ON() must be called just after wolfSSL_Init().
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
/*#define DEBUG_WOLFSSL*/
|
||||
|
||||
/*-- Definitions for functionality negation -----------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
/*#define NO_RENESAS_TSIP_CRYPT*/
|
||||
/*#define NO_WOLFSSL_RENESAS_TSIP_TLS_SESSION*/
|
||||
|
||||
#if defined(WOLFCRYPT_ONLY)
|
||||
#undef WOLFSSL_RENESAS_TSIP
|
||||
#endif
|
||||
/*-- Consistency checking between definitions ---------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
/*-- TSIP TLS specific definitions --*/
|
||||
#if defined(WOLFSSL_RENESAS_TSIP)
|
||||
#if !defined(WOLFSSL_RENESAS_TSIP_VER)
|
||||
#error "WOLFSSL_RENESAS_TSIP_VER is required to be defined and have value"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*-- Complementary definitions ------------------------------------------------
|
||||
*
|
||||
*
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP)
|
||||
|
||||
#if !defined(NO_RENESAS_TSIP_CRYPT)
|
||||
#define WOLFSSL_RENESAS_TSIP_CRYPT
|
||||
#define WOLFSSL_RENESAS_TSIP_TLS
|
||||
#define WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT
|
||||
#define HAVE_PK_CALLBACKS
|
||||
#define WOLF_CRYPTO_CB
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define OPENSSL_EXTRA
|
||||
#define WOLFSSL_GENSEED_FORTEST /* Warning: define your own seed gen */
|
||||
#endif
|
||||
|
||||
|
||||
/*-- TLS version and required definitions --*/
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
#define HAVE_FFDHE_2048
|
||||
#define HAVE_HKDF
|
||||
#define WC_RSA_PSS
|
||||
#endif
|
||||
|
||||
/*-- strcasecmp */
|
||||
#define XSTRCASECMP(s1,s2) strcmp((s1),(s2))
|
||||
710
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.c
vendored
Normal file
710
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.c
vendored
Normal file
@@ -0,0 +1,710 @@
|
||||
/* wolfssl_demo.c
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
|
||||
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
#include "wolfssl/ssl.h"
|
||||
#include <wolfssl/wolfio.h>
|
||||
#include "wolfssl/certs_test.h"
|
||||
#include "wolfssl/wolfcrypt/types.h"
|
||||
#include "wolfssl_demo.h"
|
||||
#include <wolfcrypt/test/test.h>
|
||||
#include <wolfcrypt/benchmark/benchmark.h>
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#if defined(FREERTOS_TCP)
|
||||
#include "FreeRTOS_IP.h"
|
||||
#include "FreeRTOS_Sockets.h"
|
||||
#include "platform/iot_network.h"
|
||||
#include "platform.h"
|
||||
#endif
|
||||
|
||||
#if defined(BENCHMARK)
|
||||
#include "r_cmt_rx_if.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(TLS_CLIENT)
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
#include "key_data.h"
|
||||
#include <wolfssl/wolfcrypt/port/Renesas/renesas-tsip-crypt.h>
|
||||
|
||||
extern const st_key_block_data_t g_key_block_data;
|
||||
uint32_t g_encrypted_root_public_key[140];
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
static TsipUserCtx userContext_taskA;
|
||||
static TsipUserCtx userContext_taskB;
|
||||
#else
|
||||
static TsipUserCtx userContext;
|
||||
#endif
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS */
|
||||
|
||||
static WOLFSSL_CTX* client_ctx;
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
#define TLSSERVER_IP "192.168.11.49"
|
||||
#define TLSSERVER_PORT 11111
|
||||
#define YEAR 2022
|
||||
#define MON 3
|
||||
#define FREQ 10000 /* Hz */
|
||||
#define MAX_MSGSTR 80
|
||||
|
||||
static long tick;
|
||||
static int tmTick;
|
||||
|
||||
|
||||
#if defined(TSIP_CRYPT_UNIT_TEST)
|
||||
int tsip_crypt_test();
|
||||
int tsip_crypt_sha_multitest();
|
||||
int tsip_crypt_AesCbc_multitest();
|
||||
int tsip_crypt_AesGcm_multitest();
|
||||
int tsip_crypt_Sha_AesCbcGcm_multitest();
|
||||
#endif
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
xSemaphoreHandle exit_semaph;
|
||||
static xSemaphoreHandle Mutex;
|
||||
#endif
|
||||
|
||||
static int msg(const char* pname, int l,
|
||||
const char * sFormat, ...)
|
||||
{
|
||||
int ret = 0;
|
||||
char buf[MAX_MSGSTR] = {0};
|
||||
|
||||
va_list ParamList;
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
xSemaphoreTake(Mutex, portMAX_DELAY);
|
||||
#endif
|
||||
va_start(ParamList, sFormat);
|
||||
|
||||
printf("[%s][%02d] ", pname, l);
|
||||
ret = vsnprintf(buf, sizeof(buf), sFormat, ParamList);
|
||||
printf(buf);
|
||||
|
||||
va_end(ParamList);
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
xSemaphoreGive(Mutex);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
static void my_Logging_cb(const int logLevel, const char *const logMessage)
|
||||
{
|
||||
(void)logLevel;
|
||||
msg("custom-log", logLevel, "%s\n", logMessage);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* time
|
||||
* returns seconds from EPOCH
|
||||
*/
|
||||
time_t time(time_t *t)
|
||||
{
|
||||
(void)t;
|
||||
return ((YEAR-1970)*365+30*MON)*24*60*60 + tmTick++;
|
||||
}
|
||||
|
||||
/* timeTick
|
||||
* called periodically by H/W timer to increase tmTick.
|
||||
*/
|
||||
#if defined(BENCHMARK)
|
||||
static void timeTick(void* pdata)
|
||||
{
|
||||
(void)pdata;
|
||||
tick++;
|
||||
}
|
||||
#endif
|
||||
|
||||
double current_time(int reset)
|
||||
{
|
||||
if(reset) tick = 0 ;
|
||||
return ((double)tick/FREQ) ;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------*/
|
||||
/* Benchmark_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(BENCHMARK)
|
||||
static void Benchmark_demo(void)
|
||||
{
|
||||
uint32_t channel;
|
||||
R_CMT_CreatePeriodic(FREQ, &timeTick, &channel);
|
||||
|
||||
printf("Start wolfCrypt Benchmark\n");
|
||||
benchmark_test(NULL);
|
||||
printf("End wolfCrypt Benchmark\n");
|
||||
}
|
||||
#endif /* BENCHMARK */
|
||||
/* --------------------------------------------------------*/
|
||||
/* CryptTest_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(CRYPT_TEST)
|
||||
static void CryptTest_demo(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
|
||||
printf("Start wolfCrypt Test\n");
|
||||
wolfcrypt_test(NULL);
|
||||
printf("End wolfCrypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
}
|
||||
#endif /* CRYPT_TEST */
|
||||
/* --------------------------------------------------------*/
|
||||
/* Tls_client_demo */
|
||||
/* --------------------------------------------------------*/
|
||||
#if defined(TLS_CLIENT)
|
||||
static void Tls_client_init()
|
||||
{
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#ifdef USE_ECC_CERT
|
||||
char *cert = "./certs/ca-ecc-cert.pem";
|
||||
#else
|
||||
char *cert = "./certs/ca-cert.pem";
|
||||
#endif
|
||||
#else
|
||||
#if defined(USE_ECC_CERT) && defined(USE_CERT_BUFFERS_256)
|
||||
const unsigned char *cert = ca_ecc_cert_der_256;
|
||||
#define SIZEOF_CERT sizeof_ca_ecc_cert_der_256
|
||||
#else
|
||||
const unsigned char *cert = ca_cert_der_2048;
|
||||
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
client_ctx = NULL;
|
||||
|
||||
wolfSSL_Init();
|
||||
|
||||
/* Create and initialize WOLFSSL_CTX */
|
||||
if ((client_ctx =
|
||||
wolfSSL_CTX_new(wolfSSLv23_client_method_ex((void *)NULL))) == NULL) {
|
||||
printf("ERROR: failed to create WOLFSSL_CTX\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
|
||||
/* load root CA certificate */
|
||||
#if defined(NO_FILESYSTEM)
|
||||
if (wolfSSL_CTX_load_verify_buffer(client_ctx, cert,
|
||||
SIZEOF_CERT, SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load certificate data\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_load_verify_locations(client_ctx, cert, 0) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load \"%s\"\n", cert);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* load client certificate */
|
||||
#ifdef USE_ECC_CERT
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
cliecc_cert_der_256,
|
||||
sizeof_cliecc_cert_der_256,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
if (wolfSSL_CTX_use_certificate_chain_buffer_format(client_ctx,
|
||||
client_cert_der_2048,
|
||||
sizeof_client_cert_der_2048,
|
||||
WOLFSSL_FILETYPE_ASN1) != SSL_SUCCESS) {
|
||||
printf("ERROR: can't load client-certificate\n");
|
||||
return;
|
||||
}
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
/* load client private key */
|
||||
#ifdef USE_ECC_CERT
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115 )
|
||||
if (tsip_set_clientPrivateKeyEnc(
|
||||
g_key_block_data.encrypted_user_ecc256_private_key,
|
||||
TSIP_ECCP256) != 0) {
|
||||
printf("ERROR: can't load client-private key\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
ecc_clikey_der_256,
|
||||
sizeof_ecc_clikey_der_256,
|
||||
SSL_FILETYPE_ASN1) != WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#else
|
||||
if (wolfSSL_CTX_use_PrivateKey_buffer(client_ctx,
|
||||
client_key_der_2048,
|
||||
sizeof_client_key_der_2048,
|
||||
SSL_FILETYPE_ASN1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
printf("ERROR: can't load private-key data.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
#endif /* USE_ECC_CERT */
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
||||
(WOLFSSL_RENESAS_TSIP_VER >= 115)
|
||||
|
||||
if (wolfSSL_CTX_UseSupportedCurve(client_ctx, WOLFSSL_ECC_SECP256R1)
|
||||
!= WOLFSSL_SUCCESS) {
|
||||
wolfSSL_CTX_free(client_ctx); client_ctx = NULL;
|
||||
printf("client can't set use supported curves\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void Tls_client(void *pvParam)
|
||||
{
|
||||
#define BUFF_SIZE 256
|
||||
#define ADDR_SIZE 16
|
||||
int ret;
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
BaseType_t xStatus;
|
||||
#endif
|
||||
TestInfo* p = (TestInfo*)pvParam;
|
||||
WOLFSSL_CTX* ctx = (WOLFSSL_CTX *)client_ctx;
|
||||
WOLFSSL* ssl = NULL;
|
||||
Socket_t socket;
|
||||
socklen_t socksize = sizeof(struct freertos_sockaddr);
|
||||
struct freertos_sockaddr PeerAddr;
|
||||
char addrBuff[ADDR_SIZE] = {0};
|
||||
const char* pcName = p->name;
|
||||
|
||||
static const char sendBuff[]= "Hello Server\n" ;
|
||||
char rcvBuff[BUFF_SIZE] = {0};
|
||||
|
||||
if (!p) {
|
||||
printf("Unexpected error. Thread parameter is null\n");
|
||||
return;
|
||||
}
|
||||
/* create TCP socket */
|
||||
|
||||
socket = FreeRTOS_socket(FREERTOS_AF_INET,
|
||||
FREERTOS_SOCK_STREAM,
|
||||
FREERTOS_IPPROTO_TCP);
|
||||
|
||||
configASSERT(socket != FREERTOS_INVALID_SOCKET);
|
||||
|
||||
FreeRTOS_bind(socket, NULL, socksize);
|
||||
|
||||
/* attempt to connect TLS server */
|
||||
|
||||
PeerAddr.sin_addr = FreeRTOS_inet_addr(TLSSERVER_IP);
|
||||
PeerAddr.sin_port = FreeRTOS_htons(p->port);
|
||||
|
||||
ret = FreeRTOS_connect(socket, &PeerAddr, sizeof(PeerAddr));
|
||||
|
||||
if (ret != 0) {
|
||||
msg(pcName, p->id, "ERROR FreeRTOS_connect: %d\n",ret);
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
msg(pcName, p->id, " Ready to connect.\n");
|
||||
xStatus = xSemaphoreTake(p->xBinarySemaphore, portMAX_DELAY);
|
||||
if (xStatus != pdTRUE) {
|
||||
msg(pcName, p->id, " Error : Failed to xSemaphoreTake\n");
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* create WOLFSSL object */
|
||||
if (ret == 0) {
|
||||
ssl = wolfSSL_new(ctx);
|
||||
if (ssl == NULL) {
|
||||
msg(pcName, p->id, "ERROR wolfSSL_new: %d\n",
|
||||
wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
#if !defined(TLS_MULTITHREAD_TEST)
|
||||
memset(&userContext, 0, sizeof(TsipUserCtx));
|
||||
tsip_set_callback_ctx(ssl, &userContext);
|
||||
#else
|
||||
if (p->port - TLSSERVER_PORT == 0) {
|
||||
memset(&userContext_taskA, 0, sizeof(TsipUserCtx));
|
||||
tsip_set_callback_ctx(ssl, (void*)&userContext_taskA);
|
||||
}
|
||||
else {
|
||||
memset(&userContext_taskB, 0, sizeof(TsipUserCtx));
|
||||
tsip_set_callback_ctx(ssl, (void*)&userContext_taskB);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
msg(pcName, p->id, " Cipher : %s\n", p->cipher);
|
||||
/* use specific cipher */
|
||||
if (p->cipher != NULL &&
|
||||
wolfSSL_set_cipher_list(ssl, p->cipher) != WOLFSSL_SUCCESS) {
|
||||
ret = -1;
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
/* associate socket with ssl object */
|
||||
if (wolfSSL_set_fd(ssl, (int)socket) != WOLFSSL_SUCCESS) {
|
||||
msg(pcName, p->id, "ERROR wolfSSL_set_fd: %d\n",
|
||||
wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
if (ret == 0) {
|
||||
if (wolfSSL_connect(ssl) != WOLFSSL_SUCCESS) {
|
||||
msg(pcName, p->id, "ERROR wolfSSL_connect: %d\n",
|
||||
wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_Debugging_OFF();
|
||||
#endif
|
||||
if (ret == 0) {
|
||||
if (wolfSSL_write(ssl, sendBuff, strlen(sendBuff)) !=
|
||||
strlen(sendBuff)) {
|
||||
msg(pcName, p->id, "ERROR wolfSSL_write: %d\n",
|
||||
wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
if ((ret=wolfSSL_read(ssl, rcvBuff, BUFF_SIZE -1)) < 0) {
|
||||
msg(pcName, p->id, "ERROR wolfSSL_read: %d\n",
|
||||
wolfSSL_get_error(ssl, 0));
|
||||
ret = -1;
|
||||
}
|
||||
else {
|
||||
rcvBuff[ret] = '\0';
|
||||
msg(pcName, p->id, "Received: %s\n\n", rcvBuff);
|
||||
ret = 0;
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
if (ssl) {
|
||||
wolfSSL_shutdown(ssl);
|
||||
wolfSSL_free(ssl);
|
||||
ssl = NULL;
|
||||
/* reset call backs */
|
||||
#ifdef WOLFSSL_RENESAS_TSIP_TLS
|
||||
tsip_set_callbacks(client_ctx);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (socket) {
|
||||
FreeRTOS_shutdown(socket, FREERTOS_SHUT_RDWR);
|
||||
while (FreeRTOS_recv(socket, rcvBuff, BUFF_SIZE -1, 0) >=0) {
|
||||
vTaskDelay(250);
|
||||
}
|
||||
FreeRTOS_closesocket(socket);
|
||||
socket = NULL;
|
||||
}
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
xSemaphoreGive(exit_semaph);
|
||||
vTaskDelete(NULL);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
static void Tls_client_demo(void)
|
||||
{
|
||||
|
||||
/* setup ciphersuite list to use for TLS handshake */
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS)
|
||||
|
||||
#ifdef USE_ECC_CERT
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-ECDSA-AES128-SHA256",
|
||||
"ECDHE-ECDSA-AES128-GCM-SHA256",
|
||||
};
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
#define cipherlist_sz 2
|
||||
#else
|
||||
#define cipherlist_sz 2
|
||||
#endif
|
||||
TestInfo info[cipherlist_sz];
|
||||
#else
|
||||
const char* cipherlist[] = {
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
"TLS13-AES128-GCM-SHA256",
|
||||
"TLS13-AES128-CCM-SHA256",
|
||||
#endif
|
||||
"ECDHE-RSA-AES128-GCM-SHA256",
|
||||
"ECDHE-RSA-AES128-SHA256",
|
||||
"AES128-SHA",
|
||||
"AES128-SHA256",
|
||||
"AES256-SHA",
|
||||
"AES256-SHA256"
|
||||
};
|
||||
#if defined(WOLFSSL_TLS13)
|
||||
#define cipherlist_sz 2
|
||||
#else
|
||||
#define cipherlist_sz 6
|
||||
#endif
|
||||
TestInfo info[cipherlist_sz];
|
||||
#endif
|
||||
#else
|
||||
const char* cipherlist[] = { NULL };
|
||||
#define cipherlist_sz 1
|
||||
TestInfo info[cipherlist_sz];
|
||||
#endif
|
||||
|
||||
int i = 0;
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
int j = 0;
|
||||
BaseType_t xReturned;
|
||||
BaseType_t xHigherPriorityTaskWoken;
|
||||
xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
Mutex = xSemaphoreCreateMutex();
|
||||
#endif
|
||||
|
||||
printf("/*------------------------------------------------*/\n");
|
||||
printf(" TLS_Client demo\n");
|
||||
printf(" - TLS server address:" TLSSERVER_IP " port: %d\n",
|
||||
TLSSERVER_PORT);
|
||||
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
printf(" - with TSIP\n");
|
||||
#endif
|
||||
printf("/*------------------------------------------------*/\n");
|
||||
|
||||
/* setup credentials for TLS handshake */
|
||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) && (WOLFSSL_RENESAS_TSIP_VER >=109)
|
||||
|
||||
#if defined(USE_ECC_CERT)
|
||||
|
||||
/* Root CA cert has ECC-P256 public key */
|
||||
tsip_inform_cert_sign((const byte*)ca_ecc_cert_der_sig);
|
||||
|
||||
#else
|
||||
|
||||
/* Root CA cert has RSA public key */
|
||||
tsip_inform_cert_sign((const byte*)ca_cert_der_sig);
|
||||
|
||||
#endif
|
||||
|
||||
wc_tsip_inform_user_keys_ex(
|
||||
(byte*)&g_key_block_data.encrypted_provisioning_key,
|
||||
(byte*)&g_key_block_data.iv,
|
||||
(byte*)&g_key_block_data.encrypted_user_rsa2048_ne_key,
|
||||
encrypted_user_key_type);
|
||||
|
||||
#endif /* WOLFSSL_RENESAS_TSIP_TLS && (WOLFSSL_RENESAS_TSIP_VER >=109) */
|
||||
|
||||
Tls_client_init();
|
||||
|
||||
#ifdef TLS_MULTITHREAD_TEST
|
||||
|
||||
exit_semaph = xSemaphoreCreateCounting(cipherlist_sz, 0);
|
||||
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
wolfSSL_SetLoggingCb(my_Logging_cb);
|
||||
#endif
|
||||
|
||||
do {
|
||||
for (j = i; j < (i+2); j++) {
|
||||
info[j].id = j;
|
||||
info[j].port = TLSSERVER_PORT + (j%2);
|
||||
info[j].cipher = cipherlist[j];
|
||||
info[j].ctx = client_ctx;
|
||||
info[j].xBinarySemaphore = xSemaphoreCreateBinary();
|
||||
info[j].log_f = my_Logging_cb;
|
||||
|
||||
memset(info[j].name, 0, sizeof(info[j].name));
|
||||
sprintf(info[j].name, "clt_thd_%s", ((j%2) == 0) ?
|
||||
"taskA" : "taskB");
|
||||
|
||||
printf(" %s connecting to %d port\n", info[j].name, info[j].port);
|
||||
|
||||
xReturned = xTaskCreate(Tls_client, info[j].name,
|
||||
THREAD_STACK_SIZE, &info[j], 3, NULL);
|
||||
if (xReturned != pdPASS) {
|
||||
printf("Failed to create task\n");
|
||||
}
|
||||
}
|
||||
|
||||
for (j = i; j < (i+2); j++) {
|
||||
xSemaphoreGiveFromISR(info[j].xBinarySemaphore,
|
||||
&xHigherPriorityTaskWoken);
|
||||
}
|
||||
|
||||
/* check if all tasks are completed */
|
||||
for (j = i; j < (i+2); j++) {
|
||||
if(!xSemaphoreTake(exit_semaph, portMAX_DELAY)) {
|
||||
printf("a semaphore was not given by a test task.");
|
||||
}
|
||||
}
|
||||
|
||||
i += 2;
|
||||
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
vSemaphoreDelete(exit_semaph);
|
||||
vSemaphoreDelete(Mutex);
|
||||
|
||||
#else
|
||||
|
||||
do {
|
||||
|
||||
info[i].port = TLSSERVER_PORT;
|
||||
info[i].cipher = cipherlist[i];
|
||||
info[i].ctx = client_ctx;
|
||||
info[i].id = i;
|
||||
|
||||
memset(info[i].name, 0, sizeof(info[i].name));
|
||||
sprintf(info[i].name, "wolfSSL_TLS_client_do(%02d)", i);
|
||||
|
||||
Tls_client(&info[i]);
|
||||
|
||||
i++;
|
||||
} while (i < cipherlist_sz);
|
||||
|
||||
if (client_ctx) {
|
||||
wolfSSL_CTX_free(client_ctx);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
wolfSSL_Cleanup();
|
||||
|
||||
printf("End of TLS_Client demo.\n");
|
||||
}
|
||||
#endif /* TLS_CLIENT */
|
||||
|
||||
/* Demo entry function called by iot_demo_runner
|
||||
* To run this entry function as an aws_iot_demo, define this as
|
||||
* DEMO_entryFUNCTION in aws_demo_config.h.
|
||||
*/
|
||||
void wolfSSL_demo_task(bool awsIotMqttMode,
|
||||
const char* pIdentifier,
|
||||
void* pNetworkServerInfo,
|
||||
void* pNetworkCredentialInfo,
|
||||
const IotNetworkInterface_t* pNetworkInterface)
|
||||
{
|
||||
|
||||
(void)awsIotMqttMode;
|
||||
(void)pIdentifier;
|
||||
(void)pNetworkServerInfo;
|
||||
(void)pNetworkCredentialInfo;
|
||||
(void)pNetworkInterface;
|
||||
|
||||
|
||||
#if defined(CRYPT_TEST)
|
||||
|
||||
CryptTest_demo();
|
||||
|
||||
#elif defined(BENCHMARK)
|
||||
|
||||
Benchmark_demo();
|
||||
|
||||
#elif defined(TSIP_CRYPT_UNIT_TEST)
|
||||
int ret = 0;
|
||||
|
||||
if ((ret = wolfCrypt_Init()) != 0) {
|
||||
printf("wolfCrypt_Init failed %d\n", ret);
|
||||
}
|
||||
|
||||
printf("Start wolf tsip crypt Test\n");
|
||||
|
||||
printf(" \n");
|
||||
printf(" simple crypt test by using TSIP\n");
|
||||
tsip_crypt_test();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi sha thread test\n");
|
||||
tsip_crypt_sha_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi aes cbc thread test\n");
|
||||
|
||||
tsip_crypt_AesCbc_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi aes gcm thread test\n");
|
||||
|
||||
tsip_crypt_AesGcm_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf(" multi sha aescbc aesgcm thread test\n");
|
||||
tsip_crypt_Sha_AesCbcGcm_multitest();
|
||||
|
||||
printf(" \n");
|
||||
printf("End wolf tsip crypt Test\n");
|
||||
|
||||
if ((ret = wolfCrypt_Cleanup()) != 0) {
|
||||
printf("wolfCrypt_Cleanup failed %d\n", ret);
|
||||
}
|
||||
|
||||
#elif defined(TLS_CLIENT)
|
||||
|
||||
Tls_client_demo();
|
||||
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
vTaskDelay(10000);
|
||||
}
|
||||
}
|
||||
|
||||
85
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.h
vendored
Normal file
85
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_demo.h
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
/* wolfssl_demo.h
|
||||
*
|
||||
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#ifndef WOLFSSL_DEMO_H_
|
||||
#define WOLFSSL_DEMO_H_
|
||||
|
||||
|
||||
/**************************************************/
|
||||
/******* DO NOT CHANGE the following order ********/
|
||||
/**************************************************/
|
||||
|
||||
/* Include logging header files and define logging macros in the following order:
|
||||
* 1. Include the header file "logging_levels.h".
|
||||
* 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on
|
||||
* the logging configuration for DEMO.
|
||||
* 3. Include the header file "logging_stack.h", if logging is enabled for DEMO.
|
||||
*/
|
||||
|
||||
#include "logging_levels.h"
|
||||
|
||||
/* Logging configuration for the Demo. */
|
||||
#ifndef LIBRARY_LOG_NAME
|
||||
#define LIBRARY_LOG_NAME "WOLFSSL_Demo"
|
||||
#endif
|
||||
|
||||
#ifndef LIBRARY_LOG_LEVEL
|
||||
#define LIBRARY_LOG_LEVEL LOG_INFO
|
||||
#endif
|
||||
#include "logging_stack.h"
|
||||
|
||||
|
||||
/* Enable wolfcrypt test demo */
|
||||
/*#define CRYPT_TEST */
|
||||
|
||||
/* Enable benchmark demo */
|
||||
/*#define BENCHMARK*/
|
||||
|
||||
/* Enable TLS client demo */
|
||||
/* cannot enable with other definition */
|
||||
#define TLS_CLIENT
|
||||
|
||||
/* use multi-thread example */
|
||||
/* #define TLS_MULTITHREAD_TEST */
|
||||
#if defined(TLS_MULTITHREAD_TEST) && defined(WOLFSSL_TLS13)
|
||||
#error "MULTITHREAD_TEST is only available when not set WOLFSSL_TLS13 \
|
||||
because it is not verified yet."
|
||||
#endif
|
||||
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
#define THREAD_STACK_SIZE (5 * 1024)
|
||||
#endif
|
||||
|
||||
typedef struct tagTestInfo
|
||||
{
|
||||
int id;
|
||||
int port;
|
||||
char name[32];
|
||||
const char* cipher;
|
||||
WOLFSSL_CTX* ctx;
|
||||
wolfSSL_Logging_cb log_f;
|
||||
#if defined(TLS_MULTITHREAD_TEST)
|
||||
SemaphoreHandle_t xBinarySemaphore;
|
||||
#endif
|
||||
} TestInfo;
|
||||
|
||||
|
||||
#endif /* WOLFSSL_DEMO_H_ */
|
||||
1027
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_tsip_unit_test.c
vendored
Normal file
1027
android/extern/wolfssl/IDE/Renesas/e2studio/RX72N/EnvisionKit/wolfssl_demo/wolfssl_tsip_unit_test.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user