Renesas Secure Key Installation with Free of Charge DLM Service

2022-10-21 Renesas Blogs

The increasing growth of connected devices drives the need for secure communications and secure storage. OEMs must evolve the application capability whilst keeping compatibility with legacy and existing solutions. Especially the handling of cryptographic key material is a significant challenge even at the production stage.


A secure element might seem an ideal solution; by design, it provides a very high level of physical tamper resistance (even though most applications would not demand it) and is a self-contained, isolated, and separate subsystem. But it has major weak points, though. Besides the increased cost, it is low bandwidth and a single-point-of-failure connection. The secure key storage is quite limited. The performance of the crypto accelerators is typically not documented (see references section for an independent benchmarking), few algorithms might not be supported at all, and/or not upgradeable in the field. Additional key handling tools must be integrated into the production flow or a secure programming service employed at additional cost.


The RENESAS Secure Crypto Engine (depicted in Figure 1) provides functionality comparable to a secure element with important benefits: a much higher performance, reduction of a bill of materials cost, and simpler integration of the necessary crypto functionality. It supports all state-of-the-art algorithms and a true random number generator. It enables secure and virtually unlimited key storage. The SCE subsystem is fully isolated and contained within the MCU, protected by an access management circuitry that shuts down the interface when detecting illegal access attempts. All plaintext crypto operations use dedicated internal memory, and the advanced key management capabilities avoid exposure on the internal bus fabric.

Figure 1. Secure Crypto Engine

But how to secure the factory key provisioning operations, without using a hardware security module (HSM)? All Renesas MCUs have historically supported factory programming over serial and USB interfaces, as a very reliable and low-cost mechanism suitable for mass production. The same interface can now support application key material injection.


Users can pass a chosen “installation key” and an encrypted payload (the “application key” be injected) to the SCE boundary via the built-in boot firmware, according to a documented protocol. A conceptual diagram is shown in Figure 2 below:

Figure 2. MCU provisioning over the programming interface

