1.5.5.4.18 SRV_FU_SetECDSAPublicKey Function
C
void SRV_FU_SetECDSAPublicKey(uint8_t *pubKey, uint32_t pubKeyLen);
Summary
Set the Firmware Upgrade the public key to be used for the ECDSA-256 signature.
Description
This function sets the public key to be used for the ECDSA-256 signature.
Precondition
The SRV_FU_Initialize function should have been called before calling this function.
Parameters
| Parameters | Description |
|---|---|
| pubKey | Pointer to the buffer where the ECDSA-256 public key is stored |
| pubKeyLen | Length of the key |
Returns
None.
Example
#define LEN_PUBLIC_KEY 65 uint8_t pubKey[LEN_PUBLIC_KEY]; uint16_t pubKeyLen = LEN_PUBLIC_KEY; SRV_FU_SetECDSAPublicKey(pubKey, pubKeyLen);
Remarks
This function is called by the application.
