DEENESPTFRRUARHIKOZHNL

类 ara::crypto::cryp::KeyDerivationFunctionCtx

[SWS_CRYPT_21500] Upstream: RS_CRYPTO_02103

class KeyDerivationFunctionCtx :               public CryptoContext {...};

Key Derivation Function interface.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp
Basisklasse(n)CryptoContext

用户指南人工智能生成

安全地从基础密钥和可配置上下文参数中派生对称密钥。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0339805a1afd 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

安全地从基础密钥和可配置上下文参数中派生对称密钥。

接口 ara::crypto::cryp::KeyDerivationFunctionCtx 用于从现有密钥材料和可配置上下文参数(例如 Salt 或计数器)派生新的对称密钥 [SWS_CRYPT_21515]。在使用 DeriveKey 生成密钥之前,必须通过 SetKey 使用密钥或 KeySlot 初始化上下文,并可选地通过 SetParameter 进行配置 [SWS_CRYPT_21525]。作为关键安全条件,仅当源密钥材料显式被授权用于 KDF 操作,且目标密钥所需的用法标志兼容时,才允许进行派生。

上下文

类 ara::crypto::cryp::KeyDerivationFunctionCtx 在 AUTOSAR Adaptive 的加密模块中提供密钥派生函数(Key Derivation Function,KDF)的接口。其主要任务是从给定的密钥材料和可配置上下文参数派生新的对称密钥 [SWS_CRYPT_21515]。

典型的交互伙伴包括调用应用服务、形式为 SymmetricKey [SWS_CRYPT_21525] 或 KeySlot [SWS_CRYPT_50010] 的底层源材料,以及形式为新 SymmetricKey::Sptr [SWS_CRYPT_21515] 的派生结果。额外的加密参数可以作为内存区域、整数或辅助密钥传递 [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009]。

生命周期

实例的生命周期和所有权通过类型化智能指针 ara::crypto::cryp::KeyDerivationFunctionCtx::Sptr 进行控制 [SWS_CRYPT_21501]。具体实现实例的创建可能通过专门的 Factory 或负责的 CryptoProvider 进行,因为该类定义了纯虚接口。 问题 Q-8ba3d498c9921ab1 (未决)

新创建的上下文最初处于未完成状态。只有在通过 SetKey [SWS_CRYPT_21525] [SWS_CRYPT_50010] 成功分配密钥并由 SetParameter [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009] 设置所需的 KDF 参数后,上下文才准备好进行计算。关于并发性,接口方法被声明为线程安全且异常安全([SWS_CRYPT_21515],[SWS_CRYPT_21525],[SWS_CRYPT_50007])。

使用路径

密钥派生的典型调用顺序包括三个连续阶段:

  1. 分配基础密钥:通过 SetKey 配置初始密钥材料。在此可以传递现有密钥对象(SymmetricKey::Sptr)[SWS_CRYPT_21525] 或持久密钥存储槽位(KeySlot::Sptr)[SWS_CRYPT_50010]。
  2. 配置上下文参数:KDF 特定值(如 Salt、初始化向量或迭代计数器)通过 SetParameter 定义。支持内存缓冲区(ReadOnlyMemRegion)[SWS_CRYPT_50007]、64 位整数(std::uint64_t)[SWS_CRYPT_50008] 和额外的对称密钥(SymmetricKey::Sptr)[SWS_CRYPT_50009]。
  3. 派生目标密钥:调用 DeriveKey 会执行密码学计算 [SWS_CRYPT_21515]。该方法需要目标算法标识符(AlgId)以及允许的使用标志(AllowedUsageFlags),并在成功时返回一个 SymmetricKey::Sptr。
使用 KeyDerivationFunctionCtx 进行密钥派生的流程应用KeyDerivationFunctionCtxSymmetricKeySetKey(key)Result<void>SetParameter("salt", saltValue)Result<void>DeriveKey(targetAlgId, allowedUsage)生成派生密钥Result<SymmetricKey::Sptr>