The SCE includes a Hardware Root Key (HRK), protected and unaccessible outside of its boundary. Key derivation functions are implemented to derive "key encryption keys"(KEKs, or HRK') which can transport any user key (in encrypted format) securely inside the SCE boundary for further processing. The preparation of the application key for injection is shown in Figure 3.

Figure 3. DLM server and key installation

In the first step the user chooses (generates) an AES install key (in green), and the desired application key (in yellow). The application key can be any type or size supported by the SCE engine, symmetric or asymmetric. Note: this preparation shall be done in a secure environment to preserve key confidentiality.


The application key is encrypted by the install key. Obviously, the install key shall be encrypted as well, to avoid easy interception and breach of confidentiality; and to achieve that, the HRK must be made accessible to the user. To encrypt the install key with the HRK - without exposing the HRK itself - Renesas provides a free-of-charge service to its customers. This service is delivered by a dedicated secure server (DLM server) designed to assist the MCU Device Lifecycle Management, in handling crypto keys during production and (optionally) later field updates. Any user can register free of charge to use the service, and generate the necessary data for the factory programming operation. All the communication between the user and the server is secured and encrypted via PGP.


In Figure 3, the green key 'embedded' within the blue key represents the HRK encrypted version of the user install key, which gets returned back by the DLM server. Please note that the application key (yellow) is never disclosed!


The encrypted install key can now be handled over to the SCE for decryption, and in turn, this gets used to decrypt the user key. At this point, the yellow key has been securely transported and reconstructed within the SCE boundary; now it must be saved in the MCU memory, otherwise, when power is removed, it will be lost. 


To implement secure storage, the SCE implementation has another ace up its sleeve: the Hardware Unique Key (HUK). The HUK is a read-only, 256-Bit key exclusively accessible by the SCE access management circuit through a dedicated (private) bus. As for the HRK, KDFs can combine the HUK with API key generation information, and the derived keys can be used for implementing key wrapping i.e., secure key storage. The HUK itself is also stored in wrapped form in an isolated memory area (therefore, well protected from illicit access, copying, and tampering). The resulting wrapped keys can then be safely exported from the SCE boundary to be saved in non-volatile memory.


Noticeably, the installation key has no practical value outside of the factory and does not need to be stored; preparation of the installation key bundle can be performed completely "offline", and does not need an active network connection on the production site. Also, the SCE drivers provide additional APIs to use factory-installed keys for performing a "key refresh" (or key injection) in the field.


Consequently, the end application has no dependency on the DLM services during factory programming or while in the field. 


This solution provides many advantages to the end user.

* Unlimited key storage, any program or data flash area available in the MCUs can be used.

* The HUK uniqueness prevents illicit cloning and copying of keys to another device.

* No need to implement a secure area on the factory floor, all keys are encrypted.

* The application keys never leave the customer's secure environment.

* No need for 'online' communication between the factory programmer and the DLM server. 

* Program application and keys on the same interface, simplifying the flow.


In summary, Renesas provides a cost-effective and easy-to-use solution to help customers migrate to higher security levels in their applications. This functionality is available on the Cortex-M33-based microcontrollers of the RA6 and RA4 series.


References:

[1] Evaluation Kit for RA6M4 MCU Group
[2] R01AN5562EJ0100 Standard Boot Firmware for the RA family MCUs Based on Arm® Cortex®-M33
[3] R01UH0890EJ0110 RA6M4 Group User’s Manual: Hardware
[4] Renesas Flash Programmer (Programming GUI)
[5] Renesas Flash Programmer user manual
[6] Renesas RA Family Device Lifecycle Management Key Installation
[7] Quantitative comparison between external and internal acceleration solutions

技术资料,数据手册,3D模型库,原理图,PCB封装文件,选型指南来源平台:世强硬创平台www.sekorm.com
现货商城,价格查询,交期查询,订货,现货采购,在线购买,样品申请渠道:世强硬创平台电子商城www.sekorm.com/supply/
概念,方案,设计,选型,BOM优化,FAE技术支持,样品,加工定制,测试,量产供应服务提供:世强硬创平台www.sekorm.com
集成电路,电子元件,电子材料,电气自动化,电机,仪器全品类供应:世强硬创平台www.sekorm.com
  • +1 赞 0
  • 收藏
  • 评论 0

本文由Vicky转载自Renesas Blogs,原文标题为:Renesas secure key installation with free of charge DLM service,本站所有转载文章系出于传递更多信息之目的,且明确注明来源,不希望被转载的媒体或个人可与我们联系,我们将立即进行删除处理。

评论

   |   

提交评论

全部评论(0

暂无评论

相关推荐

瑞萨RX系列MCU实现二级MCU OTA升级:FreeRTOS篇

基于空中下载技术(OTA:Over-The-Air)并通过云服务端实现的MCU固件升级得益于云供应商和设备供应商之间的合作开展,目前已具备了简单且可快速部署的集成环境。瑞萨RX云互联解决方案开发团队开始提供即便在未直接与互联网连接的二级MCU中,也可以利用AWS IoT服务方案进行OTA固件升级的示例代码。

2022-05-24 -  原厂动态

【经验】RL78系列MCU应用技巧

全球首位的MCU供应商瑞萨,其MCU产品丰富多样。从简易的4bit到32bit各种资源,满足各行各业的需求。其中RL78系列应用最广泛。本文介绍RL78写在应用中经常碰到的问题及其解决办法。

2017-07-06 -  原厂动态

瑞萨与野火电子达成MCU生态战略合作伙伴关系,为本土用户提供瑞萨MCU全方位的生态服务

日前,知名开源硬件供应商野火电子正式成为全球半导体解决方案供应商瑞萨电子(Renesas)MCU生态战略合作伙伴,双方将携手合作为本土用户提供瑞萨MCU全方位的生态服务,让本土用户更轻松、容易使用瑞萨MCU,加速产品开发和上市。

2022-11-09 -  原厂动态

世强目前有代理riscv的mcu吗?

世强代理的RISC-V内核MCU厂家越来越多,还在不断增长。 国外厂家有瑞萨 【产品】瑞萨推出全新RISC-V MCU R9A02G020,优化先进电机控制系统设计和降低用户开发成本 国内厂家介绍如下: 广芯微内置32位RISC-V内核的PD SoC芯片UM3506,最高主频33MHz 全球首家全栈自研RISC-V内核的通讯接口芯片/全栈MCU供应商沁恒(WCH) RISC-V内核低功耗32位MCU,中移芯昇授权世强先进全线代理 芯昇科技携多款芯片产品亮相ICDIA,助力RISC-V生态发展 先楫半导体提供多系列通用MCU,以开源的RISC-V架构为核心,综合性能达世界领先水平 航顺芯片首次进入胡润全球独角兽榜,已量产中国第一颗M3+RISC-V多核MCU 中微半导体积极推动RISC-V架构安全化、智能化,共筑国产安全芯片生态 博流业界第一款基于RISC-V CPU的WI-FI+BLE双模SoC芯片,打造智慧家居AIoT芯片平台 璇玑CLE系列是核芯互联基于32位RISC-V内核推出的通用嵌入式MCU处理器 方寸微电子加入RISC-V产业联盟,推动安全芯片国产化,打破国外芯片技术垄断

2019-12-09 -  技术问答

【经验】CS+开发瑞萨MCU RH850的ADC+DMA调试指引

Renesas的RH850 F1K是汽车车身控制的首选MCU,由于高性能和安全性得到汽车客户认可,但由于开发资料有限,导致许多客户开发比较头痛。近期有客户在使用DMA的开发中遇到了问题,下面结合F1K的开发板实现ADC+DMA的驱动设计。

2022-07-21 -  设计经验

【经验】e2studio调试瑞萨MCU stack栈设置及查看

近期有客户使用e2studio调试瑞萨(Renesas)MCU时,需要查看栈的使用情况,通过软件找了一圈没有发现,感觉是没提供这个功能。其实e2studio是有的,本文介绍stack栈的调试窗调出。

2022-05-29 -  设计经验

RA系列MCU注入电流,防止损坏MCU应用笔记

本资料介绍了如何防止RA系列微控制器(MCU)因异常注入电流而损坏。内容包括推荐的注入电流条件、不同型号的参数限制以及额外的说明和建议,旨在指导用户在设计和应用过程中采取适当的措施以保护MCU免受损害。

RENESAS  -  MCU,单片机,RA FAMILY,RA4T1,RA6T2,RA6T1,RA6T3,RA4M1,RA2L1,RA4M3,RA6M1,RA4M2,RA6M3,RA6M2,RA6M5,RA2E1,RA6M4,RA4E1,RA2E2,RA6E1,RA2A1,RA4E2,RA6E2

Aug. 10, 2023  - 应用笔记或设计指南  - Rev.1.30

【经验】基于MCU CS+ RH850/F1K Boot开发指引

车载ECU开发都需要通过Boot实现在线升级,Boot是嵌在APP前面执行的程序,在需要更新APP代码时会对flash APP部分重新编程。近期有客户调试RH850/F1K MCU出现Boot跳到APP程序不能执行,下面以开发板为例实现Boot到APP。 ​

2023-02-15 -  设计经验

【经验】解析瑞萨RA家族MCU的主要区别及命名规则

​目前瑞萨电子(Renesas)已经发布的RA产品家族MCU主要包括四个系列即RA2系列、RA4系列和RA6系列,以及计划发布的RA8系列。有很多客户不了解RA家族处理器的主要区别和命名规则,本文讲详细讲解。

2022-04-20 -  设计经验

MCU工具与开发简介

本文介绍了Renesas的微控制器(MCU)工具和开发过程。内容涵盖Renesas MCU产品系列、评估和开发流程、工具和调试原理。文章详细介绍了RA、Synergy、RX和RL78系列MCU的特点和应用,以及相应的开发板、调试器和软件工具。此外,还介绍了软件调试的基本原则和调试过程中的注意事项。

RENESAS  -  BOARDS,闪存编程器,调试器,DEBUGGERS,FLASH PROGRAMMER,MCU,单片机,板,RX200,RX71M,RX23T,RX63N,RA4M1,RA4M3,RA6M1,RA4M2,RA6M3,RA6M2,RA6M5,RA2E1,RA6M4,RA4E1,RX23E-A,RA2E2,RA2A1,RA6E1,RX600,RX23W,RX63T,RX62N,RX630,RX113,RX631,RX66T,RA6T2,RX66N,RA6T1,RX230,RX110,RX231,RX671,G11,S124,RX111,G10,G13,RA2L1,RX62G,G12,G15,G14,G16,RL78/G11,G1A,I1A,G1G,RL78,RX634,G1F,RX62T,RX13T,G1M,RX621,RX65N,G1N,RX,RX220,RX660,G22,RX100,G24,G23,RX140,RL78/G23,EK-RA6M4,RX700,RX24T,RX651,RX72M,RX24U,RX72N,RA2,RX610,RA4,RX130,RX64M,RA6,RX210,L12,L13,RX21A,L1A,RA4W1,RX72T,L1C

2023/6/25  - 技术文档

【经验】关于瑞萨MCU RH850 C1M-A2的内存地址分配介绍

本文是关于瑞萨MCU RH850 C1M-A2的内存地址分配介绍,我们在设计瑞萨MCU RH850 C1M-A2的时候,对内存空间分布一定要有所了解。芯片内部flash和ram空间大小如下。

2023-02-03 -  设计经验

【经验】MCU RH850/F1K舵机PWM调试分享

PWM常常作为电机控制、舵机控制等使用,也是开发中最常用的控制方式。PWM实现需要使用定时器,RH850有非常多的定时器,并且可以配置很多通道,下面以瑞萨MCU RH850/F1K的TAUJ0定时器作为PWM定时器,实现PWM输出。

2023-02-07 -  设计经验

Single MCU Solution for Safety-Related Applications Using TrustZone

TrustZone® (TZ) technology often gets associated with safety-related applications, like protecting cryptographic keys or hardware resources from unauthorized exposure.

2023-08-24 -  应用方案

【经验】瑞萨RA系列MCU时钟系统解析

本文以瑞萨MCU RA6T2为例,如下XTAL是外接的主时钟,频率为8到24M范围内任意可选。连接到单片机的XTAL和EXTAL引脚,HOCO:是片上高速振荡器,他不可以随意设置,比如RA6T2,他的HOCO为16,18,20M三选一。

2023-03-26 -  设计经验

【经验】如何解决MCU RH850 C1MA2多核响应INTC2共享中断的问题

最近,有客户在调试瑞萨MCU RH850 C1MA2的多核响应中断的时候,发现中断不能正常响应的问题。具体情况是这样的,根据方案设计,部分中断响应需要通过不同的内核来并发响应中断,以提高MCU执行效率。

2023-05-09 -  设计经验
展开更多

电子商城

查看更多

品牌:RENESAS

品类:芯片

价格:¥54.1044

现货: 0

品牌:瑞纳捷

品类:高性能防复制加密芯片

价格:¥0.7000

现货: 1,234,500

品牌:瑞纳捷

品类:MCU

价格:¥0.5500

现货: 740,897

品牌:武汉芯源

品类:通用MCU

价格:¥8.4750

现货: 300,010

品牌:武汉芯源

品类:通用MCU

价格:¥7.0625

现货: 300,000

品牌:武汉芯源

品类:通用MCU

价格:¥7.6275

现货: 300,000

品牌:武汉芯源

品类:通用MCU

价格:¥4.8025

现货: 300,000

品牌:武汉芯源

品类:通用MCU

价格:¥4.8025

现货: 300,000

品牌:武汉芯源

品类:通用MCU

价格:¥7.6275

现货: 300,000

品牌:武汉芯源

品类:通用MCU

价格:¥7.0625

现货: 300,000

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

现货市场

查看更多

品牌:RENESAS

品类:MCU

价格:¥31.8593

现货:50

品牌:RENESAS

品类:开发工具

价格:¥1,278.8935

现货:3

品牌:RENESAS

品类:16-BIT MCU

价格:¥5.5190

现货:910,635

品牌:RENESAS

品类:MCU

价格:¥5.1500

现货:200,000

品牌:RENESAS

品类:MCU

价格:¥5.8041

现货:86,925

品牌:RENESAS

品类:32-BIT GENERAL MCU

价格:¥7.3800

现货:76,715

品牌:RENESAS

品类:32-BIT GENERAL MCU

价格:¥15.3000

现货:75,000

品牌:RENESAS

品类:32-BIT GENERAL MCU

价格:¥257.6400

现货:58,799

品牌:RENESAS

品类:芯片

价格:¥25.3732

现货:42,346

品牌:RENESAS

品类:MCU

价格:¥19.4999

现货:39,498

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

品牌:

品类:

价格:

现货:

服务

查看更多

TFT LCD液晶显示屏/模组定制

可定制显示屏的尺寸0.96”~15.6”,分辨率80*160~3840*2160,TN/IPS视角,支持RGB、MCU、SPI、MIPI、LVDS、HDMI接口,配套定制玻璃、背光、FPCA/PCBA。

最小起订量: 1000 提交需求>

IC烧录代工及IC自动化烧录

拥有IC烧录机20余款,100余台设备,可以烧录各种封装的IC;可烧录MCU、FLASH、EMMC、NAND FLASH、EPROM等各类型芯片,支持WIFI/BT模组PCBA烧录、测试。

最小起订量: 1 提交需求>

查看更多

授权代理品牌:接插件及结构件

查看更多

授权代理品牌:部件、组件及配件

查看更多

授权代理品牌:电源及模块

查看更多

授权代理品牌:电子材料

查看更多

授权代理品牌:仪器仪表及测试配组件

查看更多

授权代理品牌:电工工具及材料

查看更多

授权代理品牌:机械电子元件

查看更多

授权代理品牌:加工与定制

世强和原厂的技术专家将在一个工作日内解答,帮助您快速完成研发及采购。
我要提问

954668/400-830-1766(工作日 9:00-18:00)

service@sekorm.com

研发客服
商务客服
服务热线

联系我们

954668/400-830-1766(工作日 9:00-18:00)

service@sekorm.com

投诉与建议

E-mail:claim@sekorm.com

商务合作

E-mail:contact@sekorm.com

收藏
收藏当前页面