I have not made any code changes. I am using the older Plug & Trust package version v1.2.1 because, in the latest version, I am facing build issues when building with SCP03 mode (PLUGANDTRUST_SCP03) enabled.
The steps I followed to build in SCP mode are:
mkdir build && cd build
cmake -DPLUGANDTRUST_SCP03=ON ..
make
/usr/bin/ld: build/libse05x_lib.a(se05x_APDU_impl.c.o): in function `Se05x_API_SessionOpen':
se05x_APDU_impl.c:(.text+0x384): undefined reference to `Se05x_API_SCP03_CreateSession'
/usr/bin/ld: build/libse05x_lib.a(se05x_tlv.c.o): in function `DoAPDUTx':
se05x_tlv.c:(.text+0xe90): undefined reference to `Se05x_API_SCP03_Encrypt'
/usr/bin/ld: se05x_tlv.c:(.text+0xf0c): undefined reference to `Se05x_API_SCP03_Decrypt'
/usr/bin/ld: build/libse05x_lib.a(se05x_tlv.c.o): in function `DoAPDUTxRx':
se05x_tlv.c:(.text+0x11d0): undefined reference to `Se05x_API_SCP03_Encrypt'
/usr/bin/ld: se05x_tlv.c:(.text+0x1248): undefined reference to `Se05x_API_SCP03_Decrypt'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/ex_se05x_GetInfo.dir/build.make:114: ex_se05x_GetInfo] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/ex_se05x_GetInfo.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
The same issue is observed in both the older and the latest code versions, even when operating in open (non-SCP) mode.
./ex_se05x_sign
Se05x Sign Example !
Plug and Trust nano package - version: 1.5.4
I2C driver supports plain i2c-level commands.
Generate ecc key
Error in Se05x_API_WriteECKey
SE05x Sign Example Failed !
./ex_se05x_sign
Se05x Sign Example !
Plug and Trust nano package - version: 1.2.1
I2C driver supports plain i2c-level commands.
Generate ecc key
Error in Se05x_API_WriteECKey
SE05x Sign Example Failed !
Thanks,
Sureshkumar R