DEENESPTFRRUARHIKOZHNL

类 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"
Scopenamespace ara::crypto::cryp
Basisklasse(n)CryptoContext

用户指南人工智能生成

用于基于密钥计算和验证加密 Message Authentication Code。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b9d1594d1774 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用于基于密钥计算和验证加密 Message Authentication Code。

该接口支持对任意长度的消息进行基于密钥的 Message Authentication Code 计算和验证。在使用对称密钥通过 [SWS_CRYPT_22118] 初始化之后,MAC 摘要既可以在单步中处理,也可以在流式处理过程中通过启动、更新和完成调用来处理。随后可以检索生成的检查结果,或直接与期望值进行比对。所有方法均被指定为线程安全的,并通过符合 [SWS_CRYPT_22116] 的标准化返回值来指示错误流程或缓冲区容量不足。

上下文

接口 MessageAuthnCodeCtx 定义了用于生成和验证基于密钥的消息认证码(Message Authentication Code,MAC)的加密操作。它允许通过增量数据流以及单个连续内存块对任意数据量进行真实性和完整性检查。实例的管理通过所提供的智能指针类型 Sptr [SWS_CRYPT_22101] 进行。

调用的应用组件以及密钥对象作为核心交互伙伴出现。上下文既可以直接使用对称密钥对象 SymmetricKey [SWS_CRYPT_22118] 进行配置,也可以通过逻辑存储槽 KeySlot [SWS_CRYPT_50026] 进行配置。数据传递通过缓冲区结构进行,例如用于输入数据的 ReadOnlyMemRegion 以及用于已计算 MAC 摘要的 ReadWriteMemRegion。

生命周期

上下文实例经历从初始化到提供 MAC 结果的定义状态序列:

  • Uninitialized:创建之后,上下文尚不具备密钥,并拒绝计算调用。
  • Configured:通过使用密钥 [SWS_CRYPT_22118] 或密钥存储 [SWS_CRYPT_50026] 调用 SetKey(),上下文被初始化。在此状态下,可以执行单次调用方法或启动流式会话。
  • Processing:在不带初始化向量 [SWS_CRYPT_22111] 或带有 IV [SWS_CRYPT_22110] 的情况下调用 Start() 会开启流式处理。通过重复调用 Update() [SWS_CRYPT_22113] 来送入数据块。可以通过 Cancel() 进行中止 [SWS_CRYPT_50027]。
  • Finished:方法 Finish() [SWS_CRYPT_22115] 完成计算。随后可以查询或比较结果。

解释:完成或中止后,上下文大概率保持在已配置状态,并可重新用于新的操作。 问题 Q-b61229b77ae88ab0 (未决)该接口的所有方法均被指定为线程安全且异常安全的。

mac_states Uninitialized Uninitialized Configured Configured Uninitialized->Configured SetKey() Configured->Configured Generate() / Verify() Processing Processing Configured->Processing Start() Processing->Configured Cancel() Processing->Processing Update() Finished Finished Processing->Finished Finish() Finished->Processing Start() Finished->Finished GetDigest() / Compare()

状态图:MAC 上下文的生命周期与状态转换。来源:[SWS_CRYPT_22118]、[SWS_CRYPT_50026]、[SWS_CRYPT_22110]、[SWS_CRYPT_22111]、[SWS_CRYPT_22113]、[SWS_CRYPT_22115]、[SWS_CRYPT_50027]、[SWS_CRYPT_22116]、[SWS_CRYPT_50029]、[SWS_CRYPT_50031]

使用路径

该接口支持两种典型的使用路径:增量流式处理和单次调用处理。

