1
1
# Running Mbed Crypto examples on Mbed OS
2
- This repository contains a set of examples demonstrating the compilation and use
3
- of Mbed Crypto on Mbed OS.
2
+ This repository contains a set of examples demonstrating the compilation and use of Mbed Crypto on Mbed OS.
4
3
5
4
List of examples contained within this repository:
6
5
* Cipher encrypt/decrypt using an AES key in cipher block chain (CBC) mode with no padding using a single block.
@@ -10,24 +9,24 @@ List of examples contained within this repository:
10
9
## Prerequisites
11
10
* Install <a href =' https://github.com/ARMmbed/mbed-cli#installing-mbed-cli ' >Mbed CLI</a >
12
11
13
- ## Deploy
14
- The following are the steps required for deployment :
15
- * Clone this repository: ` git clone git@ github.com: ARMmbed/mbed-os-example-mbed-crypto.git `
12
+ ## Import
13
+ The following are the steps required to install the application :
14
+ * Clone the repository and deploy the Mbed OS project : ` mbed import https:// github.com/ ARMmbed/mbed-os-example-mbed-crypto`
16
15
* Change your current directory: ` cd mbed-os-example-mbed-crypto `
17
- * Fetch Mbed OS: ` mbed deploy `
18
16
19
17
## Compile
20
18
To compile the example program use ` mbed compile ` while specifying the target platform and the compiler.
21
19
For example, in order to compile using the ARM GCC compiler and a K64F target platform use: ` mbed compile -m K64F -t ARM ` .
22
20
23
21
Once the compilation is completed successfully a binary file will be created: ` ./BUILD/K64F/GCC_ARM/mbed-os-example-mbed-crypto.bin `
24
22
23
+ ## Program your board
24
+ 1 . Connect your Mbed device to the computer over USB.
25
+ 1 . Copy the binary file (` mbed-os-example-mbed-crypto.bin ` ) to the Mbed device.
26
+
25
27
## Run
26
- The following are the steps required to run the example program:
27
- * Connect the Mbed device to your computer over USB.
28
- * Copy the binary file (` mbed-os-example-mbed-crypto.bin ` ) to the Mbed device.
29
- * Connect to the Mbed Device using a serial client application of your choice.
30
- * Press the reset button on the Mbed device to run the program.
28
+ 1 . Connect to the Mbed Device using a serial client application of your choice.
29
+ 1 . Press the reset button on the Mbed device to run the program.
31
30
32
31
The expected output from a successful execution of the example program should be as follows:
33
32
```
@@ -38,3 +37,7 @@ cipher encrypt/decrypt AES CBC PKCS7 multipart:
38
37
cipher encrypt/decrypt AES CTR multipart:
39
38
success!
40
39
```
40
+
41
+ ## Troubleshooting
42
+ If you have problems, you can review the [ documentation] ( https://os.mbed.com/docs/latest/tutorials/debugging.html ) for suggestions on what could be wrong and how to fix it.
43
+
0 commit comments