# dcp

## Overview
The DCP Example project is a demonstration program that uses the KSDK software implement
several cryptography algorithms using the DCP software driver.

Note: Intput data and output buffer has to be in non-cached memory space.

## Supported Boards

````{container} board-selector

```{container} board-setup
:name: board-evkbimxrt1050

##### EVKB-IMXRT1050

##### Hardware requirements
- Mini/micro USB cable
- EVKB-IMXRT1050 board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass

```

```{container} board-setup
:name: board-evkbmimxrt1060

##### MIMXRT1060-EVKB

##### Hardware requirements
- Mini/micro USB cable
- MIMXRT1060-EVKB board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC Test pass

Note:
There will be no log printed when downloading by IAR or keil. This issue will be fixed in later release.

```

```{container} board-setup
:name: board-evkcmimxrt1060

##### MIMXRT1060-EVKC

##### Hardware requirements
- Mini/micro USB cable
- MIMXRT1060-EVKC board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC Test pass

Note:
There will be no log printed when downloading by IAR or keil. This issue will be fixed in later release.

```

```{container} board-setup
:name: board-evkmimxrt1010

##### EVK-MIMXRT1010

##### Hardware requirements
- Mini/micro USB cable
- EVK-MIMXRT1010 board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC-32 Test pass

Note:
To debug in qspiflash, following steps are needed:
1. Select the flash target and compile.
2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J41.
3. Start debugging in IDE.
   - Keil: Click "Download (F8)" to program the image to qspiflash first then clicking "Start/Stop Debug Session (Ctrl+F5)" to start debugging.

```

```{container} board-setup
:name: board-evkmimxrt1015

##### EVK-MIMXRT1015

##### Hardware requirements
- Mini/micro USB cable
- EVK-MIMXRT1015 board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC-32 Test pass

Note:
To debug in qspiflash, following steps are needed:
1. Select the flash target and compile.
3. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J41.
4. Start debugging in IDE.
   - Keil: Click "Download (F8)" to program the image to qspiflash first then clicking "Start/Stop Debug Session (Ctrl+F5)" to start debugging.

```

```{container} board-setup
:name: board-evkmimxrt1020

##### EVK-MIMXRT1020

##### Hardware requirements
- Mini/micro USB cable
- EVK-MIMXRT1020 board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass

Note:
To debug in qspiflash, following steps are needed:
1. Select the flash target and compile.
2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
3. Start debugging in IDE.
   - Keil: Click "Download (F8)" to program the image to qspiflash first then clicking "Start/Stop Debug Session (Ctrl+F5)" to start debugging.

```

```{container} board-setup
:name: board-evkmimxrt1024

##### MIMXRT1024-EVK

##### Hardware requirements
- Mini/micro USB cable
- MIMXRT1024-EVK board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass

Note:
To debug in qspiflash, following steps are needed:
1. Select the flash target and compile.
2. Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
3. Start debugging in IDE.
   - Keil: Click "Download (F8)" to program the image to qspiflash first then clicking "Start/Stop Debug Session (Ctrl+F5)" to start debugging.

```

```{container} board-setup
:name: board-evkmimxrt1040

##### MIMXRT1040-EVK

##### Hardware requirements
- Mini/micro USB cable
- MIMXRT1040-EVK board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC Test pass

Note:
There will be no log printed when downloading by IAR or keil. This issue will be fixed in later release.

```

```{container} board-setup
:name: board-evkmimxrt1064

##### EVK-MIMXRT1064

##### Hardware requirements
- Mini/micro USB cable
- EVK-MIMXRT1064 board
- Personal Computer

##### Board settings
No special settings are required.

##### Prepare the Demo
1.  Connect a USB cable between the host PC and the OpenSDA USB port on the target board. 
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

##### Running the demo
Example output on terminal:

DCP Driver Example

AES ECB Test pass
AES CBC Test pass
SHA-1 Test pass
SHA-256 Test pass
CRC-32 Test pass

```

````

