Sample & Buy
Tools & Software
Quality & Reliability
Get Started
Partner products
Sales Briefcase
  • STM32 crypto library package (X-CUBE-CRYPTOLIB) is based on STM32Cube architecture package and includes a set of crypto algorithms based on firmware implementation ready to use in all STM32 microcontrollers. This software is classified ECCN 5D002.

    For dedicated devices some algorithms are supported with hardware acceleration, to optimize the performance and the footprint usage.
    Up to 31 examples are provided in this package, covering all the available algorithms with template projects for the most common development tools, such as: Keil®MDK-ARM, IAR EWARM (IAR Embedded Workbench®), GCC-based IDEs (free AC6: SW4STM32, Atollic®TrueSTUDIO®,...). Even without the appropriate hardware evaluation board, this layer allows the user to quickly get started with a new STM32 cryptographic firmware library brand.

    Key Features

    • Crypto algorithms supported are:
    • AES-128, AES-192, AES-256 bits:
      • ECB (Electronic Codebook Mode)
      • CBC (Cipher-Block Chaining) with support for ciphertext stealing
      • CTR (Counter Mode)
      • CFB (Cipher Feedback)
      • OFB (Output Feedback)
      • CCM (Counter with CBC-MAC)
      • GCM (Galois Counter Mode)
      • CMAC
      • KEY WRAP
      • XTS (XEX-based tweaked-codebook mode with ciphertext stealing)
    • ARC4
    • DES, TripleDES:
      • ECB (Electronic Codebook Mode)
      • CBC (Cipher-Block Chaining)
    • HASH functions with HMAC support:
      • MD5
      • SHA-1
      • SHA-224
      • SHA-256
      • SHA-384
      • SHA-512
    • ChaCha20
    • Poly1305
    • CHACHA20-POLY1305
    • Random engine based on DRBG-AES-128
    • RSA signature functions with PKCS#1v1.5
    • RSA encryption/decryption functions with PKCS#1v1.5
    • ECC (Elliptic Curve Cryptography):
      • Key generation
      • Scalar multiplication (the base for ECDH)
      • ECDSA
    • ED25519
    • Curve25519

Get Software

Recommended for you

Latest from ST

All tools & software

    • Part number



      Patch V3.1.2 for X-CUBE-CRYPTOLIB V3.1.0

      STM32Cube Expansion Packages ST


      Patch V3.1.2 for X-CUBE-CRYPTOLIB V3.1.0