在流式路径中,调用方首先通过 SetKey() [SWS_CRYPT_22118] 绑定密钥。在开始之前,可以通过 GetRecommendedIvSize() [SWS_CRYPT_50135] 查询算法参数(例如建议的 IV 大小),并通过 GetMaximumChunkSize() [SWS_CRYPT_50033] 查询最大分块大小。调用 Start() [SWS_CRYPT_22110] 之后,消息分片将通过 Update() 逐次处理 [SWS_CRYPT_22113]。一旦所有数据均已传递,Finish() 便完成计算 [SWS_CRYPT_22115]。生成的摘要随后通过 GetDigest() 复制到缓冲区中 [SWS_CRYPT_22116],该缓冲区的最小大小可预先通过 GetDigestSize() 确定 [SWS_CRYPT_50134]。或者,Compare() [SWS_CRYPT_50133] 或 CompareSubspan() [SWS_CRYPT_50028] 允许直接与预期的参考值进行比对。

消息认证码的流式计算应用MessageAuthnCodeCtxSetKey(key)Result<void>Start(iv)Result<void>loop针对每个数据块Update(chunk)Result<void>Finish()Result<void>GetDigest(digest)Result<size_t>

时序图:流式模式下增量 MAC 计算的流程。来源:[SWS_CRYPT_22118]、[SWS_CRYPT_22110]、[SWS_CRYPT_22113]、[SWS_CRYPT_22115]、[SWS_CRYPT_22116]

如果整条消息已经完整可用,则无需流式处理,可通过 Generate() [SWS_CRYPT_50029] 或截短方式通过 GenerateSubspan() [SWS_CRYPT_50030] 在单步中完成计算。对于验证,类似地提供了方法 Verify() [SWS_CRYPT_50031] 和 VerifySubspan() [SWS_CRYPT_50032]。

错误场景

错误通过返回类型 ara::core::Result 发出信号,并涵盖以下原因:

本类指南基于针对 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 函数

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

virtual ara::core::Result< void > Cancel () noexcept=0;
Compare 函数

Compare the size and content of the calculated MAC digest against an expected value.

virtual ara::core::Result< bool > Compare (ReadOnlyMemRegion expected) const noexcept=0;

Compare the most significant bits of the calculated MAC digest against an expected value.

virtual ara::core::Result< bool > CompareSubspan (ReadOnlyMemRegion expected) const noexcept=0;
Finish 函数

Finish the MAC calculation.

virtual ara::core::Result< void > Finish () noexcept=0;
Generate 函数

Calculate a MAC digest and write it to the provided output buffer.

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 fill the provided output buffer with the beginning (MSB) of the calculated digest.

virtual ara::core::Result< std::size_t > GenerateSubspan (ReadOnlyMem Region data, ReadWriteMemRegion truncatedDigest, ara::core::Optional< ReadOnlyMemRegion > iv) const noexcept=0;
GetDigest 函数

Write the calculated MAC digest into the provided output buffer.

virtual ara::core::Result< std::size_t > GetDigest (ReadWriteMemRegion digest) const noexcept=0;

Get the output digest size.

virtual ara::core::Result< std::size_t > GetDigestSize () const noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update() or Finish() by this context.

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;

Get default expected size of the Initialization Vector (IV) or nonce, e.g., 12 bytes for GMAC, 0 bytes for CMAC.

virtual ara::core::Result< std::size_t > GetRecommendedIvSize () const noexcept=0;
SetKey 函数 2

Configure the context to use the provided key.

重载 SetKey 2
virtual ara::core::Result< void > SetKey (SymmetricKey::Sptr key) noexcept=0; SWS_CRYPT_22118
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50026
Start 函数 2

Initialize the context for a new MAC calculation and set an IV (e.g., used for GMAC)

重载 Start 2
virtual ara::core::Result< void > Start (ReadOnlyMemRegion iv) noexcept=0; SWS_CRYPT_22110
virtual ara::core::Result< void > Start () noexcept=0; SWS_CRYPT_22111
Update 函数

Update the MAC calculation context by a new part of the message.

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;
Verify 函数

Calculate a MAC digest and compare the calculated MAC digest against an expected value.

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 most-significant bits of the calculated MAC digest against an expected value.

virtual ara::core::Result< bool > VerifySubspan (ReadOnlyMemRegion data, ReadOnlyMemRegion expected, ara::core::Optional< ReadOnlyMem Region > iv) const noexcept=0;

