This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using nrfutil to generate verification key SDK12.1

Hi,

I am trying to use nrfutil to generate my verification key.

However in the bootloader the key has this format

__ALIGN(4) const uint8_t pk[64] =
{
    0x6e, 0x76, 0x24, 0x50, 0x38, 0xb6, 0xed, 0x60, 0xc3, 0x60, 0x12, 0x50, 0x00, 0xd2, 0x25, 0x0f, 0xee, 0x37, 0xbf, 0x00, 0x02, 0x6b, 0x50, 0x92, 0x80, 0x32, 0x42, 0x2e, 0xd6, 0x68, 0xde, 0xdf, 
    0x3b, 0xcf, 0xa4, 0x6a, 0x3e, 0x45, 0x9b, 0xb3, 0xb1, 0x3c, 0xa3, 0x39, 0xcc, 0x95, 0x58, 0x36, 0xcd, 0x6d, 0x7e, 0x1f, 0xa1, 0xab, 0x79, 0x05, 0x35, 0x2d, 0x2a, 0xda, 0x19, 0xdb, 0x88, 0xce
};

Using nrfutil.exe I get in the format

static uint8_t Qx[] = { 0x54, 0x62, 0xbd, 0x19, 0x9c, 0x2f, 0xdd, 0xf1, 0xae, 0xc1, 0x89, 0xf0, 0xe7, 0x6a, 0x6a, 0xec, 0x3b, 0x4f, 0x20, 0x73, 0xda, 0x12, 0x42
, 0xae, 0x68, 0x78, 0xf3, 0x95, 0xbe, 0xd1, 0x8b, 0x9a };

static uint8_t Qy[] = { 0xc3, 0xc6, 0x2d, 0x5a, 0xa7, 0x10, 0x8e, 0xe0, 0x66, 0x1c, 0x95, 0x17, 0x80, 0x38, 0xd6, 0xd3, 0xa8, 0x52, 0xd2, 0xce, 0xfc, 0xd9, 0x80
    , 0x16, 0x6d, 0xb7, 0x17, 0xeb, 0xd6, 0x95, 0x4b, 0xb1 };

Do I need to reformat the VK or how to I get the VK into my code?

Thanks

Related