Skip to main content
Anguel
Associate III
October 4, 2021
Question

Compatibility with X-CUBE-CRYPTOLIB v4?

  • October 4, 2021
  • 5 replies
  • 1445 views

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

    This topic has been closed for replies.

    5 replies

    Frantz LEFRERE
    ST Employee
    October 4, 2021

    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
    AnguelAuthor
    Associate III
    October 4, 2021

    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
    October 4, 2021

    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
    AnguelAuthor
    Associate III
    October 4, 2021

    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
    October 4, 2021

    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.