序列图:通过 KeyDerivationFunctionCtx 派生对称密钥的典型调用顺序。来源:[SWS_CRYPT_21525]、[SWS_CRYPT_50007]、[SWS_CRYPT_21515]。

错误场景

接口方法使用定义的错误码通过 ara::core::Result 发送错误信号:

  • 不完整初始化:如果在没有充分配置的情况下调用 DeriveKey,则调用将失败并返回 ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_21515]。如果分配的 KeySlot 在执行时为空,则会报告 ara::crypto::CryptoErrc::kEmptyKeySlot [SWS_CRYPT_21515]。
  • 违反使用权限:源密钥必须允许操作 kAllowKeyDerivation,否则将引发 ara::crypto::CryptoErrc::kUsageViolation([SWS_CRYPT_21525]、[SWS_CRYPT_21515]、[SWS_CRYPT_50009])。如果目标包含 kAllowPlaintextExport,则源密钥还必须具有 kAllowDerivedPlaintextExport,否则同样会导致 kUsageViolation [SWS_CRYPT_21515]。
  • 不兼容性与无效参数:不支持的目标算法返回 UnknownIdentifier,相互不兼容的使用标志会产生 ara::crypto::CryptoErrc::kIncompatibleArguments [SWS_CRYPT_21515]。对于与上下文不匹配的密钥对象或 KeySlots,SetKey 返回 ara::crypto::CryptoErrc::kIncompatibleObject([SWS_CRYPT_21525]、[SWS_CRYPT_50010])。无效的参数值会导致 ara::crypto::CryptoErrc::kInvalidArgument([SWS_CRYPT_50007]、[SWS_CRYPT_50008])。
  • 不支持的接口函数:如果具体实现仅支持 KeySlot 或仅支持 SymmetricKey,则对另一个的 SetKey 调用会导致 ara::crypto::CryptoErrc::kUnsupported([SWS_CRYPT_21525]、[SWS_CRYPT_50010])。SetParameter 中未知的参数名称同样会产生 kUnsupported([SWS_CRYPT_50007]、[SWS_CRYPT_50008]、[SWS_CRYPT_50009])。
  • 资源冲突:如果计算所需的加密资源被阻塞,DeriveKey 会发出错误码 ara::crypto::CryptoErrc::kBusyResource 的信号 [SWS_CRYPT_21515]。

本指南由 AI 整理。所有技术陈述均完全基于 AUTOSAR Adaptive 规范(Release R25-11)。

成员图

类图

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

G nara__crypto__cryp__KeyDerivationFunctionCtx485 KeyDerivationFunctionCtx + DeriveKey() + SetKey() + SetParameter() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__KeyDerivationFunctionCtx485->nara__crypto__cryp__CryptoContext85

详细视图

请在大纲中选择一个条目。

方法

DeriveKey 函数

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) 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_21525
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50010
SetParameter 函数 3

Set a parameter of the KDF identified by parameterName.

重载 SetParameter 3
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0; SWS_CRYPT_50007
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0; SWS_CRYPT_50008
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, SymmetricKey::Sptr value) noexcept=0; SWS_CRYPT_50009

类型别名

Sptr 类型别名

Smart pointer of the interface.

方法文档

函数 DeriveKey [SWS_CRYPT_21515] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) const noexcept=0;

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

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

类 ara::crypto::cryp::KeyDerivationFunctionCtx 的方法 DeriveKey 根据现有密钥材料以及上下文中存储的参数(如盐值、初始化向量 (IV) 或迭代计数器)同步派生新的对称密钥 [SWS_CRYPT_21515]。

使用

调用时,通过 targetAlgId 传递所需加密算法的标识符,并通过 allowedUsage 传递允许的使用标志 [SWS_CRYPT_21515]。作为返回值,该函数同步提供一个 ara::core::Result<SymmetricKey::Sptr>,其在成功执行时提供指向生成的对称密钥对象的智能指针 [SWS_CRYPT_21515]。

错误处理

