Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • RF and Microwave
    • Video
    • Power Management
    • Precision ADCs
    • FPGA Reference Designs
    • Linux Software Drivers

    Product Forums

    • Amplifiers
    • Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

    • A2B
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Maximize Workflow: Analog Devices eShop New Upload Tools

    Join us for an exciting webinar where we will unveil and demonstrate our new bulk ordering and bulk quoting tools! Discover how you can streamline your...

    Places

    • ADI Academy
    • ADI Webinars
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Designing for Silence: EMC Testing and Reduction for Digital Isolators and DC-DC Converters
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quiz AQQ293 about finding the cat

      1. First, the quote of the week: " The best measure of a man's honesty isn't his income tax return. It's the zero adjust on his bathroom scale " - Unknown...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: White Coats and Multi-Coloured Pens Ready to put...

    View All

    Places

    • Community Help
    • Logic Lounge
    • Super User Program
    • Analog Dialogue Quiz

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Understanding Safe Failure Fraction: Can There Be Multiple Values?

    I discuss various aspects of the SFF (safe failure fraction) —whether it applies to an integrated circuit —and whether an integrated circuit can have more...

     

    Powering the Future: Multiphase Buck-Boost Innovation for Telecom: Part 3 of 3

    How can we meet the growing power requirements of the future? 5G network deployments necessitate high-efficiency power conversion solutions capable of...

    Latest Blogs

    • Freedom from Interference: Control of Mixed ASIL Criticalities
    • High-Tech Pro and Crafty Creator: Meet Iulia, Our Inspiring Super User!
    • Apples and Oranges: A Comparative Study of DCM and CCM: Part 6 of 6
    • Understanding AXI-Stream Interfaces for DSP Data Pipelines
    • Importing Op Amp Models in LTspice: When All Else Fails, Customize the Symbol: Part 3 of 3
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
ADSP-BF70x
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
ADSP-BF70x
  • Processors and DSP
  • Blackfin Processors
  • ADSP-BF70x
  • Cancel
ADSP-BF70x
Documents How to use the Signtool Utility to encrypt and sign the unsigned bootstream (loader file generated for an application, example:bootstream.ldr)
  • Q&A
  • FAQs/Docs
  • Members
  • Tags
  • Cancel
  • +Documents
  • ADSP BF706 Ezkit Mini SPI1 cannot be done in master mode.
  • +ADSP-BF707: FAQ
  • -ADSP-BF70X: FAQ
    • Different Wake-up Sources on BF70x
    • ADSP-BF70x application cannot boot using Secure Boot
    • CPLB enhancements in Blackfin+ Core
    • FAQ: Different Wake-up Sources on BF70x
    • Digital watch code for RTC
    • Enhancements in Hardware Loop in Blackfin+ core
    • Enhancements in Supervisor Mode in Blackfin+ core
    • HADC maximum bandwidth
    • Highlights of MSI on BF70x
    • How can I initialize DDR memory device connected to BF70x processor ?
    • How do I access the full memory space of the SPI slave?
    • How L2CTL in BF70x is different than BF60x ?
    • How the System Cross Bar (SCB) in BF70x different than in BF60x ?
    • How to configure MSI IDMAC for Dual Buffer Descriptor Ring mode operation
    • FAQ: How to re-enable the Core clock on BF70x after gating it
    • How to send data using SPI READY signal
    • How to take the core out of reset on BF70x
    • How to use the Signtool Utility to encrypt and sign the unsigned bootstream (loader file generated for an application, example:bootstream.ldr)
    • Is INIT Code supported in Secure Boot in ADSP-BF707
    • Monitoring Cache Performance on the ADSP-BF70x
    • Performance Enhancements in Blackfin+ core
    • UART slave boot BF70x with Higher BAUD rate
    • Sample code for HADC on BF70x?
    • What are the salient features of SPI Host Port on BF70x?
    • What is the effect of bus disabling (RDEN bit) on RTC functionality?
    • What is the Encrypt-Hash and Hash-Decrypt mode in PKTE module
    • What is the purpose of the ownership bit when programming the PKTE module for encryption/hashing?
    • What modes of Encryption and Hashing are supported and how do they make an application secure
    • Getting Started with ADSP-BF70x Processors
    • How to re-enable the Core clock on BF70x after gating it
    • Known Errata Against ADSP-BF70x Blackfin+ Datasheet
    • the secret BF70x documentation
    • Where can I find power consumption data for BF70x processors?
    • What are the major differences between DMC module of BF60x and BF70x ?
    • Cache Enhancements in Blackfin+ core
    • Can I pass the output generated from PKA directly to the PKTE module for encryption/decryption
    • Configuring Timer in continuous/single pulse mode
    • DMA error interrupt
    • How to verify that the boot bytes are accurate in all boot modes for the ADSP-BF60x and ADSP-BF70x?
  • BF707 SPI Slave to Master loopback communication
  • Example for UART transmit and receive operation using Core Mode for BF707
  • GPIO example code for BF707
  • Hardware Reset using Watchdog in BF706
  • SPI example in Autobuffer mode on BF707

