File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed
examples/tutorials/root_of_trust/encryption_service_starter Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Makefile for user application
2
+
3
+ # Specify this directory relative to the current application.
4
+ TOCK_USERLAND_BASE_DIR = ../../../../
5
+
6
+ PACKAGE_NAME = org.tockos.tutorials.attestation.encryption
7
+
8
+ # Which files to compile.
9
+ C_SRCS := $(wildcard * .c)
10
+
11
+ # Include userland master makefile. Contains rules and flags for actually
12
+ # building the application.
13
+ include $(TOCK_USERLAND_BASE_DIR ) /AppMakefile.mk
Original file line number Diff line number Diff line change
1
+ Hardware Root of Trust (HWRoT) Demo Encryption Service Application
2
+ ------------------------------------------------------------------
3
+
4
+ This application implements a basic UART encryption service for a mock hardware
5
+ root of trust (HWRoT) which inputs user-provided
6
+
7
+ This is part of a tutorial which improves the application in multiple steps. A
8
+ writeup for the tutorial is available at https://book.tockos.org/ .
9
+
10
+ Specific abilities of this version:
11
+
12
+ * Does NOT allow logging to screen over IPC
13
+ * Does NOT allow for plaintext over returning results in hex over UART
14
+ * Does NOT allow for encryping user-provided plaintext using an encryption oracle driver
15
+
16
+ This application is essentially just a scaffold to build from while following the tutorial.
Original file line number Diff line number Diff line change
1
+ // Hardware Root of Trust (HWRoT) Demo Encryption Service Application
2
+ //
3
+ // When selected by the main screen HWRoT Demo application, listens for user-provided
4
+ // plaintexts over UART and encrypts them, logging status over IPC back to the screen
5
+ // application.
6
+
7
+ #include <stdio.h>
8
+
9
+ int main (void ) {
10
+ // Your code here...
11
+ printf ("Encryption service app started!" );
12
+ }
You can’t perform that action at this time.
0 commit comments