类 ara::crypto::cryp::KeyAgreementPrivateCtx
[SWS_CRYPT_21300] Upstream: RS_CRYPTO_02104
class KeyAgreementPrivateCtx : public CryptoContext {...};
Key Agreement Private key Context interface.
Header-Datei #include "ara/crypto/cryp/key_agreement_private_ctx.h" Forwarding-Header #include "ara/crypto/crypto_fwd.h" Scope namespace ara::crypto::cryp Basisklasse(n) CryptoContext
用户指南人工智能生成 用于根据私钥和外部公钥计算对称目标密钥。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6c31df682424
来源
未决问题(1)
摘要 详细
用于根据私钥和外部公钥计算对称目标密钥。
接口 ara::crypto::cryp::KeyAgreementPrivateCtx 用于基于本地私钥和对端公钥执行密码学密钥协商过程 [SWS_CRYPT_21312] 。在分配了自身密钥及可选参数后,方法 AgreeKey 计算共享机密,并将其作为对称密钥对象返回。一个核心约束条件是执行前的完整初始化,因为缺少参数或缺少针对 kAllowKeyAgreement 的权限会导致带有相应错误代码的中断 [SWS_CRYPT_21312] 。所有操作均设计为线程安全的。
更多 ›
本类指南由系统 autodocs 基于 AUTOSAR 规范 R25-11 生成。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__crypto__cryp__KeyAgreementPrivateCtx203
KeyAgreementPrivateCtx
+ AgreeKey()
+ SetKey()
+ SetParameter()
nara__crypto__cryp__CryptoContext85
CryptoContext
nara__crypto__cryp__KeyAgreementPrivateCtx203->nara__crypto__cryp__CryptoContext85
详细视图 此版本没有元素数据
方法 Produce a common symmetric key via execution of the key-agreement algorithm using a private key and a public key of another side.
Configure the context to use the provided key.
重载 SetKey 2 Set a parameter of the key agreement identified by parameterName.
重载 SetParameter 2 类型别名 Smart pointer of this interface.
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
virtual ara::core::Result < SymmetricKey ::Sptr > AgreeKey (Public Key::Sptr otherSideKey, AlgId targetAlgId, AllowedUsageFlags allowed Usage) const noexcept=0;
Produce a common symmetric key via execution of the key-agreement algorithm using a private key and a public key of another side.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 32f169531b52
来源
未决问题(1)
本段文本由 AI 生成,用于技术指导。
Parameter (in)
Parameter Beschreibung otherSideKey the public key of the other side of the Key-Agreement targetAlgId identifier of the symmetric target algorithm allowedUsage the allowed usage of the target key
Rückgabewert
Typ Beschreibung ara::core::Result <SymmetricKey ::Sptr >a result containing either a unique pointer to the SymmetricKey object, which contains the computed shared secret produced by the Key-Agreement algorithm or an error
Fehler
Fehlercode Beschreibung UninitializedContext if the context was not initialized by deploying a key or not all required parameters have been set via SetParameter() CryptoErrc ::kIncompatibleObjectrollback_semantics if the public key is not compatible to this context CryptoErrc ::kInvalidArgumentrollback_semantics if the allowed usage flags are invalid for a symmetric key CryptoErrc ::kBusyResourcerollback_semantics a required resource is busy CryptoErrc ::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty CryptoErrc ::kUsageViolationrollback_semantics if the allowed usage of the private or public key do not include k AllowKeyAgreement ara::crypto::CryptoErrc::kUnknownIdentifier rollback_semantics if targetAlgId has an unsupported value
Status: valid/unmigrated
Version: rel:R25-11#26c80425
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_21312@rel:R25-11#26c80425
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#4f58d41f2026-09-30 Inspect R19-11 rel:R19-11#3975d40e2026-10-14 Inspect R20-11 rel:R20-11#340c62732026-10-14 Inspect R21-11 rel:R21-11#633195382026-10-14 Inspect R22-11 rel:R22-11#418b5aab2026-10-14 Inspect R23-11 rel:R23-11#28812de12026-10-14 Inspect R24-11 rel:R24-11#c610b1882026-10-14 Inspect R25-11 rel:R25-11#26c804252026-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 (PrivateKey ::Sptr key) noexcept=0;
Configure the context to use the provided key.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9ab09291ac6b
来源
本使用说明基于规范元素自动生成。
实现者指南即将推出(复杂度 I2)
Parameter (in)
Parameter Beschreibung key the source key object
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#616d7c1f
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_21313@rel:R25-11#616d7c1f
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#3d54d9db2026-09-30 Inspect R20-11 rel:R20-11#52811d232026-10-14 Inspect R21-11 rel:R21-11#8def41192026-10-14 Inspect R22-11 rel:R22-11#8a2370692026-10-14 Inspect R23-11 rel:R23-11#817460022026-10-14 Inspect R24-11 rel:R24-11#45330bed2026-10-14 Inspect R25-11 rel:R25-11#616d7c1f2026-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 key agreement is performed.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 747e7368bae2
来源
本文由 AI 基于 AUTOSAR 规范 R25-11 生成。
实现者指南即将推出(复杂度 I2)
Parameter (in)
Parameter Beschreibung keySlot a keyslot containing a private key
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#a8c300d9
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_50053@rel:R25-11#a8c300d9
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 > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0;
Set a parameter of the key agreement identified by parameterName.
Parameter (in)
Parameter Beschreibung parameterName an identifier of the parameter value an input buffer containing the value of the parameter
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#48be7eb5
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_50051@rel:R25-11#48be7eb5
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 > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0;
Set a parameter of the key agreement identified by parameterName.
Parameter (in)
Parameter Beschreibung parameterName an identifier of the parameter value an unsigned integer containing the value of the parameter
Rückgabewert
Fehler
Status: valid/unmigrated
Version: rel:R25-11#6e0df952
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_50052@rel:R25-11#6e0df952
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 <KeyAgreementPrivateCtx >;
Smart pointer of this interface.
Status: valid/unmigrated
Version: rel:R25-11#c13d652e
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_21301@rel:R25-11#c13d652e
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#e2ebb07f2026-09-30 Inspect R19-11 rel:R19-11#c18950c82026-10-14 Inspect R20-11 rel:R20-11#65fb94fe2026-10-14 Inspect R21-11 rel:R21-11#65fb94fe2026-10-14 Inspect R22-11 rel:R22-11#23c185892026-10-14 Inspect R23-11 rel:R23-11#abfd06b32026-10-14 Inspect R24-11 rel:R24-11#abfd06b32026-10-14 Inspect R25-11 rel:R25-11#c13d652e2026-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 · 德文原文