Security APIs
The security APIs offer the ability to interface with the Linux kernel and the device hardware. They also facilitate various software services that can be run in a trusted execution environment.User space APIs
The user space APIs are the functions that the Linux OS accesses to interact with the kernel. This feature is available to licensed developers with authorized access. If you have access, see Qualcomm Linux Security Guide - Addendum.Interfaces exposed for PKCS#11
See Cryptographic Token Interface Usage Guide and Cryptographic Token Interface Base Specification.Kernel APIs
The kernel APIs are the functions that allow the Qualcomm Linux software to interact with the device hardware.Cryptographic APIs
Theqcrypto.ko driver is on the device at /lib/modules/<version>/kernel/drivers/crypto/qce. Both kernel-level and user-level APIs can access the crypto engine. For the APIs, see the kernel crypto documentation at Index of crypto documentation.
The following cryptographic algorithms are supported:
- RFC 4309 (CCCM (AES))
- CCM (AES)
- Authenc (HMAC (SHA-256), CBC (AES))
- Authenc (HMAC (SHA-256), CBC (DES3_EDE))
- Authenc (HMAC (SHA-256), CBC (DES))
- Authenc (HMAC (SHA-1), CBC (DES3_EDE))
- Authenc (HMAC (SHA-1), CBC (DES))
- HMAC (SHA-256)
- HMAC (SHA-1)
- SHA-256
- SHA-1
- CBC (DES3_EDE)
- ECB (DES3_EDE)
- CBC (DES)
- ECB (DES)
- XTS (AES)
- CTR (AES)
- CBC (AES)
- ECB (AES)
Hardware random generator APIs
Qualcomm Linux supports a true random number generator using theqcom-rng Linux driver. The random number generated from qcom-rng uses kernel crypto for the random number generator API.
In the user space, a random number can be accessed at /dev/hwrng. For more information about the hardware random number generator, see the kernel documentation at Linux support for random number generator in i8xx chipsets.
For PRNG APIs, see Qualcomm Linux Security Guide - Addendum. This feature is available to licensed developers with authorized access.
Qualcomm TEE APIs
Qualcomm TEE provides a collection of APIs that offer services to secure applications. These services include heap management, logging, secure file system access, listener interactions, and cryptography and hashing functions. This feature is available to licensed developers with authorized access. If you have access, see Qualcomm Linux Security Guide - Addendum.Use security services examples
To run security services, sample code and examples to load client and trusted applications using different interfaces are available to licensed users with authorized access. If you have access, see Qualcomm Linux Security Guide - Addendum.Next steps
- To initialize and configure the hardware for running securely on Linux, see Verify security configurations.
- To configure Qualcomm TEE for securing devices that handle sensitive data and run trusted applications, see Configure security services.
- To customize memory and SEPolicy, see Customize security services.