如果密钥生成失败,该函数保证回滚语义并在 ara::core::Result 中返回相应的错误码 [SWS_CRYPT_21515]:

  • UnknownIdentifier:为 targetAlgId 传入的值不受支持时报告 [SWS_CRYPT_21515]。
  • ara::crypto::CryptoErrc::kIncompatibleArguments:当 allowedUsage 中指定的使用标志与目标算法不兼容时发生 [SWS_CRYPT_21515]。
  • ara::crypto::CryptoErrc::kUninitializedContext:在密钥派生之前上下文未充分初始化 [SWS_CRYPT_21515]。
  • ara::crypto::CryptoErrc::kBusyResource:密钥派生所需的资源被占用 [SWS_CRYPT_21515]。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:为该操作配置的 KeySlot 当前为空 [SWS_CRYPT_21515]。
  • ara::crypto::CryptoErrc::kUsageViolation:当源密钥的使用权限不包含 kAllowKeyDerivation,或者当目标需要 kAllowPlaintextExport 但源不允许 kAllowDerivedPlaintextExport 时发生 [SWS_CRYPT_21515]。

并发性与执行上下文

该方法被指定为 noexcept,提供异常安全(exception safe),并针对并发调用设计为 thread-safe [SWS_CRYPT_21515]。

此使用说明自动生成,且完全基于 AUTOSAR R25-11 的规范数据。

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

Parameter (in)

ParameterBeschreibung
targetAlgIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed usages in which the target key can be used.

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created symmetric key object or an error

Fehler

FehlercodeBeschreibung
UnknownIdentifierif targetAlgId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage of the derived key is incompatible with the targetAlgId.
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context has not been sufficiently initialized
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 source key does not include kAllowKey Derivation
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowedUsage of the target key includes kAllowPlaintext Export but the allowed usage of the source key does not include k AllowDerivedPlaintextExport

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21515
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21515@rel:R25-11#8f725bdb
Content hash
8f725bdb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21515
Status: valid/unmigrated Version: rel:R25-11#9b38f620 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_21515@rel:R25-11#9b38f620
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4792442a2026-09-30
  • R19-11rel:R19-11#d747dcdf2026-10-14
  • R20-11rel:R20-11#20ca9f5b2026-10-14
  • R21-11rel:R21-11#4e7c875e2026-10-14
  • R22-11rel:R22-11#1edafd582026-10-14
  • R23-11rel:R23-11#09e184cc2026-10-14
  • R24-11rel:R24-11#f4962bb42026-10-14
  • R25-11rel:R25-11#9b38f6202026-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_21525] 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 · 温度: 不可控 · 提示词: 3738ec7c9403 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

方法 SetKey 用于使用作为 key 提供的对称密钥材料配置 KeyDerivationFunctionCtx [SWS_CRYPT_21525]。该函数同步执行,并通过返回类型 ara::core::Result<void> 指示操作结果 [SWS_CRYPT_21525]。

并发性与执行安全性

该接口带有说明符 noexcept,并被归类为 exception-safe [SWS_CRYPT_21525]。此外,执行被指定为 thread-safe,因此在并发环境中调用也可以安全进行 [SWS_CRYPT_21525]。

错误处理

在发生错误时,不会返回空的成功状态,而是返回相应的错误码,且为所有错误情况定义了回滚语义 [SWS_CRYPT_21525]:

  • ara::crypto::CryptoErrc::kIncompatibleObject:传递的密钥对象与对称上下文不兼容 [SWS_CRYPT_21525]。
  • ara::crypto::CryptoErrc::kUsageViolation:密钥所允许的用途不包含权限 kAllowKey Derivation [SWS_CRYPT_21525]。
  • ara::crypto::CryptoErrc::kUnsupported:具体上下文仅支持通过 KeySlot 进行分配 [SWS_CRYPT_21525]。

相互作用

