2021-10-04 12:51 AM
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
2021-10-04 01:03 AM
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
2021-10-04 01:09 AM
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?
2021-10-04 01:13 AM
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.
2021-10-04 01:23 AM
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.
2021-10-04 01:29 AM
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.