类型别名

Sptr 类型别名

Smart pointer of the interface.

方法文档

函数 Cancel [SWS_CRYPT_50027] Upstream: RS_CRYPTO_02302

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

纯虚方法 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)

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50027
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50027@rel:R25-11#6040546f
Content hash
6040546f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50027
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:
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

函数 Compare [SWS_CRYPT_50133] Upstream: RS_CRYPTO_02309

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 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 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 自动生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
expectedthe expected MAC digest

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the expected MAC value equals the calculated MAC value, false otherwise.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotFinishedrollback_semantics if the digest calculation was not finished by a call of the Finish() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the expected MAC digest is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50133@rel:R25-11#01c962f3
Content hash
01c962f3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50133
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:
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

函数 CompareSubspan [SWS_CRYPT_50028] Upstream: RS_CRYPTO_02309

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::crypto::cryp::MessageAuthnCodeCtx 的同步方法 CompareSubspan 将已计算 MAC 值的最高有效位(Most Significant Bits)与给定的参考值进行比对 [SWS_CRYPT_50028]。预期比较值通过参数 expected 作为 ReadOnlyMemRegion 传递 [SWS_CRYPT_50028]。结果作为 ara::core::Result<bool> 返回,并在最高有效位一致时包含 true,在出现偏差时包含 false [SWS_CRYPT_50028]。

错误处理与执行条件

为了进行有效比较,校验值的计算必须已完成。若之前未调用方法 Finish(),则调用失败并返回错误代码 ara::crypto::CryptoErrc::kProcessingNotFinished [SWS_CRYPT_50028]。若传递参数 expected 的缓冲区大小对于所使用的过程是不允许的,该方法将报告 ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_50028]。两种错误类型均保证回滚语义 [SWS_CRYPT_50028]。

并发性与执行上下文

该操作被指定为 noexcept(exception-safe)并归类为 thread-safe [SWS_CRYPT_50028]。解读:所声明的线程安全性很可能指的是在 Finish() 执行成功之后的状态,以便多个线程可以并行验证同一个已计算的摘要。 问题 Q-ac8b7ead6a5b508e (未决)

本使用说明基于 AUTOSAR R25-11 规范自动生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
expectedthe expected MAC digest

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the most-significant bits of the calculated MAC equal the expected byte sequence, false otherwise.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotFinishedrollback_semantics if the digest calculation was not finished by a call of the Finish() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the expected MAC digest is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50028
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50028@rel:R25-11#213e4f23
Content hash
213e4f23
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50028
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:
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

函数 Finish [SWS_CRYPT_22115] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

virtual ara::core::Result< void > Finish () noexcept=0;

Finish the MAC calculation.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9113df4242ca 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 Finish() 强制性完成接口 MessageAuthnCodeCtx 内正在进行的消息认证码(MAC)计算 [SWS_CRYPT_22115]。该调用同步执行,不接收任何参数,并返回 ara::core::Result<void>,在正常成功情况下表示一个空结果 [SWS_CRYPT_22115]。

如果发生错误,且 MAC 计算在调用前未成功启动,则该函数返回错误码 ara::crypto::CryptoErrc::kProcessingNotStarted;此时回滚语义生效 [SWS_CRYPT_22115]。该操作声明为 noexcept,并且根据规范指定为既是异常安全(exception safe)又是线程安全(thread-safe)[SWS_CRYPT_22115]。

在处理流程中,Finish() 构成了数据处理与评估之间的纽带:调用后,生成的 MAC 摘要可以通过 GetDigest() 传输到提供的缓冲区中 [SWS_CRYPT_22116],或者使用 CompareSubspan() 直接与参考值进行验证 [SWS_CRYPT_50028]。虽然 GetMaximumChunkSize() [SWS_CRYPT_50033] 通用描述了 Update() 或 Finish() 的缓冲区大小,但 Finish() 在此处并不直接处理数据;在需求中提及此项大概是反映了跨所有加密上下文的统一模式。 问题 Q-79b4f4ecf3998e48 (未决)

