类 ara::crypto::cryp::MessageAuthnCodeCtx
[SWS_CRYPT_22100] Upstream: RS_CRYPTO_02203
class MessageAuthnCodeCtx : public CryptoContext {...};
Keyed Message Authentication Code Context interface definition.
Header-Datei #include "ara/crypto/cryp/message_authn_code_ctx.h" Forwarding-Header #include "ara/crypto/crypto_fwd.h" Scope namespace ara::crypto::cryp Basisklasse(n) CryptoContext
用户指南人工智能生成 用于基于密钥计算和验证加密 Message Authentication Code。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b9d1594d1774
来源
未决问题(1)
摘要 详细
用于基于密钥计算和验证加密 Message Authentication Code。
该接口支持对任意长度的消息进行基于密钥的 Message Authentication Code 计算和验证。在使用对称密钥通过 [SWS_CRYPT_22118] 初始化之后,MAC 摘要既可以在单步中处理,也可以在流式处理过程中通过启动、更新和完成调用来处理。随后可以检索生成的检查结果,或直接与期望值进行比对。所有方法均被指定为线程安全的,并通过符合 [SWS_CRYPT_22116] 的标准化返回值来指示错误流程或缓冲区容量不足。
更多 ›
本类指南基于针对 crypto 模块的 AUTOSAR Adaptive R25-11 规范。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__crypto__cryp__MessageAuthnCodeCtx845
MessageAuthnCodeCtx
+ Cancel()
+ Compare()
+ CompareSubspan()
+ Finish()
+ Generate()
+ GenerateSubspan()
+ GetDigest()
+ GetDigestSize()
+ GetMaximumChunkSize()
+ GetRecommendedIvSize()
+ SetKey()
+ Start()
+ Update()
+ Verify()
+ VerifySubspan()
nara__crypto__cryp__CryptoContext85
CryptoContext
nara__crypto__cryp__MessageAuthnCodeCtx845->nara__crypto__cryp__CryptoContext85
详细视图 此版本没有元素数据
方法 Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.
Compare the size and content of the calculated MAC digest against an expected value.
Compare the most significant bits of the calculated MAC digest against an expected value.
Finish the MAC calculation.
Calculate a MAC digest and write it to the provided output buffer.
Calculate a MAC digest and fill the provided output buffer with the beginning (MSB) of the calculated digest.
Write the calculated MAC digest into the provided output buffer.
Get the output digest size.
Get the maximum input buffer size supported for processing in single calls to Update() or Finish() by this context.
Get default expected size of the Initialization Vector (IV) or nonce, e.g., 12 bytes for GMAC, 0 bytes for CMAC.
Configure the context to use the provided key.
重载 SetKey 2 Initialize the context for a new MAC calculation and set an IV (e.g., used for GMAC)
重载 Start 2 Update the MAC calculation context by a new part of the message.
Calculate a MAC digest and compare the calculated MAC digest against an expected value.
Calculate a MAC digest and compare the most-significant bits of the calculated MAC digest against an expected value.
类型别名 Smart pointer of the interface.
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
virtual ara::core::Result < void > Cancel () noexcept=0;
Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 53954aee5980
来源
未决问题(1)
纯虚方法 Cancel 在接口 ara::crypto::cryp::MessageAuthnCodeCtx 中用于中止正在进行、先前通过 Start() 启动且尚未完成的流式操作 [SWS_CRYPT_50027] 。该调用为同步调用,不接受输入参数,成功时返回空的 ara::core::Result<void>,以确认操作已成功中止 [SWS_CRYPT_50027] 。
如果在调用之前未通过方法 Start() 正确启动数据处理,则执行失败。在这种情况下,该函数返回带有特定错误代码 ara::crypto::CryptoErrc::kProcessingNotStarted 的结果,同时确保回滚语义 [SWS_CRYPT_50027] 。关于执行安全性,该接口被规范为线程安全(thread-safe),并且由于被声明为 noexcept 且不抛出异常而保证异常安全性(exception safe)[SWS_CRYPT_50027] 。
加密模块的所有相关上下文接口共享针对尚未完成的流式处理的相同中止行为:
Interpretation:通过中止未完成的操作,上下文有望恢复到清理后的状态,从而允许稍后通过 Start() 重新初始化。 问题 Q-a8fa5cb85c3dab50 (未决)
本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。
实现者指南即将推出(复杂度 I1)
Rückgabewert
Typ Beschreibung ara::core::Result < void >an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error
Fehler
Status: valid/unmigrated
Version: rel:R25-11#c993fffd
Versionshistorie & Revisions (1 transition)
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_CRYPT_50027@rel:R25-11#c993fffd
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < bool > Compare (ReadOnlyMemRegion expected) const noexcept=0;
Compare the size and content of the calculated MAC digest against an expected value.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9af675c314c3
来源
使用
类 ara::crypto::cryp::MessageAuthnCodeCtx 的纯虚方法 Compare 用于将计算得出的消息验证码(MAC)的尺寸和内容与期望的摘要进行比对 [SWS_CRYPT_50133] 。期望的 MAC 摘要作为参数通过 ReadOnlyMemRegion expected 传递。该函数返回一个 ara::core::Result<bool>,若计算得出的 MAC 值与期望值完全匹配,则包含 true,否则包含 false [SWS_CRYPT_50133] 。
错误处理
在错误情况下,结果对象中会返回错误代码,此时适用回滚语义 [SWS_CRYPT_50133] :
ara::crypto::CryptoErrc::kProcessingNotFinished:在摘要计算此前未通过调用方法 Finish() 完成时报告 [SWS_CRYPT_50133] 。
ara::crypto::CryptoErrc::kInvalidInputSize:在传入的期望 MAC 摘要缓冲区大小不受上下文支持时发生 [SWS_CRYPT_50133] 。
并发性与限制
该方法声明为 const 以及 noexcept,且根据规范具有线程安全(thread-safe)和异常安全(exception safe)特性 [SWS_CRYPT_50133] 。一项基本前提条件是此前已通过 Finish() 成功完成摘要计算 [SWS_CRYPT_50133] 。
相互作用
与验证整个 MAC 摘要完全匹配的 Compare 不同 [SWS_CRYPT_50133] ,CompareSubspan 在相同上下文中仅将最高有效位(most significant bits)与期望值进行比较 [SWS_CRYPT_50028] 。对于非密钥哈希函数,在 ara::crypto::cryp::HashFunctionCtx 中存在同名的 Compare 函数 [SWS_CRYPT_50154] 。
本使用说明基于规范 R25-11 自动生成。
Parameter (in)
Parameter Beschreibung expected the expected MAC digest
Rückgabewert
Typ Beschreibung ara::core::Result < bool >true if the expected MAC value equals the calculated MAC value, false otherwise.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#0e62292d
Versionshistorie & Revisions (1 transition)
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_CRYPT_50133@rel:R25-11#0e62292d
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < bool > CompareSubspan (ReadOnlyMemRegion expected) const noexcept=0;
Compare the most significant bits of the calculated MAC digest against an expected value.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 4c36a4e7dbbc
来源
未决问题(1)
本使用说明基于 AUTOSAR R25-11 规范自动生成。
Parameter (in)
Parameter Beschreibung expected the expected MAC digest
Rückgabewert
Typ Beschreibung ara::core::Result < bool >true if the most-significant bits of the calculated MAC equal the expected byte sequence, false otherwise.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#e7ce513a
Versionshistorie & Revisions (1 transition)
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_CRYPT_50028@rel:R25-11#e7ce513a
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > Finish () noexcept=0;
Finish the MAC calculation.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9113df4242ca
来源
未决问题(1)
本使用说明基于 AUTOSAR R25-11 规范自动生成。
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#e646e46d
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_CRYPT_22115@rel:R25-11#e646e46d
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#7d2b83f62026-09-30 Inspect R20-11 rel:R20-11#a059cf072026-10-14 Inspect R21-11 rel:R21-11#760e02282026-10-14 Inspect R22-11 rel:R22-11#194848542026-10-14 Inspect R23-11 rel:R23-11#499debd32026-10-14 Inspect R24-11 rel:R24-11#d34af0022026-10-14 Inspect R25-11 rel:R25-11#e646e46d2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > Generate (ReadOnlyMemRegion data, ReadWriteMemRegion digest, ara::core::Optional < ReadOnlyMem Region > iv) const noexcept=0;
Calculate a MAC digest and write it to the provided output buffer.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1f27dd6e39dc
来源
未决问题(1)
根据 [SWS_CRYPT_50029] ,类 ara::crypto::cryp::MessageAuthnCodeCtx 的同步成员函数 Generate 用于在单步中计算 Message Authentication Code (MAC),并将计算出的摘要写入所提供的输出缓冲区中。
调用时需传入以下参数:
data:用于 MAC 计算的输入数据,作为 ReadOnlyMemRegion。
digest:类型为 ReadWriteMemRegion 的目标内存区域,摘要将写入其中。
iv:可选的初始化向量,作为 ara::core::Optional<ReadOnlyMemRegion>。
成功时,函数返回一个 ara::core::Result<std::size_t>,其中包含所写入 MAC 摘要的大小(以字节为单位)[SWS_CRYPT_50029] 。
如果发生错误,将返回具有回滚语义的错误代码 [SWS_CRYPT_50029] :
UninitializedContext:上下文尚未通过分配密钥进行初始化。
ara::crypto::CryptoErrc::kUsageViolation:所使用的密钥不具备所需的使用标志 kAllowMac。解释:合适的对称密钥应预先通过 GenerateSymmetricKey 生成并配置 [SWS_CRYPT_20721] 。 问题 Q-d22f397bbc02487b (未决)
ara::crypto::CryptoErrc::kEmptyKeySlot:配置的 KeySlot 当前为空。
ara::crypto::CryptoErrc::kUnsupported:不支持单次调用(Single-Call)处理,或初始化向量的指定不符合算法要求(缺少或无效指定的 IV)。
ara::crypto::CryptoErrc::kInvalidInputSize:不支持输入数据或 IV 的缓冲区大小。
ara::crypto::CryptoErrc::kInsufficientCapacity:目标缓冲区 digest 对于 MAC 摘要而言过小。
ara::crypto::CryptoErrc::kBusyResource:所需的系统资源被占用。
关于并发性,该方法被指定为 thread-safe 和 exception safe [SWS_CRYPT_50029] 。它被声明为 const noexcept,并在执行时不会改变上下文的状态。
本使用说明由系统自动生成,基于 R25-11 版本的 AUTOSAR Adaptive 规范。
Parameter (in)
Parameter Beschreibung data the input data for the MAC iv an optional initialization vector
Parameter (out)
Parameter Beschreibung digest an output data buffer that the MAC digest will be written into
Rückgabewert
Typ Beschreibung ara::core::Result <std::size_t >A result containing the size in bytes of the MAC digest or an error.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#66865bf3
Versionshistorie & Revisions (1 transition)
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_CRYPT_50029@rel:R25-11#66865bf3
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > GenerateSubspan (ReadOnlyMem Region data, ReadWriteMemRegion truncatedDigest, ara::core::Optional < ReadOnlyMemRegion > iv) const noexcept=0;
Calculate a MAC digest and fill the provided output buffer with the beginning (MSB) of the calculated digest.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9f5519d31718
来源
未决问题(1)
此文本由 AI 生成,仅供参考。一切以 AUTOSAR 官方规范为准。
Parameter (in)
Parameter Beschreibung data the input data for the MAC iv an optional initialization vector
Parameter (out)
Parameter Beschreibung truncatedDigest an output data buffer that the beginning of the MAC digest will be written into
Rückgabewert
Typ Beschreibung ara::core::Result <std::size_t >A result containing the size in bytes of the MAC digest or an error.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#10f782d6
Versionshistorie & Revisions (1 transition)
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_CRYPT_50030@rel:R25-11#10f782d6
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > GetDigest (ReadWriteMemRegion digest) const noexcept=0;
Write the calculated MAC digest into the provided output buffer.
Parameter (out)
Parameter Beschreibung digest an output data buffer that the MAC digest will be written into
Rückgabewert
Typ Beschreibung ara::core::Result <std::size_t >A result containing the size in bytes of the MAC digest or an error.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#0213970e
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_CRYPT_22116@rel:R25-11#0213970e
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#f62c871b2026-09-30 Inspect R20-11 rel:R20-11#97dd7dc32026-10-14 Inspect R21-11 rel:R21-11#73d2dfec2026-10-14 Inspect R22-11 rel:R22-11#086949e02026-10-14 Inspect R23-11 rel:R23-11#c0af69462026-10-14 Inspect R24-11 rel:R24-11#601580872026-10-14 Inspect R25-11 rel:R25-11#0213970e2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > GetDigestSize () const noexcept=0;
Get the output digest size.
Rückgabewert
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#2e6c359a
Versionshistorie & Revisions (1 transition)
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_CRYPT_50134@rel:R25-11#2e6c359a
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > GetMaximumChunkSize () const noexcept=0;
Get the maximum input buffer size supported for processing in single calls to Update() or Finish() by this context.
Rückgabewert
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#74ba2c5f
Versionshistorie & Revisions (1 transition)
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_CRYPT_50033@rel:R25-11#74ba2c5f
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < std::size_t > GetRecommendedIvSize () const noexcept=0;
Get default expected size of the Initialization Vector (IV) or nonce, e.g., 12 bytes for GMAC, 0 bytes for CMAC.
Rückgabewert
Fehler
Fehlercode Beschreibung This function does not specify any standardized errors.
Status: valid/unmigrated
Version: rel:R25-11#b1b43096
Versionshistorie & Revisions (1 transition)
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_CRYPT_50135@rel:R25-11#b1b43096
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > SetKey (SymmetricKey ::Sptr key) noexcept=0;
Configure the context to use the provided key.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: c93b5656f1ba
来源
方法 SetKey 使用提供的对称密钥配置 ara::crypto::cryp::MessageAuthnCodeCtx 的实例,以进行后续的 MAC 计算 [SWS_CRYPT_22118] 。调用同步进行,并将密钥对象作为智能指针 SymmetricKey::Sptr 接收。作为结果,该函数返回一个 ara::core::Result<void>,其在成功时为空,或在出错时封装特定的错误码 [SWS_CRYPT_22118] 。
如果赋值失败,将应用保留上下文先前状态的回滚语义 [SWS_CRYPT_22118] 。来自 ara::crypto::CryptoErrc 的以下错误状态已被规范:
关于执行安全性,该接口定义为 thread-safe 和 exception safe(带有 noexcept)[SWS_CRYPT_22118] 。在与密钥管理的交互中,它是基于槽的赋值的直接对应物:如果实现或用例支持使用持久化槽,则使用 KeySlot::Sptr 的重载作为替代 [SWS_CRYPT_50026] 。
本文由 AI 基于 AUTOSAR 规范 R25-11 生成。
实现者指南即将推出(复杂度 I2)
Parameter (in)
Parameter Beschreibung key symmetric key object used for MAC calculation
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#e40511f7
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_CRYPT_22118@rel:R25-11#e40511f7
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#c6787c932026-09-30 Inspect R20-11 rel:R20-11#02ea3abd2026-10-14 Inspect R21-11 rel:R21-11#a4675ce22026-10-14 Inspect R22-11 rel:R22-11#d5224dc92026-10-14 Inspect R23-11 rel:R23-11#5cceac172026-10-14 Inspect R24-11 rel:R24-11#6e177cb62026-10-14 Inspect R25-11 rel:R25-11#e40511f72026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > SetKey (KeySlot ::Sptr keySlot) noexcept=0;
Configure the context to use the key stored in the provided KeySlot at the time the MAC calculation is started.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0efaaf10920d
来源
未决问题(1)
本使用说明基于规范数据自动生成。
实现者指南即将推出(复杂度 I2)
Parameter (in)
Parameter Beschreibung keySlot a keyslot containing a symmetric key
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#3de24834
Versionshistorie & Revisions (1 transition)
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_CRYPT_50026@rel:R25-11#3de24834
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > Start (ReadOnlyMemRegion iv) noexcept=0;
Initialize the context for a new MAC calculation and set an IV (e.g., used for GMAC)
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 42d35ba25b44
来源
本使用说明由 AI 基于 AUTOSAR 规范 R25-11 生成。
实现者指南即将推出(复杂度 I1)
Parameter (in)
Parameter Beschreibung iv an Initialization Vector (IV) or "nonce" value
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#a5427060
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_CRYPT_22110@rel:R25-11#a5427060
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#ce38532b2026-09-30 Inspect R20-11 rel:R20-11#15ffee6c2026-10-14 Inspect R21-11 rel:R21-11#a3f8962f2026-10-14 Inspect R22-11 rel:R22-11#fad6ef962026-10-14 Inspect R23-11 rel:R23-11#765095392026-10-14 Inspect R24-11 rel:R24-11#55625d952026-10-14 Inspect R25-11 rel:R25-11#a54270602026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > Start () noexcept=0;
Initialize the context for a new MAC calculation.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 891e10477d9e
来源
未决问题(1)
本使用说明由 AI 系统基于 AUTOSAR 规范生成。
实现者指南即将推出(复杂度 I1)
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#7b2a29d5
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_CRYPT_22111@rel:R25-11#7b2a29d5
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#d8957c992026-09-30 Inspect R20-11 rel:R20-11#93def7c72026-10-14 Inspect R21-11 rel:R21-11#268430762026-10-14 Inspect R22-11 rel:R22-11#55642f832026-10-14 Inspect R23-11 rel:R23-11#8f849ff62026-10-14 Inspect R24-11 rel:R24-11#fa181e4f2026-10-14 Inspect R25-11 rel:R25-11#7b2a29d52026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < void > Update (ReadOnlyMemRegion data) noexcept=0;
Update the MAC calculation context by a new part of the message.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 017c756799dd
来源
未决问题(1)
此文本由 AI 基于 AUTOSAR 规范生成。
Parameter (in)
Parameter Beschreibung data a part of the input message that should be processed
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#36f72b69
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_CRYPT_22113@rel:R25-11#36f72b69
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#fa55dfba2026-09-30 Inspect R20-11 rel:R20-11#f6d1433b2026-10-14 Inspect R21-11 rel:R21-11#c608c8842026-10-14 Inspect R22-11 rel:R22-11#a558bc872026-10-14 Inspect R23-11 rel:R23-11#67ff09652026-10-14 Inspect R24-11 rel:R24-11#8f531e602026-10-14 Inspect R25-11 rel:R25-11#36f72b692026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < bool > Verify (ReadOnlyMemRegion data, Read OnlyMemRegion expected, ara::core::Optional < ReadOnlyMemRegion > iv) const noexcept=0;
Calculate a MAC digest and compare the calculated MAC digest against an expected value.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 7407e2d0a067
来源
未决问题(1)
使用
ara::crypto::cryp::MessageAuthnCodeCtx 中的方法 Verify ([SWS_CRYPT_50031] ) 用于通过输入缓冲区 data 同步计算 MAC 摘要,并将其直接与预期值 expected 进行比较。可选地可以通过 iv 传递初始化向量。函数返回一个 ara::core::Result<bool> 作为结果,如果计算出的 MAC 与预期的字节序列匹配,则包含 true,否则包含 false。
错误处理
如果验证由于系统或加密原因失败,该方法将返回一个包含相应错误代码的 ara::core::Result ([SWS_CRYPT_50031] ):
UninitializedContext:如果上下文事先未通过分配密钥进行初始化。
ara::crypto::CryptoErrc::kEmptyKeySlot:如果配置的 KeySlot 为空。
ara::crypto::CryptoErrc::kUsageViolation:如果密钥的允许用途不包含 kAllowMac。
ara::crypto::CryptoErrc::kInvalidInputSize:如果 data、expected 或 iv 的缓冲区大小不合法。
ara::crypto::CryptoErrc::kUnsupported:如果不支持单次调用(Single-Call)执行,或者提供 iv 不符合算法的要求。
ara::crypto::CryptoErrc::kBusyResource:发生资源冲突时。
并发性与交互
该方法被指定为 thread-safe 和 exception safe ([SWS_CRYPT_50031] )。发生错误时,回滚语义生效。与 ara::crypto::cryp::VerifierPublicCtx ([SWS_CRYPT_24112] , [SWS_CRYPT_50024] ) 中的非对称签名验证不同,Verify 操作于对称 MAC 上下文。单次调用中可处理的最大缓冲区大小——类似于签名校验器中的缓冲区查询 ([SWS_CRYPT_50025] )——大概受到上下文实现的限制。 问题 Q-51e7427e4e082881 (未决)
本文由 AI 基于 AUTOSAR 规范 R25-11 生成。
Parameter (in)
Parameter Beschreibung data the input data for the MAC expected the expected MAC digest iv an optional initialization vector
Rückgabewert
Typ Beschreibung ara::core::Result < bool >true if the calculated MAC equals the expected byte sequence, false otherwise.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#36679231
Versionshistorie & Revisions (1 transition)
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_CRYPT_50031@rel:R25-11#36679231
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
virtual ara::core::Result < bool > VerifySubspan (ReadOnlyMemRegion data, ReadOnlyMemRegion expected, ara::core::Optional < ReadOnlyMem Region > iv) const noexcept=0;
Calculate a MAC digest and compare the most-significant bits of the calculated MAC digest against an expected value.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: afcf3e6e2c9f
来源
本使用说明基于规范自动生成。
Parameter (in)
Parameter Beschreibung data the input data for the MAC expected the expected most significant bits of the MAC digest iv an optional initialization vector
Rückgabewert
Typ Beschreibung ara::core::Result < bool >true if the calculated MAC equals the expected byte sequence, false otherwise.
Fehler
Status: valid/unmigrated
Version: rel:R25-11#ff2bb246
Versionshistorie & Revisions (1 transition)
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_CRYPT_50032@rel:R25-11#ff2bb246
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R19-11
View Snapshot
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
类型别名文档
using Sptr = std::shared_ptr <MessageAuthnCodeCtx >;
Smart pointer of the interface.
Status: valid/unmigrated
Version: rel:R25-11#3fbb9742
Versionshistorie & Revisions (1 transition, 8 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_CRYPT_22101@rel:R25-11#3fbb9742
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#553114f32026-09-30 Inspect R19-11 rel:R19-11#2bb7b6d02026-10-14 Inspect R20-11 rel:R20-11#7e9953b02026-10-14 Inspect R21-11 rel:R21-11#7e9953b02026-10-14 Inspect R22-11 rel:R22-11#5e819bc12026-10-14 Inspect R23-11 rel:R23-11#6def4d652026-10-14 Inspect R24-11 rel:R24-11#6def4d652026-10-14 Inspect R25-11 rel:R25-11#3fbb97422026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
gemini-3.8-flash-low· 2026-10-13 · 德文原文