Hi, all
Now I'm trying to connect to Google IOT Core. For authentication it need to sign message with RSA SHA256 or ECDSA with SHA256 (SECP256R1). As we know "sl_NetUtilCmd()" can only use for ECDSA signing.
Ok, after reading and discovering manuals, I find next snippet in manuals.
signAttrib.Flags = 0; signAttrib.ObjId = 3; signAttrib.SigType = SL_NETUTIL_CRYPTO_SIG_SHAwECDSA; /* this is the only type supported */ configLen = 255; Status = sl_NetUtilCmd(SL_NETUTIL_CRYPTO_CMD_SIGN_MSG, (_u8 *)&signAttrib, sizeof(SlNetUtilCryptoCmdSignAttrib_t), messageBuf, sizeof(messageBuf), buf, &configLen);
Here we can see that this function need to use with SL_NETUTIL_CRYPTO_SIG_SHAwECDSA option. But for connect to Google IOT Core I need ECDSA with SHA256.
And my question is can I use SL_NETUTIL_CRYPTO_SIG_SHA256wECDSA option instead of SL_NETUTIL_CRYPTO_SIG_SHAwECDSA?
Or maybe I can use apart SHA256 encryption function and after that SL_NETUTIL_CRYPTO_SIG_DIGESTwECDSA option like with verifying signature process?
Or maybe it has another way to connect
P.S.
I also read and executed greatfull guide about crypto_utils at SimpleLink Academy
