cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 CryptoLib - Verifyin on Linux machine

angeletti2
Associate II
Posted on February 13, 2017 at 13:01

Hello everybody,

I'm tryin to make a Nucleo-F401 sign a message and then verify this message on a Linux machine. Currently I am able to inject both private and public key into the STM32F401RE (and, starting from ECDSA keygen and sign example, I checked that it works). However, the public keys given by Python ECDSA and CryptoLib are different. Since I'm using the same curve for both (FIPS 186-3 NIST256P), what can cause this behaviour?

Regards,

Fabio

#cryptographic-library #ecc #cryptography #elliptic-curve #ecdsa #x-cube-cryptolib
4 REPLIES 4
Nesrine M_O
Lead II
Posted on February 13, 2017 at 14:36

Hi

Angeletti.Fabio

,

  • Try to make sure that you use the same private key forPythonECDSA and CryptoLib

  • Verify that the CRC module is enabled on your case

-Nesrine-

Posted on February 13, 2017 at 14:59

I verified both, it is exactly what I found scavenging on google. Already tried with both endians. Any other suggestion?

angeletti2
Associate II
Posted on March 01, 2017 at 16:16

I'm still tryin to solve the issue. The Private Key seems to be the same, anyone has some working source code to share? It's really strange that it is not working as expected

Posted on March 23, 2018 at 03:30

Hi Fabio, I am doing the same thing. Hope we can nail it down together.  Pls leave me a contact if you agree to make it a team work. Thanks.