EC Public Key
In this post, we will learn how to get EC curve co-ordinate (X, Y) from uncompressed EC public key. If EC public certificate is in form of PEM certificate convert it into hex string. If converted hex hex string is starting with 04 it means uncompressed EC public key and if starting with 02 or 03 then it compressed EC public certificate.
Uncompressed EC public key hex, here 04 indicated it's uncompressed. Remove 04 and divide rest part in equal half and first half will be X co-ordinate and other half will be Y co-ordinate.
X: 04ce2434d4cbf258942f8a5f06d73fed
Y: 5a50effbccb7496216629eaad530a8a5
In this post, we will learn how to get EC curve co-ordinate (X, Y) from uncompressed EC public key. If EC public certificate is in form of PEM certificate convert it into hex string. If converted hex hex string is starting with 04 it means uncompressed EC public key and if starting with 02 or 03 then it compressed EC public certificate.
Uncompressed EC public key hex, here 04 indicated it's uncompressed. Remove 04 and divide rest part in equal half and first half will be X co-ordinate and other half will be Y co-ordinate.
04 04 ce 24 34 d4 cb f2 58 94 2f 8a 5f 06 d7 3f ed 5a
50 ef fb cc b7 49 62 16 62 9e aa d5 30 a8 a5
X: 04ce2434d4cbf258942f8a5f06d73fed
Y: 5a50effbccb7496216629eaad530a8a5
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Rozgardesh (रोजगार देश)
Comments
Post a Comment