JCMathLib: Wrapper Cryptographic Library for Transparent and Certifiable JavaCard Applets

Investor logo

Warning

This publication doesn't include Faculty of Arts. It includes Faculty of Informatics. Official publication website can be found on muni.cz.
Authors

MAVROUDIS Vasilios ŠVENDA Petr

Year of publication 2020
Type Article in Proceedings
Conference 2020 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW)
MU Faculty or unit

Faculty of Informatics

Citation
Web https://crocs.fi.muni.cz/papers/cybercert2020
Doi http://dx.doi.org/10.1109/EuroSPW51379.2020.00022
Keywords Cryptography; JavaCard; Auditability; Transparency; Elliptic Curves; Big Integers
Description The JavaCard multi-application platform is now deployed to over twenty billion smartcards, used in various applications ranging from banking payments and authentication tokens to SIM cards and electronic documents. In most of those use cases, access to various cryptographic primitives is required. The standard JavaCard API provides a basic level of access to such functionality (e.g., RSA encryption) but does not expose low-level cryptographic primitives (e.g., elliptic curve operations) and essential data types (e.g., Integers). Developers can access such features only through proprietary, manufacturer-specific APIs. Unfortunately, such APIs significantly reduce the interoperability and certification transparency of the software produced as they require non-disclosure agreements (NDA) that prohibit public sharing of the applet’s source code. We introduce JCMathLib, an open library that provides an intermediate layer realizing essential data types and lowlevel cryptographic primitives from high-level operations. To achieve this, we introduce a series of optimization techniques for resource-constrained platforms that make optimal use of the underlying hardware, while having a small memory footprint. To the best of our knowledge, it is the first generic library for low-level cryptographic operations in JavaCards that does not rely on a proprietary API. Without any disclosure limitations, JCMathLib has the potential to increase transparency by enabling open code sharing, release of research prototypes, and public code audits. Moreover, JCMathLib can help resolve the conflict between strict open-source licenses such as GPL and proprietary APIs available only under an NDA. This is of particular importance due to the introduction of JavaCard API v3.1, which targets specifically IoT devices, where open-source development might be more common than in the relatively closed world of government-issued electronic documents.
Related projects:

You are running an old browser version. We recommend updating your browser to its latest version.