Generate Blob Under Linux - V2
Generate Blob Under Linux - V2
Biyong SUN
20, SEPT 2017
EXTERNAL USE
Generate Blob Under Linux Add on
1 EXTERNAL USE
Integrate Linux Driver
SW: L4.1.15_2.0.0_ga
|-- linux_driver
`-- drivers
`-- crypto
`-- caam
|-- Kconfig
|-- key_blob.c
|-- key_blob.h
`-- Makefile
2 EXTERNAL USE
Integrate Linux Driver(Cont.)
4 EXTERNAL USE
Integrate Linux Driver(Cont.)
Select the Key Blob by make menuconfig
Make zImage
6 EXTERNAL USE
Build as a module
1. Untar key_blob_module.tgz
2. Read the README and follow the instructions
README in key_blob_module
3. use
insmod key_blob_module.ko
7
After insmod done, you are able to see the /dev/kb
EXTERNAL USE
Build as a module (Cont.)
8 EXTERNAL USE
Build User Space Utility
Static Linux:
arm-linux-gcc -O2 -static -o kb_test kb_test.c
Dynamic Link:
arm-linux-gcc -O2 -o kb_test kb_test.c
Command Line:
Note: Suggest to use static link can use under the Android as well.
9 EXTERNAL USE
Test
Note: Please make sure the TWO boards are in closed mode NOT open mode.
Or it will use the SAME FIX test key. Not the master key.
10 EXTERNAL USE
Test On Board A
The Key can correctly decrypt from blob on Board A
11 EXTERNAL USE
Test On Board B
The blob is from Board A. On Board B, it can NOT decrypt the key correctly.
12 EXTERNAL USE