Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2642R: ECC ROM based drivers are not working as good as flash drivers

$
0
0

Part Number: CC2642R

We are facing the problem with ROM based drivers for ECC on verification whereas with same input key parameters, but with flash drivers - it was working fine. Could you please resolve this.

 

Description:-

Sign with flash drivers and verify with ROM based drivers with following input parameters. It should be verified right?

 

// This vector is taken from the NIST ST toolkit examples from ECDSA_Prime.pdf

uint8_t theirPublicKeyingMaterial[64] = {0x19, 0x7A, 0xBC, 0x89, 0x08, 0xCD, 0x01, 0x82,

0xA3, 0xA2, 0x9E, 0x1E, 0xAD, 0xA0, 0xB3, 0x62,

0x1C, 0xBA, 0x98, 0x47, 0x73, 0x8C, 0xDC, 0xF1,

0xD3, 0xBA, 0x94, 0xFE, 0xFD, 0x8A, 0xE0, 0xB7,

0x09, 0x5E, 0xCC, 0x06, 0xC6, 0xBB, 0x63, 0xB5,

0x61, 0x9E, 0x52, 0x43, 0xAE, 0xC7, 0xAD, 0x63,

0x90, 0x72, 0x28, 0x19, 0xE4, 0x26, 0xB2, 0x4B,

0x7A, 0xBF, 0x9D, 0x95, 0x47, 0xF7, 0x03, 0x36};

uint8_t messageHashSHA256[32] = {0xC4, 0xA8, 0xC8, 0x99, 0x28, 0xCF, 0x80, 0xB6,

0xE4, 0x42, 0xD5, 0xBD, 0x28, 0x4D, 0xE3, 0xFD,

0x3A, 0x13, 0xD8, 0x65, 0x0C, 0x41, 0x1C, 0x21,

0x48, 0x95, 0x79, 0x2A, 0xA1, 0x41, 0x1A, 0xA4};

uint8_t r[32] = {0x4F, 0x10, 0x46, 0xCA, 0x9A, 0xB6, 0x25, 0x73,

0xF5, 0x3E, 0x0B, 0x1F, 0x6F, 0x31, 0x4C, 0xE4,

0x81, 0x0F, 0x50, 0xB1, 0xF3, 0xD1, 0x65, 0xFF,

0x65, 0x41, 0x7F, 0xD0, 0x76, 0xF5, 0x42, 0x2B};

uint8_t s[32] = {0xF1, 0xFA, 0x63, 0x6B, 0xDB, 0x9B, 0x32, 0x4B,

0x2C, 0x26, 0x9D, 0xE6, 0x6F, 0x88, 0xC1, 0x98,

0x81, 0x2A, 0x50, 0x89, 0x3A, 0x99, 0x3A, 0x3E,

0xCD, 0x92, 0x63, 0x2D, 0x12, 0xC2, 0x42, 0xDC};

 

 

Flash based drivers used:

http://dev.ti.com/tirex/content/simplelink_cc13x2_sdk_2_30_00_45/docs/tidrivers/doxygen/html/_e_c_d_s_a_8h.html

ECDSA_sign(ecdsaHandle, &operationSign);

ECDSA_verify(ecdsaHandle, &operationVerify);

 

ROM based drivers used:

    uint8_t status = ECDSA_verif((uint32_t *)publicKeyXBuf,

                                 (uint32_t *)publicKeyYBuf,

                                 (uint32_t *)hashBuf,

                                 (uint32_t *)sign1Buf,

                                 (uint32_t *)sign2Buf);

 

uint8_t  bimVerifyImage_ecc(const uint8_t *publicKeyX, const uint8_t *publicKeyY,

                           uint8_t *hash, uint8_t *sign1, uint8_t *sign2, uint32_t *eccWorkzone,

                           uint8_t *tempWorkzone)


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>