本使用说明基于 AUTOSAR R25-11 规范自动生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the MAC calculation has not been started successfully.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22115@rel:R25-11#11bf68ab
Content hash
11bf68ab
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22115
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#7d2b83f62026-09-30
  • R20-11rel:R20-11#a059cf072026-10-14
  • R21-11rel:R21-11#760e02282026-10-14
  • R22-11rel:R22-11#194848542026-10-14
  • R23-11rel:R23-11#499debd32026-10-14
  • R24-11rel:R24-11#d34af0022026-10-14
  • R25-11rel:R25-11#e646e46d2026-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

函数 Generate [SWS_CRYPT_50029] Upstream: RS_CRYPTO_02309

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

根据 [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 规范。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
datathe input data for the MAC
ivan optional initialization vector

Parameter (out)

ParameterBeschreibung
digestan output data buffer that the MAC digest will be written into

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the MAC digest or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call processing is not supported, or if the context requires setting an IV but no IV is provided, or if the context does not support setting an IV but an IV is provided
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data or IV is not supported
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50029
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50029@rel:R25-11#4c3e75bc
Content hash
4c3e75bc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50029
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:
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

函数 GenerateSubspan [SWS_CRYPT_50030] Upstream: RS_CRYPTO_02309

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::crypto::cryp::MessageAuthnCodeCtx 的方法 GenerateSubspan 在单步操作中计算输入数据 data 的消息认证码(MAC),并将计算出的摘要的起始部分(最高有效字节,MSB)写入输出缓冲区 truncatedDigest [SWS_CRYPT_50030]。如果需要,可以通过可选参数 iv 传递初始化向量 [SWS_CRYPT_50030]。直接返回 ara::core::Result<std::size_t> 可能表明是同步执行;成功执行时,返回写入的 MAC 摘要的字节数 [SWS_CRYPT_50030]。 问题 Q-167c6d44b9f39fed (未决)

规范为错误情况定义了回滚语义,并规定了以下错误码 [SWS_CRYPT_50030]:

  • UninitializedContext:上下文此前未通过分配密钥进行初始化 [SWS_CRYPT_50030]。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:配置的 KeySlot 当前为空 [SWS_CRYPT_50030]。
  • ara::crypto::CryptoErrc::kUsageViolation:密钥允许的用途不包含 kAllowMac [SWS_CRYPT_50030]。
  • ara::crypto::CryptoErrc::kUnsupported:单步处理不受支持,或者 IV 配置与上下文不匹配(缺少必需的 IV 或传入了不允许的 IV)[SWS_CRYPT_50030]。
  • ara::crypto::CryptoErrc::kInvalidInputSize:传入数据 data 或 iv 的大小不受支持 [SWS_CRYPT_50030]。
  • ara::crypto::CryptoErrc::kBusyResource:所需资源被占用 [SWS_CRYPT_50030]。

关于执行环境,该方法被指定为 thread-safe 并提供异常安全性(noexcept)[SWS_CRYPT_50030]。无错误调用的前提条件是事先在上下文中提供了具有相应权限的密钥 [SWS_CRYPT_50030]。

此文本由 AI 生成,仅供参考。一切以 AUTOSAR 官方规范为准。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
datathe input data for the MAC
ivan optional initialization vector

Parameter (out)

ParameterBeschreibung
truncatedDigestan output data buffer that the beginning of the MAC digest will be written into

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the MAC digest or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call processing is not supported, or if the context requires setting an IV but no IV is provided, or if the context does not support setting an IV but an IV is provided
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data or IV is not supported
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50030
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50030@rel:R25-11#6d294b83
Content hash
6d294b83
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50030
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:
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

函数 GetDigest [SWS_CRYPT_22116] Upstream: RS_CRYPTO_02203

virtual ara::core::Result< std::size_t > GetDigest (ReadWriteMemRegion digest) const noexcept=0;

Write the calculated MAC digest into the provided output buffer.

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (out)

ParameterBeschreibung
digestan output data buffer that the MAC digest will be written into

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the MAC digest or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotFinishedrollback_semantics if the MAC calculation was not finished by a call of the Finish() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22116@rel:R25-11#1c079e91
Content hash
1c079e91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22116
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#f62c871b2026-09-30
  • R20-11rel:R20-11#97dd7dc32026-10-14
  • R21-11rel:R21-11#73d2dfec2026-10-14
  • R22-11rel:R22-11#086949e02026-10-14
  • R23-11rel:R23-11#c0af69462026-10-14
  • R24-11rel:R24-11#601580872026-10-14
  • R25-11rel:R25-11#0213970e2026-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

函数 GetDigestSize [SWS_CRYPT_50134] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetDigestSize () const noexcept=0;

Get the output digest size.

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of the hash digest in bytes

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50134@rel:R25-11#29f90311
Content hash
29f90311
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50134
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:
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

函数 GetMaximumChunkSize [SWS_CRYPT_50033] Upstream: RS_CRYPTO_02309

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.

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the maximum buffer size in bytes

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50033
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50033@rel:R25-11#ecd0af08
Content hash
ecd0af08
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50033
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:
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

函数 GetRecommendedIvSize [SWS_CRYPT_50135] Upstream: RS_CRYPTO_02309

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.

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >default expected size of IV in bytes

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50135@rel:R25-11#b71ddc52
Content hash
b71ddc52
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50135
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:
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

函数 SetKey [SWS_CRYPT_22118] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 SetKey 使用提供的对称密钥配置 ara::crypto::cryp::MessageAuthnCodeCtx 的实例,以进行后续的 MAC 计算 [SWS_CRYPT_22118]。调用同步进行,并将密钥对象作为智能指针 SymmetricKey::Sptr 接收。作为结果,该函数返回一个 ara::core::Result<void>,其在成功时为空,或在出错时封装特定的错误码 [SWS_CRYPT_22118]。

如果赋值失败,将应用保留上下文先前状态的回滚语义 [SWS_CRYPT_22118]。来自 ara::crypto::CryptoErrc 的以下错误状态已被规范:

  • kUnsupported:上下文仅支持通过 KeySlot 绑定,而不支持通过直接密钥对象绑定 [SWS_CRYPT_22118]。
  • kIncompatibleObject:传入的对称密钥对象与目标上下文不兼容 [SWS_CRYPT_22118]。
  • kUsageViolation:密钥的权限标志不包含强制要求的用途 kAllowMac [SWS_CRYPT_22118]。

关于执行安全性,该接口定义为 thread-safe 和 exception safe(带有 noexcept)[SWS_CRYPT_22118]。在与密钥管理的交互中,它是基于槽的赋值的直接对应物:如果实现或用例支持使用持久化槽,则使用 KeySlot::Sptr 的重载作为替代 [SWS_CRYPT_50026]。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keysymmetric key object used for MAC calculation

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22118
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22118@rel:R25-11#010f1a5c
Content hash
010f1a5c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22118
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#c6787c932026-09-30
  • R20-11rel:R20-11#02ea3abd2026-10-14
  • R21-11rel:R21-11#a4675ce22026-10-14
  • R22-11rel:R22-11#d5224dc92026-10-14
  • R23-11rel:R23-11#5cceac172026-10-14
  • R24-11rel:R24-11#6e177cb62026-10-14
  • R25-11rel:R25-11#e40511f72026-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

函数 SetKey [SWS_CRYPT_50026] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 ara/crypto/cryp/message_authn_code_ctx.h 的接口 ara::crypto::cryp::MessageAuthnCodeCtx 的虚成员函数 SetKey 配置用于计算或验证消息认证码(MAC)的上下文 [SWS_CRYPT_50026]。作为参数,该同步方法接收一个持有对称密钥的类型为 KeySlot::Sptr 的智能指针 keySlot,并返回一个 ara::core::Result<void> [SWS_CRYPT_50026]。密钥的绑定在语义上是延迟的:保存在槽中的密钥仅在 MAC 计算实际启动时才会被采用 [SWS_CRYPT_50026]。解释:因此,在计算启动之前对槽内容的后续更新应该仍然有效。 问题 Q-d1886811d8af71e3 (未决)

并发性与执行安全性

该接口被定义为 noexcept,保证异常安全性(exception safe),并明确指定用于并发调用(thread-safe)[SWS_CRYPT_50026]。

错误处理与交互

在发生错误时,该方法保证严格的回滚语义,从而完全保留上下文的先前状态 [SWS_CRYPT_50026]。结果对象中可能出现以下错误代码:

  • ara::crypto::CryptoErrc::kIncompatibleObject:传入的 KeySlot 与该对称密钥上下文不兼容 [SWS_CRYPT_50026]。
  • ara::crypto::CryptoErrc::kUnsupported:上下文的具体实现不支持通过 KeySlot 进行设置 [SWS_CRYPT_50026]。在这种情况下,必须改用重载 SetKey(SymmetricKey::Sptr) 来直接传递密钥 [SWS_CRYPT_22118]。

本使用说明基于规范数据自动生成。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a symmetric key

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided keySlot is incompatible with this symmetric key context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a SymmetricKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50026
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50026@rel:R25-11#9689f717
Content hash
9689f717
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50026
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:
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

函数 Start [SWS_CRYPT_22110] Upstream: RS_CRYPTO_02302

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 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

ara::crypto::cryp::MessageAuthnCodeCtx 的方法 Start 为新的 MAC 计算初始化上下文,并通过参数 iv 设置初始化向量或 Nonce 值([SWS_CRYPT_22110])。例如,这适用于 GMAC 等算法([SWS_CRYPT_22110])。对于无需显式初始化向量的计算,可改用无参数重载 Start()([SWS_CRYPT_22111])。

用法与并发性

调用同步进行,并被指定为 thread-safe 以及 exception safe([SWS_CRYPT_22110])。调用成功后,可以通过 Update 逐次向上下文传递消息片段([SWS_CRYPT_22113])。如有需要,可通过 Cancel 中止正在进行但尚未完成的流式操作([SWS_CRYPT_50027])。

错误处理

该方法返回一个 ara::core::Result<void>,其在错误情况下具有回滚语义([SWS_CRYPT_22110])。可能的错误状态包括:

  • UninitializedContext:事先未向上下文分配密钥([SWS_CRYPT_22110])。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:配置的 KeySlot 为空([SWS_CRYPT_22110])。
  • ara::crypto::CryptoErrc::kUsageViolation:密钥的权限不包含 kAllowMac([SWS_CRYPT_22110])。
  • ara::crypto::CryptoErrc::kInvalidInputSize:不支持传入的 IV 大小([SWS_CRYPT_22110])。
  • ara::crypto::CryptoErrc::kUnsupported:算法或上下文不支持流式传输或设置 IV([SWS_CRYPT_22110])。
  • ara::crypto::CryptoErrc::kBusyResource:所需资源被占用([SWS_CRYPT_22110])。

本使用说明由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
ivan Initialization Vector (IV) or "nonce" value

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided IV is not supported
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm does not support setting an IV
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22110
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22110@rel:R25-11#32559c15
Content hash
32559c15
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22110
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#ce38532b2026-09-30
  • R20-11rel:R20-11#15ffee6c2026-10-14
  • R21-11rel:R21-11#a3f8962f2026-10-14
  • R22-11rel:R22-11#fad6ef962026-10-14
  • R23-11rel:R23-11#765095392026-10-14
  • R24-11rel:R24-11#55625d952026-10-14
  • R25-11rel:R25-11#a54270602026-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

函数 Start [SWS_CRYPT_22111] Upstream: RS_CRYPTO_02302

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

方法 Start() 初始化 ara::crypto::cryp::MessageAuthnCodeCtx 的实例以进行新的 MAC 计算 [SWS_CRYPT_22111]。该调用不接受任何参数并返回 ara::core::Result<void> [SWS_CRYPT_22111]。执行应为同步进行,因为直接提供了结果对象。 问题 Q-1e6e36f4ed1176d3 (未决)

错误处理与并发

如果在初始化过程中发生错误,回滚语义生效,并返回以下错误码之一 [SWS_CRYPT_22111]:

  • UninitializedContext:事先未向该上下文分配密钥 [SWS_CRYPT_22111]。
  • ara::crypto::CryptoErrc::kUnsupported:该上下文不支持流式处理,或该算法强制要求初始化向量(IV)[SWS_CRYPT_22111]。
  • ara::crypto::CryptoErrc::kBusyResource:所需资源被占用 [SWS_CRYPT_22111]。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:配置的 KeySlot 为空 [SWS_CRYPT_22111]。
  • ara::crypto::CryptoErrc::kUsageViolation:在未设置 kAllowMac 的情况下,该密钥不允许进行 MAC 计算 [SWS_CRYPT_22111]。

该函数被指定为线程安全且异常安全 (exception safe) [SWS_CRYPT_22111]。

流式处理流程中的配合

如果算法需要 IV(例如 GMAC),则必须改用重载 Start(ReadOnlyMemRegion iv) [SWS_CRYPT_22110]。成功调用后,可以通过 Update() 逐步传递消息数据 [SWS_CRYPT_22113]。尚未完成的流式操作可以通过 Cancel() 放弃 [SWS_CRYPT_50027]。

本使用说明由 AI 系统基于 AUTOSAR 规范生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm requires setting an IV
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22111
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22111@rel:R25-11#0d36b333
Content hash
0d36b333
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22111
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#d8957c992026-09-30
  • R20-11rel:R20-11#93def7c72026-10-14
  • R21-11rel:R21-11#268430762026-10-14
  • R22-11rel:R22-11#55642f832026-10-14
  • R23-11rel:R23-11#8f849ff62026-10-14
  • R24-11rel:R24-11#fa181e4f2026-10-14
  • R25-11rel:R25-11#7b2a29d52026-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

函数 Update [SWS_CRYPT_22113] Upstream: RS_CRYPTO_02302

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

上下文 ara::crypto::cryp::MessageAuthnCodeCtx 的同步方法 Update 用于通过输入消息的另一个片段来补充正在进行的消息验证码(MAC)计算 [SWS_CRYPT_22113]。要处理的数据段通过参数 data 以 ReadOnlyMemRegion 的形式传递。作为返回值,该函数提供一个 ara::core::Result<void>,其要么确认成功的中间步骤,要么在出错时提供有关错误原因的信息 [SWS_CRYPT_22113]。

错误处理与并发

在出错时保证回滚语义,从而使先前的计算状态保持不变 [SWS_CRYPT_22113]。可能的错误原因包括:

  • ara::crypto::CryptoErrc::kProcessingNotStarted:事先未通过调用方法 Start() 初始化计算 [SWS_CRYPT_22113]。
  • ara::crypto::CryptoErrc::kInvalidInputSize:上下文不支持所传递数据块的大小 [SWS_CRYPT_22113]。

该方法被声明为 noexcept,并被指定为线程安全且异常安全(exception safe)[SWS_CRYPT_22113]。

相互作用

为了避免出现 ara::crypto::CryptoErrc::kInvalidInputSize 的缓冲区错误,可事先通过方法 GetMaximumChunkSize() 查询单个调用允许的最大输入大小 [SWS_CRYPT_50033]。在相继处理完所有消息部分后,按照推测,MAC 标记的计算通常很可能会通过方法 Finish() 完成 [SWS_CRYPT_50033]。 问题 Q-7f8eaf8ebbf30d55 (未决)

此文本由 AI 基于 AUTOSAR 规范生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
dataa part of the input message that should be processed

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the digest calculation was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22113@rel:R25-11#16d3db28
Content hash
16d3db28
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22113
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:
Recorded Revisions (7):
  • R25-11rel:R25-11#fa55dfba2026-09-30
  • R20-11rel:R20-11#f6d1433b2026-10-14
  • R21-11rel:R21-11#c608c8842026-10-14
  • R22-11rel:R22-11#a558bc872026-10-14
  • R23-11rel:R23-11#67ff09652026-10-14
  • R24-11rel:R24-11#8f531e602026-10-14
  • R25-11rel:R25-11#36f72b692026-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

函数 Verify [SWS_CRYPT_50031] Upstream: RS_CRYPTO_02309

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)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

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 生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
datathe input data for the MAC
expectedthe expected MAC digest
ivan optional initialization vector

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the calculated MAC equals the expected byte sequence, false otherwise.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call operation is not supported, or if the context requires setting an IV but no IV is provided, or if the context does not support setting an IV but an IV is provided
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the provided data, expected digest or IV is not supported
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50031
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50031@rel:R25-11#17f3498e
Content hash
17f3498e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50031
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:
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

