AUTOSAR|AUTOSAR SecOC Introduction -- Part 2
Encryption & Validation Flow
文章图片
Encryption 主要分为如下几步
- 传输Authentic I-PDU
- 获取SecOC ID
- 获取Freshness Value
- 获取Key
- 构建Authentication data
- 生成MAC
- 构建Secured I-PDU
Authentic I -PDU (Including Message Link)
Truncated FV| Truncated MAC | Message Link
因为一个Secured I-PDU 已经被拆分成2帧报文进行发送,通过比较所包含的Message Link来判断这两帧报文是由同一Secured I-PDU拆分而来
Validation 主要分为如下几步
- 收到的Secured I-PDU
- 获取SecOC ID
- 构建FV
- 构建 Authentication data
- 获取Key
- 验证MAC
- 比较MAC
文章图片
Data Transmission Flow
文章图片
App Transmission
文章图片
1.For each transmission request of an Authentic I-PDU, the upper layer communication module shall call the PduR module through PduR_
2. The PduR routes this request to the SecOC module and calls SecOC_[If|Tp]Transmit.
3. The SecOC module copies the Authentic I-PDU to its own memory and returns.
4.During the next scheduled call of its main function, the SecOC module creates the Secured I-PDU by calculating the Authentication Information and initiates the transmission of the Secured I-PDU by notifying the respective lower layer module via the PduR module.
5. Thereafter, the SecOC module takes the role of an upper layer communication module and thus serves all lower layer requests to provide information on or to copy data of the Secured I-PDU.
6. Finally, the confirmation of the successful or unsuccessful transmission of the Secured I-PDU are provided to the upper layer communication module as confirmation of the successful or unsuccessful transmission of the Authentic I-PDU
TP Transmission
文章图片
App Reception
文章图片
1. For each indication of an incoming Secured I-PDU from a lower layer bus interface or transport protocol module, the SecOC module takes the role of an upper layer communication module and thus serves all lower layer requests that are necessary to receive the complete Secured I-PDU.
2. The SecOC module copies the Secured I-PDU into its own memory.
3. Thereafter, when the complete Secured I-PDU is available and during the next scheduled call of its main function, the SecOC module verifies the contents of the Secured I-PDU according
4. If the verification fails and the parameter SecOcIgnoreVerificationResult is configured to FALSE, the SecOC module drops the Secured I-PDU.
5. If the verification succeeds or the verification fails and the parameter SecOcIgnoreVerificationResult is configured to TRUE, the SecOC module takes the role of a lower layer communication module and calls PduR_SecOC[If|Tp]RxIndication for the Authentic I-PDU.
6. The SecOC reports the verification results
TP Reception
文章图片
Freshness Handling
文章图片
【AUTOSAR|AUTOSAR SecOC Introduction -- Part 2】
推荐阅读
- 人工智能|hugginface-introduction 案例介绍
- introduction
- 数学思维导论(一) Introduction to Mathematical Thinking 什么是数学(为什么要学习数学?)
- OpenGL Programming Guide- Red Book 例子程序库 -系列- 2-Introduction to OpenGL-Part2
- OpenGL Programming Guide- Red Book 例子程序库 -系列- 1-Introduction to OpenGL-Part1
- 安卓中的Model-View-Presenter模式介绍[Introduction to Model View Presenter on Android]
- CS224n——1(Introduction and Word Vectors笔记)
- ECMA-262|ECMA-262 Introduction (简介)
- SecoClient接收返回码超时
- CSE 102图论