如果底层上下文实现不支持直接分配 SymmetricKey::Sptr,或者密钥应改为仅在密钥派生时从存储槽获取,则可以使用带 KeySlot::Sptr 的 SetKey 替代重载 [SWS_CRYPT_50010]。

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

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

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

Parameter (in)

ParameterBeschreibung
keythe source key-material

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21525
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21525@rel:R25-11#e56a6a99
Content hash
e56a6a99
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21525
Status: valid/unmigrated Version: rel:R25-11#eca8e8d8 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_21525@rel:R25-11#eca8e8d8
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a05f5b632026-09-30
  • R20-11rel:R20-11#33ea902d2026-10-14
  • R21-11rel:R21-11#46a880c32026-10-14
  • R22-11rel:R22-11#fed116fd2026-10-14
  • R23-11rel:R23-11#3143ac902026-10-14
  • R24-11rel:R24-11#db6fdd502026-10-14
  • R25-11rel:R25-11#eca8e8d82026-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_50010] 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 key derivation is performed.

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

一旦执行密钥派生,虚方法 SetKey 就会配置上下文 KeyDerivationFunctionCtx,以使用存储在传入的 KeySlot 中的密钥 [SWS_CRYPT_50010]。作为参数,该函数接收一个智能指针 KeySlot::Sptr,该指针引用包含对称密钥的槽 [SWS_CRYPT_50010]。

该调用同步进行,并被指定为异常安全(exception safe)且非抛出(noexcept)[SWS_CRYPT_50010]。该函数返回一个 ara::core::Result<void>,成功时该对象为空,出错时封装相应的错误代码 [SWS_CRYPT_50010]。如果发生错误,将通过回滚语义保留先前的状态 [SWS_CRYPT_50010]:

  • ara::crypto::CryptoErrc::kIncompatibleObject:如果提供的 keySlot 与当前上下文不兼容,则返回 [SWS_CRYPT_50010]。
  • ara::crypto::CryptoErrc::kUnsupported:如果具体上下文仅支持设置 SymmetricKey,则发生 [SWS_CRYPT_50010]。

对于来自多个线程的并发访问,该方法被指明为线程安全(thread-safe)[SWS_CRYPT_50010]。在相互作用方面,该操作可作为 SetKey 与 SymmetricKey::Sptr 重载的备选项,后者直接接收密钥材料而不是槽引用 [SWS_CRYPT_21525]。

本使用说明基于 AUTOSAR 规范自动创建。

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

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
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 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_50010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50010@rel:R25-11#5d116eb4
Content hash
5d116eb4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50010
Status: valid/unmigrated Version: rel:R25-11#8eb8c6c4 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_50010@rel:R25-11#8eb8c6c4
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

函数 SetParameter [SWS_CRYPT_50007] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean input buffer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

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

函数 SetParameter [SWS_CRYPT_50008] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean unsigned integer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

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

函数 SetParameter [SWS_CRYPT_50009] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, SymmetricKey::Sptr value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valueSymmetricKey being used as the input parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowKey Derivation

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50009
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50009@rel:R25-11#179568f9
Content hash
179568f9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50009
Status: valid/unmigrated Version: rel:R25-11#92b1f35c 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_50009@rel:R25-11#92b1f35c
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_21501] Upstream: RS_CRYPTO_02103

using Sptr = std::shared_ptr<KeyDerivationFunctionCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21501
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21501@rel:R25-11#a9c30425
Content hash
a9c30425
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21501
Status: valid/unmigrated Version: rel:R25-11#6ebb94e3 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_21501@rel:R25-11#6ebb94e3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4fb24cfc2026-09-30
  • R19-11rel:R19-11#e5d0fc6d2026-10-14
  • R20-11rel:R20-11#c13472492026-10-14
  • R21-11rel:R21-11#c13472492026-10-14
  • R22-11rel:R22-11#461242d92026-10-14
  • R23-11rel:R23-11#aa4dc94a2026-10-14
  • R24-11rel:R24-11#aa4dc94a2026-10-14
  • R25-11rel:R25-11#6ebb94e32026-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