View Single Post
  #1  
Old 08-28-2014, 16:50
bridgeic bridgeic is offline
Friend
 
Join Date: Jun 2012
Posts: 91
Rept. Given: 7
Rept. Rcvd 3 Times in 3 Posts
Thanks Given: 1
Thanks Rcvd at 7 Times in 6 Posts
bridgeic Reputation: 3
Arrow What's the regular SDK compile flow with ECC check?

I search the forum, but didn't find answer, so post here to ask help.

What's the regular SDK compile flow when have ECC check?

(a) If we have selected private key/public key, how to select LM_SEED1,2,3 to make it match with the ECC private/public key we select? Or there are files to fill these keys?

(b) Or we should select LM_SEED1,2,3 first, and when compile SDK it will generate the private/public keys automatically? I do test as this way, seems the private key generated automatically and saved in lmprikey.h, but where can find the public key?

(c) Also for generating ecc signature "r" below, we still need a random "k", if we select this value by ourselves, which file we should fill this "k" value in? Or whether when LM_SEED1,2,3 fixed, the "k" value will be generated automatically also? If yes, where can I get the "k" value?

r = k * G mod n
s = (h + rd)/k mod n
Reply With Quote