Skip to content

Commit aa46156

Browse files
pqcfoxalevy
authored andcommitted
tutorial: root_of_trust: add starter code for encryption service
1 parent bc9e073 commit aa46156

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)