函数 VerifySubspan [SWS_CRYPT_50032] Upstream: RS_CRYPTO_02309

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 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::crypto::cryp::MessageAuthnCodeCtx 的方法 VerifySubspan 用于同步计算 MAC 摘要并随后将其最高有效位与预期的字节序列进行比较 [SWS_CRYPT_50032]。它通过 data 处理输入数据,通过 expected 处理预期的前导位,并通过 iv 处理可选的初始化向量 [SWS_CRYPT_50032]。结果作为 ara::core::Result<bool> 返回,匹配成功时指示 true,否则指示 false [SWS_CRYPT_50032]。

该接口被指定为 noexcept,具有 exception safe 以及 thread-safe,并在发生错误时应用回滚语义 [SWS_CRYPT_50032]。失败的调用会在返回值中提供特定的错误码 [SWS_CRYPT_50032]:

  • UninitializedContext:先前未通过分配密钥对上下文进行初始化[SWS_CRYPT_50032]。
  • ara::crypto::CryptoErrc::kUsageViolation:密钥的允许用途不包含 kAllowMac [SWS_CRYPT_50032]。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:配置的 KeySlot 当前为空 [SWS_CRYPT_50032]。
  • ara::crypto::CryptoErrc::kInvalidInputSize:不支持传入数据、预期校验值或 IV 的大小[SWS_CRYPT_50032]。
  • ara::crypto::CryptoErrc::kUnsupported:不支持单次调用(Single-Call)操作,或者提供 IV 与上下文的要求相冲突[SWS_CRYPT_50032]。
  • ara::crypto::CryptoErrc::kBusyResource:所需资源被占用 [SWS_CRYPT_50032]。

