DEENESPTFRRUARHIKOZHNL

结构体 apext::com::secoc::FVContainer

[SWS_CM_11286] Upstream: RS_CM_00801, RS_CM_00802, RS_CM_00803, RS_CM_00804

struct FVContainer {...};

A container to hold the length of freshness value in bits and the freshness value itself

Header-Datei#include "apext/com/secoc/fvm.h"
Forwarding-Header#include "apext/com/com_fwd.h"
Scopenamespace apext::com::secoc

用户指南人工智能生成

用作在安全车载通信中传递新鲜度值及其位长度的数据容器。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: ecc01f4ad2a5 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用作在安全车载通信中传递新鲜度值及其位长度的数据容器。

结构 apext::com::secoc::FVContainer 在 Communication Management 模块中用作新鲜度值的传输容器,以保护车载通信 [SWS_CM_11286]。它在字段 length 中封装该值的位长度,并在字段 value 中将实际的新鲜度值封装为字节向量 [SWS_CM_11344]。根据使用上下文,该向量传输完整或截断的值;由于缺少内部同步机制,在并发情况下需要进行外部同步。

上下文

数据结构 apext::com::secoc::FVContainer 是 Communication Management 模块的平台扩展接口(Platform Extension Interfaces)的组成部分,并在头文件 apext/com/secoc/fvm.h 中声明 [SWS_CM_11286]。根据 AUTOSAR Adaptive Platform 架构,Platform Extension Interfaces 用于供车辆制造商(OEM)或集成商使用或实现,以使平台功能适于项目特定需求(AUTOSAR_AP_SWS_CommunicationManagement 第536页 §C “Platform Extension Interfaces”)。

在安全车载通信(Secure Onboard Communication,SecOC)中,apext::com::secoc::FVContainer 用作新鲜度值(Freshness Values)的标准化数据传输容器 [SWS_CM_11286]。该结构捆绑了两项相关联的信息:字段 length 中以位为单位的新鲜度值精确长度 [SWS_CM_11344],以及字段 value 中作为字节向量的新鲜度值原始数据 [SWS_CM_11345]。它在此充当 AUTOSAR Communication Management 与新鲜度值管理器(Freshness Value Manager,FVM)的制造商特定实现之间的直接接口。

FVContainerKontext secoc Communication Management (SecOC) fvm FVM Platform Extension (OEM / Integrator) secoc->fvm fordert Frischewert an container apext::com::secoc::FVContainer fvm->container 填充新鲜度值 container->secoc 传输新鲜度值和位长度

上下文图:FVContainer 作为 Communication Management 与 FVM 平台扩展之间的数据传输对象的嵌入情况。来源:[SWS_CM_11286],AUTOSAR_AP_SWS_CommunicationManagement 第536页 §C “Platform Extension Interfaces”。

生命周期

作为仅包含公共成员变量的 C++ 结构体(struct)[SWS_CM_11286],apext::com::secoc::FVContainer 遵循纯值对象的设计模式。根据新鲜度值是传递给方法还是作为返回值提供,调用方或被调用方会根据需要在栈上或堆中动态进行实例化 [SWS_CM_11345]。

实例的生命周期主要绑定到所包含的向量 ara::core::Vector<std::uint8_t> [SWS_CM_11345]。离开作用域时,为新鲜度值分配的所有内存资源都将被确定性地释放。复制和移动操作遵循类型 std::uint64_t [SWS_CM_11344] 和 ara::core::Vector [SWS_CM_11345] 的标准语义。该结构不具备内部同步机制;因此,跨线程边界的并发访问推测完全由使用组件负责(解读)。 问题 Q-24fe9a6468a61804 (未决)

使用路径

典型使用路径包括在交换新鲜度值以进行报文保护或校验时创建、初始化并随后评估容器。根据 apext::com::secoc::FVContainer 是用作方法参数还是返回值,向量 value 包含完整的新鲜度值或截断值(truncated value)[SWS_CM_11345]。

在校验或签名过程中,Communication Management 首先请求一个新鲜度值。Freshness Value Manager 实例化容器,在字段 length 中定义有效位长度 [SWS_CM_11344],并用字节值填充向量 value [SWS_CM_11345]。容器返回后,Communication Management 读取 length 和 value,其中位长度推测定义了精确边界,向量最后一个字节中未使用的填充位将被忽略(解读)。 问题 Q-c3cfaf1bae1ad3ac (未决)

通过 FVContainer 交换新鲜度值SecOCFVMFVContainerFrischewert anfordernInstanz erzeugen设置 length 和 value传递 FVContainer读取 length 和 value

时序图:通过 FVContainer 提供和评估新鲜度值的典型流程。来源:[SWS_CM_11286],[SWS_CM_11344],[SWS_CM_11345]。

本指南由 AI 基于 AUTOSAR Adaptive Platform R25-11 规范生成。

UML 类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G napext__com__secoc__FVContainer961 «struct» FVContainer + length + value

常量

length 变量

Length in bits of the freshness value passed in apext::com::secoc::FVContainer

value 变量

Vector of bytes containing the freshness value. Depending on whether the container is used as an input or returning value by the method it will contain either the full freshness or truncated values

常量 / 变量文档

变量 length [SWS_CM_11344] Upstream: RS_CM_00801, RS_CM_00802, RS_CM_00803, RS_CM_00804

std::uint64_t length;

Length in bits of the freshness value passed in apext::com::secoc::FVContainer

Header-Datei#include "apext/com/secoc/fvm.h"
Scopestruct apext::com::secoc::FVContainer
Symbollength
Typstd::uint64_t

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11344
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11344@rel:R25-11#773a0188
Content hash
773a0188
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11344
Status: valid/unmigrated Version: rel:R25-11#50503cf5 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11344@rel:R25-11#50503cf5
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#e0a446132026-09-30
  • R20-11rel:R20-11#c07b871d2026-10-14
  • R21-11rel:R21-11#42ad53442026-10-14
  • R22-11rel:R22-11#40885fce2026-10-14
  • R23-11rel:R23-11#2dbd8ee32026-10-14
  • R24-11rel:R24-11#50503cf52026-10-14
  • R25-11rel:R25-11#50503cf52026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

变量 value [SWS_CM_11345] Upstream: RS_CM_00801, RS_CM_00802, RS_CM_00803, RS_CM_00804

ara::core::Vector<std::uint8_t> value;

Vector of bytes containing the freshness value. Depending on whether the container is used as an input or returning value by the method it will contain either the full freshness or truncated values

Header-Datei#include "apext/com/secoc/fvm.h"
Scopestruct apext::com::secoc::FVContainer
Symbolvalue
Typara::core::Vector< std::uint8_t >

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CM_11345
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11345@rel:R25-11#f0812adc
Content hash
f0812adc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11345
Status: valid/unmigrated Version: rel:R25-11#484af49b Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CM_11345@rel:R25-11#484af49b
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#95736b9e2026-09-30
  • R20-11rel:R20-11#d2b561992026-10-14
  • R21-11rel:R21-11#a8f85f312026-10-14
  • R22-11rel:R22-11#aa4b8e492026-10-14
  • R23-11rel:R23-11#32ba4ae32026-10-14
  • R24-11rel:R24-11#484af49b2026-10-14
  • R25-11rel:R25-11#484af49b2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill