Visible to the public JCMathLib: Wrapper Cryptographic Library for Transparent and Certifiable JavaCard Applets

TitleJCMathLib: Wrapper Cryptographic Library for Transparent and Certifiable JavaCard Applets
Publication TypeConference Paper
Year of Publication2020
AuthorsMavroudis, V., Svenda, P.
Conference Name2020 IEEE European Symposium on Security and Privacy Workshops (EuroS PW)
Date PublishedSept. 2020
PublisherIEEE
ISBN Number978-1-7281-8597-2
KeywordsAPI, APIs, application program interfaces, application programming interface, auditability, Big Integers, certification, certification transparency, compositionality, cryptography, data types, elliptic curve operations, Elliptic curves, generic library, Hardware, interoperability, Java, JavaCard, JavaCard API, JavaCard applets, JavaCard multiapplication platform, JCMathLib, Libraries, low-level cryptographic operations, low-level cryptographic primitives, memory footprint, nondisclosure agreements, open code sharing, open library, open systems, open-source development, open-source licenses, optimisation, Optimization, proprietary APIs, proprietary manufacturer-specific APIs, pubcrawl, public domain software, resilience, Resiliency, resource-constrained platforms, smart cards, smartcards, software libraries, Standards, transparency, wrapper cryptographic library
Abstract

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 low-level 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.

URLhttps://ieeexplore.ieee.org/document/9229780
DOI10.1109/EuroSPW51379.2020.00022
Citation Keymavroudis_jcmathlib_2020