类 ara::crypto::cryp::WriteableKeySlot
[SWS_CRYPT_50166] Upstream: RS_CRYPTO_02405
class WriteableKeySlot : public KeySlot {...};
WriteableKeySlot interface representing a writeable storage location for a key in a Crypto Provider.
| Header-Datei | #include "ara/crypto/cryp/writeable_keyslot.h" |
|---|
| Forwarding-Header | #include "ara/crypto/crypto_fwd.h" |
|---|
| Scope | namespace ara::crypto::cryp |
|---|
| Basisklasse(n) | KeySlot |
|---|
用户指南人工智能生成
用作用于在 Crypto-Provider 中管理和安全擦除密钥的可写接口。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5dc02afa7972
来源
未决问题(3)
用作用于在 Crypto-Provider 中管理和安全擦除密钥的可写接口。
上下文
接口 ara::crypto::cryp::WriteableKeySlot 在 AUTOSAR Adaptive Platform 内定义了 Crypto-Provider 上下文中加密密钥的可写存储槽。它直接派生自基接口 KeySlot,并提供了一个标准化抽象,用于有针对性地清理受管理的密钥槽并控制其生命周期。加密栈的应用程序作为使用者以及管理与物理或逻辑密钥存储绑定的具体 Crypto-Provider 充当主要交互伙伴。具体实例的创建可能通过上层工厂或提供程序方法进行,因为该接口充当纯抽象基类。 问题 Q-5c3b13bb35c3ff53 (未决)
生命周期
ara::crypto::cryp::WriteableKeySlot 的资源和所有权模型严格防止通过值语义复制密钥引用。为此,复制构造函数 [SWS_CRYPT_50170] 和移动构造函数 [SWS_CRYPT_50171] 均被显式删除(=delete)。同样,复制赋值运算符 [SWS_CRYPT_50168] 和移动赋值运算符 [SWS_CRYPT_50169] 的已删除声明阻止了任何后续赋值。
引用传递和共享管理则通过定义的智能指针类型别名 Sptr 进行,该别名被具体化为 std::shared_ptr<WriteableKeySlot> [SWS_CRYPT_50172]。实例的销毁由默认虚析构函数保障,该析构函数被指定为异常安全(exception safe)且不抛出异常(noexcept=default)[SWS_CRYPT_50167]。这允许通过指向接口的指针进行安全的多态释放。在状态方面,槽可以是占用的或空的。槽的占用可能通过 Crypto-Provider 的单独接口进行,而清空则通过线程安全方法 Clear() 实现 [SWS_CRYPT_30405]。 问题 Q-72dfcb17eb3e2d25 (未决)
状态图:通过 Clear() 进行的密钥内容状态转换及错误处理。来源:[SWS_CRYPT_30405]
使用路径
核心使用路径集中在对所存储密钥材料的受控重置或擦除上:
错误场景
方法 Clear() 被声明为异常安全且为 noexcept;根据 AUTOSAR Adaptive 的错误模型,错误情况通过 ara::core::Result 传递 [SWS_CRYPT_30405]。可能的错误码包括:
本指南基于针对 crypto 模块的 AUTOSAR Adaptive 规范 R25-11,并且是自动生成的。
成员图
类图
Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
详细视图
此版本没有元素数据
构造函数和析构函数
Copy-Constructor.
重载 WriteableKeySlot 2
方法
The interface shall delete the current content of the KeySlot.
运算符
Copy-assign another WriteableKeySlot to this instance.
重载 = 2
类型别名
Smart pointer of the interface.
方法文档
virtual ara::core::Result< void > Clear () const noexcept=0;
The interface shall delete the current content of the KeySlot.
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9f91b0070fcf
来源
本使用说明自动生成,并基于 Release R25-11 的 AUTOSAR 规范。
Rückgabewert
| Typ | Beschreibung |
|---|
| ara::core::Result< void > | an empty result if the keyslot was already empty or successfully cleared |
Fehler
Status: valid/unmigrated
Version: rel:R25-11#f254660d
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_30405@rel:R25-11#f254660d
Point-in-Time History:
Recorded Revisions (7):
- R25-11
rel:R25-11#3b03ed2b2026-09-30 - R20-11
rel:R20-11#9d3696442026-10-14 - R21-11
rel:R21-11#bda76d622026-10-14 - R22-11
rel:R22-11#006988182026-10-14 - R23-11
rel:R23-11#e7cea4b12026-10-14 - R24-11
rel:R24-11#490dfcff2026-10-14 - R25-11
rel:R25-11#f254660d2026-10-14 active
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
WriteableKeySlot (const WriteableKeySlot &)=delete;
Status: valid/unmigrated
Version: rel:R25-11#9a69e3b3
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_50170@rel:R25-11#9a69e3b3
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
WriteableKeySlot (WriteableKeySlot &&)=delete;
Status: valid/unmigrated
Version: rel:R25-11#1a7fb0b7
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_50171@rel:R25-11#1a7fb0b7
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
WriteableKeySlot & operator= (const WriteableKeySlot &other)=delete;
Copy-assign another WriteableKeySlot to this instance.
Status: valid/unmigrated
Version: rel:R25-11#51e3ecf9
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_50168@rel:R25-11#51e3ecf9
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
WriteableKeySlot & operator= (WriteableKeySlot &&other)=delete;
Move-assign another WriteableKeySlot to this instance.
Status: valid/unmigrated
Version: rel:R25-11#05bfa0a2
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_50169@rel:R25-11#05bfa0a2
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
virtual ~WriteableKeySlot () noexcept=default;
Status: valid/unmigrated
Version: rel:R25-11#651255bc
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_50167@rel:R25-11#651255bc
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically 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<WriteableKeySlot>;
Smart pointer of the interface.
Status: valid/unmigrated
Version: rel:R25-11#afe92846
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_50172@rel:R25-11#afe92846
Point-in-Time History:
Historical Snapshot:
🚫
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/unmigrated | mechanically 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 · 德文原文