How to use the Signtool Utility to encrypt and sign the unsigned bootstream (loader file generated for an application, example:bootstream.ldr)

Q:

How to use the Signtool Utility to encrypt and sign the unsigned bootstream (loader file generated for an application, example:bootstream.ldr)?

--------------

A:

Signtool Utility comes along with the CCES package which can be used to sign and encrypt the unsigned loader stream and make it secure.

In order to do this, once we have generated the unsigned bootstream through CCES in binary format following commands can be used to sign and encrypt the bootstream:

Now, how to use SignTool:

  1. To generate a Public/Private key pair

          Signtool genkeypair –algo ecdsa224 –outfile <keypair_file>

   2. To get the public key from the key pair file

          Signtool getkey –key <keypair_file> -type BLKey –outfile <pubkey_file>

   3. To sign a boot image (BLp)

          Signtool sign –type BLp –prikey <keypair_file> -infile <bootstream_file> -outfile <signed_bootstream_file>

   4. To sign and encrypt a boot image (BLx)

          Signtool sign –type BLx –prikey <keypair_file> -enckey <encryption_key_file> -infile <bootstream_file> -outfile <signed_bootstream_file>

          Note: <encryption_key_file> is 128bit encryption key that is used for encryption and decryption

   5. To sign and encrypt a boot image (BLw)

           Signtool sign –type BLx –prikey <keypair_file> -enckey <encryption_key_file> -wrapkey <wrap_key_file> -infile <bootstream_file> -outfile           <signed_bootstream_file>

     Note: <wrap_key_file> holds another 128-bit key which is used to “wrap” the encryption key used to encrypt the boot stream.

Now below command lines shows the same steps used above for a given unsigned bootstream (bootstream.ldr) to add more clearity:

  1. Generate an ECDSA key pair using signtool .

"C:\Analog Devices\CrossCore Embedded Studio 1.1.0\signtool.exe" genkeypair -algo ecdsa224  -outfile keypair.bin

   2. Extract the public key from above generated ECDSA key pair.

            "C:\Analog Devices\CrossCore Embedded Studio 1.1.0\signtool.exe" getkey -key keypair.bin  -type BLKey -outfile pubkey.bin

   3. Now to just sign the unsigned bootstream (bootstream.ldr) use the following command:

"C:\Analog Devices\CrossCore Embedded Studio 1.1.0\signtool.exe" sign -type BLp -prikey keypair.bin -infile bootstream.ldr -outfile blp_signed_bootstream.bin

   4. In order to sign and encrypt the bootstream, two approaches are available:

a. BLx:

"C:\Analog Devices\CrossCore Embedded Studio 1.1.0\signtool.exe" sign -type BLx -prikey keypair.bin -enckey aeskey.bin -infile bootstream.ldr -outfile blx_signed_bootstream.dat

b. BLw:

"C:\Analog Devices\CrossCore Embedded Studio 1.1.0\signtool.exe" sign -type BLw -prikey keypair.bin -enckey aeskey.bin -wrapkey wrapperkey.bin -infile bootstream.ldr -outfile blw_signed_bootstream.dat

Now last step required is to program the corresponding encryption/wrapper key and the public key into the OTP for secure booting.

  • Share
  • History
  • More
  • Cancel
 
Related Content
  • How to sign and encrypt a normal bootstream for Secure Boot?
    Sara Collins
    The Normal boot stream can be signed and encrypted using the Signtool utility. The Signtool utility expects the input boot stream/keys to be in binary format and then generates a signed/encrypted image...
  • RE: Secure Boot Loader stream generation
    VineethaThomas
    CCES provides signtool utility to generate secure boot streams in formats Blp, Blx or Blw. A sample command to do the same is given here. The same tool has options to generate the ECDSA key pair and the...
  • Sign and encrypt a normal bootstream: FAQ
    Sara Collins
    Sign and encrypt a normal bootstream: FAQ
 
Related Content
  • How to sign and encrypt a normal bootstream for Secure Boot?
    Sara Collins
    The Normal boot stream can be signed and encrypted using the Signtool utility. The Signtool utility expects the input boot stream/keys to be in binary format and then generates a signed/encrypted image...
  • RE: Secure Boot Loader stream generation
    VineethaThomas
    CCES provides signtool utility to generate secure boot streams in formats Blp, Blx or Blw. A sample command to do the same is given here. The same tool has options to generate the ECDSA key pair and the...
  • Sign and encrypt a normal bootstream: FAQ
    Sara Collins
    Sign and encrypt a normal bootstream: FAQ
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2025 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2025 Analog Devices, Inc. All Rights Reserved