Forums - Creating JWT token or Signing data.

2 posts / 0 new
Last post
Creating JWT token or Signing data.
tr
Join Date: 7 Apr 20
Posts: 1
Posted: Wed, 2020-09-09 21:57
Hi,
 
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.
 
Qualcomm uses SharkSSL. 
For SharkSSL I'm talking about these functions:
 
For ECDSA:
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)
 
For RSA/DSA:
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 

  • Up0
  • Down0
ss.pandiri
Join Date: 29 May 18
Posts: 33
Posted: Tue, 2020-12-15 04:08

hi,

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: 

https://forums.quectel.com/c/iot-module/

thanks

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.