本使用说明基于规范自动生成。

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
datathe input data for the MAC
expectedthe expected most significant bits of the MAC digest
ivan optional initialization vector

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the calculated MAC equals the expected byte sequence, false otherwise.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call operation is not supported, or if the context requires setting an IV but no IV is provided, or if the context does not support setting an IV but an IV is provided
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the provided data, expected digest or IV is not supported
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowMac

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50032
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50032@rel:R25-11#63e13a7a
Content hash
63e13a7a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50032
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:
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

类型别名文档

类型别名 Sptr [SWS_CRYPT_22101] Upstream: RS_CRYPTO_02203

using Sptr = std::shared_ptr<MessageAuthnCodeCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/message_authn_code_ctx.h"
Scopeclass ara::crypto::cryp::MessageAuthnCodeCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22101@rel:R25-11#aa721d6b
Content hash
aa721d6b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22101
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:
Recorded Revisions (8):
  • R25-11rel:R25-11#553114f32026-09-30
  • R19-11rel:R19-11#2bb7b6d02026-10-14
  • R20-11rel:R20-11#7e9953b02026-10-14
  • R21-11rel:R21-11#7e9953b02026-10-14
  • R22-11rel:R22-11#5e819bc12026-10-14
  • R23-11rel:R23-11#6def4d652026-10-14
  • R24-11rel:R24-11#6def4d652026-10-14
  • R25-11rel:R25-11#3fbb97422026-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