C code for a secure element

Is it possible to get a secure element devkit from Infineon, ST Micro, NXP, etc, and then write your own low-level “Card OS” in C (GP etc)?

(You might wonder, why don’t he just ask Infineon, ST Micro, NXP, etc? Well we’re trying but it’s hard to figure out even who to ask. So I’m asking Osmocom Discourse.)

1 Like

Getting devkits and NDA access directly from tier-1 vendors like NXP (JCOP) or STMicro for raw Secure Elements is notoriously difficult for individuals or small projects without huge volume commitments. A common workaround in the open-source / research community is to look into open-architecture Java Cards or platforms like sysmoUSIM/sysmoEUICC from Sysmocom, where you can deploy custom applets using GlobalPlatform tools without needing an NDA for the underlying hardware.

1 Like

Getting devkits and NDA access directly from tier-1 vendors like NXP (JCOP) or STMicro for raw Secure Elements is notoriously difficult for individuals or small projects without huge volume commitments.

Security through Obscurity.

1 Like

FYI: Many years ago in Osmocom we were succesful in finding a smart card chip (CC32RS512) from a chinse manufacturer who then provided us with register-level chip documentation and we could at least develop a proof-of-concept driving UART, flash, etc - see

Sadly we never had the time and/or resources to ever make this go anywhere, and by now that chip is likely long EOL and I think even Beijing ChipCity doesn’t exist anymore.

I think today it may still be easier to obtain the chip-level documentation from lesser-known (Chinese) vendors than i is to get support from Infineon or NXP.

1 Like

I see some, like chtsecurity.com. Does China make their own euiccs with these chips? Do they use SGP.22 and SGP.32 or did they roll their own infrastructure?

AFAICT China uses the same eSIM protocols / specs like everyone else. All they do is to use some additional CI/CA certificates, see Certificate Issuers (CIs) | eUICC and eSIM Developer Manual

You can find chinese silicon eUICCs in the market, including those with SAS-UP accreditation, for example some that use a THD89 controller

I recently heard of GitHub - duniaka/THC80F340A-sdk: A bare-metal SDK and custom bootloader for the THC80F340A, an Arm Cortex-M0 smart-card. · GitHub which looks very promising for a project like this as well. Haven’t looked much into it, though.

1 Like