Skip to content

Commit 1b28ed9

Browse files
Update INeS SDK
1 parent 2f3793b commit 1b28ed9

5 files changed

Lines changed: 71 additions & 9 deletions

File tree

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
# Software_Signing
1+
# Software_Signing
2+
3+
## Launch Software_Signing Application
4+
**On your raspberry**
5+
6+
clone this Repo :
7+
8+
git clone https://github.com/sealsq/Software_Signing.git
9+
10+
update submodules
11+
12+
git submodule update --init --recursive
13+
14+
We write scripts to simplify compilation, so make them executable
15+
16+
chmod +x configure.sh
17+
18+
Update informations in configuration file
19+
20+
nano data/inesConfig.ini
21+
22+
Update package to verify
23+
24+
data/Signed_Software_Package
25+
26+
Execute the program
27+
28+
sudo ./build/softwareSigning_demo -c data/inesConfig.ini

configure.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,18 @@ Help()
2121
echo
2222
}
2323

24-
checkoutLibs()
25-
{
26-
pushd "lib/Seal_SQ_Ines_SDK"
27-
#echo "----------| Checkout to INeS VERSION : ${INES_SDK_TAG} |----------"
28-
#git checkout ${INES_SDK_TAG}
29-
popd
24+
copyVaultic()
25+
{
26+
cp include/vaultic_tls_config_292.h lib/Seal_SQ_Ines_SDK/lib/libVaultIC/292/DEVKIT_VIC292_TLS_RPI/VaultIC-TLS/vaultic_tls/vaultic_tls-2xx/src/vaultic_tls_config.h
3027
}
3128

3229
install()
3330
{
3431
sudo apt-get update
3532
sudo apt-get --yes --force-yes install cmake
3633
sudo apt-get --yes --force-yes install python3
34+
copyVaultic
3735
configurelib
38-
checkoutLibs
3936
echo done, remove this file if you want to do first setup again > ${FIRST_CONFIG_FILE}
4037

4138

include/vaultic_tls_config_292.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#ifndef VLT_TLS_CONFIG_H
2+
#define VLT_TLS_CONFIG_H
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
/* VaultIC configuration */
9+
10+
/* Definition of VaultIC resources */
11+
#define I2C_BITRATE 400 //400kHz
12+
#define I2C_ADDRESS 0x5F
13+
14+
#define SELF_TESTS_DELAY 200 // 200ms
15+
#define APDU_TIMEOUT 5000 // 5s
16+
17+
#define INITIAL_PAIRING_KEY { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,\
18+
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F }
19+
20+
// Device Certificate
21+
#define REC_ID_DEVICE_CERT 2 // device certificate stored in rec 1 of binary area
22+
#define REC_ID_CA_CERT 1 // CA certificate stored in rec 2 of binary area
23+
24+
// Definition of default key index values used by vaultic_tls
25+
// NOTE: the key indexes can be set using vlt_tls_select_static_priv_key() and vlt_tls_select_ephemeral_priv_key func()
26+
#define STATIC_KEY_INDEX 0x00 // Index of default static key pair in VaultIC
27+
#define EPH_KEY_KEY_INDEX 0x00 // Index of default ephemeral key pair in VaultIC
28+
29+
//VAULT-IC KEYS INDEX
30+
#define VAULTIC_FACTORY_KEY_INDEX 0x00
31+
#define VAULTIC_OPERATIONAL_KEY_INDEX 0x01
32+
33+
//VAULT-IC CERT INDEX
34+
#define VAULTIC_FACTORY_CERT_INDEX 0x00
35+
36+
37+
#endif /* VLT_TLS_CONFIG_H */

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <wolfssl/wolfcrypt/hash.h>
3333
#include <wolfssl/wolfcrypt/logging.h>
3434
#include <wolfssl/wolfcrypt/error-crypt.h>
35+
#include <wolfssl/wolfcrypt/coding.h>
3536

3637
#include <stdio.h>
3738

0 commit comments

Comments
 (0)