cancel
Showing results for 
Search instead for 
Did you mean: 

Compatibility with X-CUBE-CRYPTOLIB v4?

Anguel
Senior

Hi,

I just downloaded the latest cryptolib v4 and read in the docs that it is not compatible with v3 anymore.

Are there any instructions how to use it with the "STM32 Security in practice" workshop?

Thanks,

Anguel

5 REPLIES 5
Frantz LEFRERE
ST Employee

Hello Anguel,

there is no specific instruction but you can find information about migrating on the stm32 wiki :

https://wiki.st.com/stm32mcu/wiki/Category:Cryptographic_library

https://wiki.st.com/stm32mcu/wiki/Security:Migration_from_previous_Cryptographic_Library_version

FYI : xcryptolib V3 is still available : https://www.st.com/en/embedded-software/x-cube-crypto-v3.html

Anguel
Senior

Thanks for the link to v3, Frantz, I did not find it through Google.

So there is no recommendation to switch for existing projects as far as I understand, correct?

Frantz LEFRERE
ST Employee

for sure we always recommend to switch to latest version and the wiki instruction should help you in this migration.

But regarding the workshop material, we have not plan to update it at short term.

Anguel
Senior

Does the v4 also include important fixes or is it just new features? Probably, if the old v3 is certified it should be free of bugs.

Frantz LEFRERE
ST Employee

Cryptographic Library V4, bring new algorithms :

Hash

SHA3, SHAKE, SM3

MAC

KMAC

Cipher

SM4

ECC

SM2, ECDH on Curve448, EdDSA on edwards448 curve

RSA

PKCS#1 v2.2, CRT, Bellcore Attack protection

DRBG

CTR_DRBG-AES256

It also brings simplicity and performances (both speed and size). Another important improvement is that the library is based on core support and is no longer dedicated to each product, which allows its easy reuse across products sharing the same core, without duplicated effort.

But for sure v3, is certified and bug free.