I'm developing an application to connect to Google IoT Cloud with MDM9205 and have to generate a JSON Web Token (JWT).
In order to do so, I have to sign the token with my private key, is it possible to expose the unlaying signing API in the LTE IoT SDK, or expose an JWT interface.
According to this forum post: https://developer.qualcomm.com/forum/qdn-forums/software/qualcomm-lte-io...
Qualcomm uses SharkSSL.
For SharkSSL I'm talking about these functions:
Generate the signature using the ECC private key and a hash.
SHARKSSL_API sharkssl_ECDSA_RetVal sharkssl_ECDSA_sign_hash(SharkSslECCKey privkey, U8* sig, U16* siglen, U8* hash, U8 hashlen)
Encrypt data using the public key or private key.
SHARKSSL_API sharkssl_RSA_RetVal sharkssl_RSA_public_encrypt(U16 len, U8* in, U8* out, SharkSslRSAKey key, U8 padding)
from the Shark SSL stack
I am not sure if you have already found a solution but this functionality should be part of QAPI_MOD_CRYPTO module.
I think you can get some pointers by posting your query here: