CRYPTO
Principle
The CRYPTO Foundation Library provides a standard Java API (a subset of the Java Cryptography Architecture) for cryptographic operations: cipher, digest, MAC, signature, secure random & key/certificate management. It relies on a native crypto engine (such as Mbed TLS, OpenSSL or wolfSSL).
The CRYPTO Foundation Library replaces the deprecated SECURITY Foundation Library. Unlike the SECURITY Foundation Library, it is a standalone Foundation Library and is no longer part of the Net Pack.
Supported Crypto Engines
The native crypto engine is integrated through the LLCRYPTO_*.h Low Level APIs, described in the LLCRYPTO: Crypto engine appendix.
MicroEJ supports the following crypto engines:
Mbed TLS
OpenSSL
wolfSSL
PSA Crypto
Note
Unlike Foundation Libraries such as NET or FS, the CRYPTO Foundation Library is an extensible module: it does not, and will never, cover every cryptographic API, algorithm and crypto engine. If the API, algorithm or crypto engine you need is not currently supported, please contact our support team for more information.
Dependencies
The
LLCRYPTO_*.himplementations (see LLCRYPTO: Crypto engine).
Installation
The CRYPTO Foundation Library is a standalone Foundation Library available in the SDK 6. To install it on your VEE Port, add the following dependency to the VEE Port Configuration project build file:
microejPack("ej.api:crypto:<latest>")
Use
See CRYPTO chapter in the Application Developer Guide.
