SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
This command is used to retrieve the public key of the key-pair installed or temporarily created in a certain index.
The key is in x9.63 raw format. The operation is done using the sl_NetUtilGet API.
_i16 Status;
_u8 configOpt = 0;
_u32 objId = 0;
_u16 configLen = 0;
configOpt = SL_NETUTIL_CRYPTO_PUBLIC_KEY;
objId = 1;
configLen = 255;
/* get the Public key */
Status = sl_NetUtilGet(configOpt, objId, buf, &configLen);
if(Status < 0)
{
/* error */
}