DEENESPTFRRUARHIKOZHNL

类 ara::crypto::cryp::KeySlot

[SWS_CRYPT_50145] Upstream: RS_CRYPTO_02405

class KeySlot {...};

KeySlot interface representing a storage location for a key in a CryptoProvider.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp

用户指南人工智能生成

管理加密密钥的存储空间,并支持元数据查询以及更改回调。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 15ebff2d544c 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

管理加密密钥的存储空间,并支持元数据查询以及更改回调。

该接口封装了用于加密密钥的持久或易失存储空间,并支持查询密钥元数据以及负责的 CryptoProvider [SWS_CRYPT_30403]。应用程序可以通过可注册的观察者回调来监视内容更改 [SWS_CRYPT_30404]。在槽为空时,对密钥类型或其算法的访问失败并返回错误代码 ara::crypto::CryptoErrc::kEmptyKeySlot [SWS_CRYPT_50055]。由于禁止拷贝和移动,因此通过共享指针以 thread-safe 方式进行访问。

上下文

接口 ara::crypto::cryp::KeySlot 表示 AUTOSAR Adaptive Platform 内用于加密密钥的专用存储空间。作为逻辑密钥槽的封装,它管理存入其中的密钥的元数据、类型信息以及所支持算法的分配。其实例通常与三个参与方交互:使用它的应用软件、通过 [SWS_CRYPT_30403] 可获取其共享引用的所属 cryp::CryptoProvider,以及符合 [SWS_CRYPT_30404] 用于内容监控的应用特定回调。

KeySlotContext App Applikation KeySlot KeySlot App->KeySlot fragt ab / registriert CryptoProvider CryptoProvider KeySlot->CryptoProvider referenziert Observer Update-Observer KeySlot->Observer benachrichtigt

上下文图:KeySlot 接口的交互方。来源:[SWS_CRYPT_30403]、[SWS_CRYPT_30404]

生命周期

KeySlot 与其表示的密钥存储区强绑定。因此,该接口禁止复制和移动其实例:拷贝构造函数 [SWS_CRYPT_50149] 和移动构造函数 [SWS_CRYPT_50150] 均被显式删除。同样规则也适用于拷贝赋值运算符 [SWS_CRYPT_50147] 和移动赋值运算符 [SWS_CRYPT_50148]。

为了管理所有权和引用关系,该类将智能指针类型别名 Sptr 定义为 std::shared_ptr<KeySlot> [SWS_CRYPT_50151]。释放通过虚默认析构函数 [SWS_CRYPT_50146] 进行。解释:由于该接口未定义公共构造函数,具体实例推测由负责的 CryptoProvider 创建并作为 Sptr 提供。 问题 Q-baef4cb1493c96cd (未决)所提供的所有方法均声明为线程安全,因此允许来自多个执行上下文的并发读取和监控访问。

使用路径

与 KeySlot 的典型交互分为内容监控的配置和已存储密钥元数据的查询两部分:

  1. 注册观察者:应用程序通过 RegisterUpdateObserver 注册一个回调函数以及一个应用特定的标识符 keySlotIdentifier [SWS_CRYPT_30404]。在重复调用时,在槽内容更新或删除时始终仅调用最后传入的回调。
  2. 查询支持的算法:应用程序通过 GetPossibleAlgIds 获取该槽支持的所有算法标识符列表 [SWS_CRYPT_50056]。
  3. 检查当前密钥:如果槽中存在密钥,GetCryptoObjectType 返回密钥的对象类型 [SWS_CRYPT_50054] 且 GetAlgId 返回其具体的算法标识符 [SWS_CRYPT_50055]。
  4. 确定负责的 Provider:根据需要,可通过 GetCryptoProvider 将负责管理的 CryptoProvider 作为共享指针查询 [SWS_CRYPT_30403]。
  5. 注销观察者:监控结束后,通过 UnregisterUpdateObserver 注销注册 [SWS_CRYPT_30406]。
KeySlot 的典型使用路径ApplikationKeySlotRegisterUpdateObserver(callback, id)Result<void>GetPossibleAlgIds()Result<Vector<AlgIdString>>GetCryptoObjectType()Result<CryptoObjectType>GetAlgId()Result<AlgIdString>UnregisterUpdateObserver()Result<void>

时序图:在 KeySlot 上进行注册、元数据查询和注销的典型流程。来源:[SWS_CRYPT_30404]、[SWS_CRYPT_50056]、[SWS_CRYPT_50054]、[SWS_CRYPT_50055]、[SWS_CRYPT_30406]

错误场景

查询方法通过结果类型 ara::core::Result 保障错误状态。只要 KeySlot 未包含密钥,调用 GetCryptoObjectType [SWS_CRYPT_50054] 与 GetAlgId [SWS_CRYPT_50055] 便分别返回具有回滚语义的标准化错误代码 ara::crypto::CryptoErrc::kEmptyKeySlot。方法 GetPossibleAlgIds [SWS_CRYPT_50056] 和 GetCryptoProvider [SWS_CRYPT_30403] 未指定标准化错误代码。对于通过 RegisterUpdateObserver [SWS_CRYPT_30404] 以及 UnregisterUpdateObserver [SWS_CRYPT_30406] 进行的观察者管理,在出错时结果对象中提供实现特定的错误。

本指南由 AI 基于规范 R25-11 编写。

成员图

类图

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

G nara__crypto__cryp__KeySlot637 KeySlot + KeySlot() + operator=() + ~KeySlot() + GetAlgId() + GetCryptoObjectType() + GetCryptoProvider() + GetPossibleAlgIds() + RegisterUpdateObserver() + UnregisterUpdateObserver() nara__crypto__cryp__WriteableKeySlot529 WriteableKeySlot nara__crypto__cryp__WriteableKeySlot529->nara__crypto__cryp__KeySlot637

详细视图

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

构造函数和析构函数

KeySlot 函数 2

Copy-Constructor.

重载 KeySlot 2
KeySlot (const KeySlot &)=delete; SWS_CRYPT_50149
KeySlot (KeySlot &&)=delete; SWS_CRYPT_50150
~KeySlot 函数

Destructor.

virtual ~KeySlot () noexcept=default;

方法

GetAlgId 函数

The interface shall return the AlgId of the currently stored key.

virtual ara::core::Result< ara::crypto::AlgIdString > GetAlgId () const noexcept=0;

The interface shall return the CryptoObjectType of the currently stored key.

virtual ara::core::Result< CryptoObjectType > GetCryptoObjectType () const noexcept=0;

The interface shall return an instance of the CryptoProvider that is responsible for this KeySlot.

virtual ara::core::Result< std::shared_ptr< cryp::CryptoProvider > > GetCryptoProvider () const noexcept=0;

The interface shall return a vector of AlgIds supported by this KeySlot.

virtual ara::core::Result< ara::core::Vector< ara::crypto::AlgIdString > > GetPossibleAlgIds () const noexcept=0;

The interface shall register an application callback function to be called when the content of the KeySlot is updated (i.e., modified or cleared). If this function is called multiple times, only the most recently registered callback of an application will be called.

virtual ara::core::Result< void > RegisterUpdateObserver (std::function< void(ara::core::StringView)> callback, ara::core::StringView keySlotIdentifier) const noexcept=0;

Unregisters any previously UpdateObserver callback that has been registered previously by the application.

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

运算符

operator= 函数 2

Copy-assign another KeySlot to this instance.

重载 = 2
KeySlot & operator= (const KeySlot &other)=delete; SWS_CRYPT_50147
KeySlot & operator= (KeySlot &&other)=delete; SWS_CRYPT_50148

类型别名

Sptr 类型别名

Smart pointer of the interface.

using Sptr = std::shared_ptr<KeySlot>;

方法文档

函数 GetAlgId [SWS_CRYPT_50055] Upstream: RS_CRYPTO_02009

virtual ara::core::Result< ara::crypto::AlgIdString > GetAlgId () const noexcept=0;

The interface shall return the AlgId of the currently stored key.

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

Rückgabewert

TypBeschreibung
ara::core::Result<ara::crypto::AlgIdString >A result containing the AlgId of the current key slot content

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot does not contain a key.

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

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

函数 GetCryptoObjectType [SWS_CRYPT_50054] Upstream: RS_CRYPTO_02009

virtual ara::core::Result< CryptoObjectType > GetCryptoObjectType () const noexcept=0;

The interface shall return the CryptoObjectType of the currently stored key.

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

Rückgabewert

TypBeschreibung
ara::core::Result< CryptoObjectType >A result containing the CryptoObjectType of the currently stored key.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot does not contain a key.

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

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

函数 GetCryptoProvider [SWS_CRYPT_30403] Upstream: RS_CRYPTO_02401

virtual ara::core::Result< std::shared_ptr< cryp::CryptoProvider > > GetCryptoProvider () const noexcept=0;

The interface shall return an instance of the CryptoProvider that is responsible for this KeySlot.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::shared_ptr<cryp::CryptoProvider > >a result containing a shared pointer to the CryptoProvider to be used with this KeySlot

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_30403
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30403@rel:R25-11#46f121e0
Content hash
46f121e0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30403
Status: valid/unmigrated Version: rel:R25-11#5cab9276 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_30403@rel:R25-11#5cab9276
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#521de99b2026-09-30
  • R20-11rel:R20-11#26f02eba2026-10-14
  • R21-11rel:R21-11#9fc6a2d12026-10-14
  • R22-11rel:R22-11#c2239d192026-10-14
  • R23-11rel:R23-11#c19ad2fa2026-10-14
  • R24-11rel:R24-11#5558cd092026-10-14
  • R25-11rel:R25-11#5cab92762026-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

函数 GetPossibleAlgIds [SWS_CRYPT_50056] Upstream: RS_CRYPTO_02009

virtual ara::core::Result< ara::core::Vector< ara::crypto::AlgIdString > > GetPossibleAlgIds () const noexcept=0;

The interface shall return a vector of AlgIds supported by this KeySlot.

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

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<ara::crypto::AlgIdString > >A result containing the possible AlgIds of the key slot

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

函数 KeySlot [SWS_CRYPT_50149] Upstream: RS_CRYPTO_02004

KeySlot (const KeySlot &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot

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

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

函数 KeySlot [SWS_CRYPT_50150] Upstream: RS_CRYPTO_02004

KeySlot (KeySlot &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot

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

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

函数 RegisterUpdateObserver [SWS_CRYPT_30404] Upstream: RS_CRYPTO_02401

virtual ara::core::Result< void > RegisterUpdateObserver (std::function< void(ara::core::StringView)> callback, ara::core::StringView keySlotIdentifier) const noexcept=0;

The interface shall register an application callback function to be called when the content of the KeySlot is updated (i.e., modified or cleared). If this function is called multiple times, only the most recently registered callback of an application will be called.

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

类 ara::crypto::cryp::KeySlot 的方法 RegisterUpdateObserver 用于注册应用程序特定的回调函数,该函数在密钥插槽的内容每次更新时都会收到通知 [SWS_CRYPT_30404]。在此,内容的修改以及插槽的完全清空均被视为更新 [SWS_CRYPT_30404]。

用法与参数

该函数通过头文件 ara/crypto/cryp/keyslot.h 引入,并接收回调 callback 以及标识符 keySlotIdentifier [SWS_CRYPT_30404]。函数对象 callback 在调用时接收字符串 keySlotIdentifier 作为参数,以便能够在应用程序逻辑中唯一定位受影响的插槽 [SWS_CRYPT_30404]。同一应用程序重复调用 RegisterUpdateObserver 时,仅保留并执行最后注册的回调函数 [SWS_CRYPT_30404]。

并发与错误处理

该接口是线程安全的(thread-safe),并且被指定为 noexcept 且不抛出异常 [SWS_CRYPT_30404]。它返回一个 ara::core::Result<void> [SWS_CRYPT_30404]。不存在标准化错误;出错时会返回实现特定的错误代码 [SWS_CRYPT_30404]。解释:一旦密钥存储中的更新生效,回调函数的实际调用很可能在加密驱动程序的上下文中异步执行。 问题 Q-cfbcc1ddcbe88062 (未决)

本使用说明基于 AUTOSAR Adaptive R25-11 规范。

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

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

Parameter (in)

ParameterBeschreibung
callbackthe registered callback function to be called when the KeySlot content is modified
keySlotIdentifieran application-specific identified of the KeySlot which will be used as a parameter of the callback function

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result or an implementation specific error.

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_30404
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30404@rel:R25-11#9b68cc5f
Content hash
9b68cc5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30404
Status: valid/unmigrated Version: rel:R25-11#00db85c0 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_30404@rel:R25-11#00db85c0
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#6cb45e062026-09-30
  • R20-11rel:R20-11#68122f052026-10-14
  • R21-11rel:R21-11#68122f052026-10-14
  • R22-11rel:R22-11#4bd4986b2026-10-14
  • R23-11rel:R23-11#b0d1e1432026-10-14
  • R24-11rel:R24-11#d83bf7342026-10-14
  • R25-11rel:R25-11#00db85c02026-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

函数 UnregisterUpdateObserver [SWS_CRYPT_30406] Upstream: RS_CRYPTO_02401

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

Unregisters any previously UpdateObserver callback that has been registered previously by the application.

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

类 ara::crypto::cryp::KeySlot 的方法 UnregisterUpdateObserver 用于注销先前由应用程序注册的观察者回调(UpdateObserver)[SWS_CRYPT_30406]。该函数在头文件 ara/crypto/cryp/keyslot.h 中声明,设计为纯虚方法(=0),并且不期望任何传入参数 [SWS_CRYPT_30406]。

关于调用上下文和并发性,适用以下约束条件:

  • 同步语义与线程安全性:注销同步进行,并显式指定为 thread-safe [SWS_CRYPT_30406]。因此,可以线程安全地调用,并与同一 KeySlot 实例上的其他操作并发执行。
  • 异常安全性:该方法具有规范 noexcept 并被视为 exception-safe [SWS_CRYPT_30406]。因此,错误状态绝不会导致 C++ 异常,而是通过返回对象有序处理。

作为返回值,该函数提供一个 ara::core::Result<void>,成功注销时该对象为空,或者在发生错误时封装错误码 [SWS_CRYPT_30406]。规范特意未为此调用定义标准化的 AUTOSAR 错误码;因此,任何错误都是特定于供应商或实现的 [SWS_CRYPT_30406]。调用方必须检查结果是否出错,但无法针对标准化的错误常量进行检查。

在与密钥管理协同工作时,该注销可靠地阻止应用程序接收有关密钥内容更改的进一步通知。如果在调用时尚未注册任何回调,按照解释,该函数大概要么无效地成功返回,要么输出特定于实现的错误。 问题 Q-7a1e7e0db0691ce6 (未决)

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

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

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

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result or an implementation specific error.

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_30406
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30406@rel:R25-11#e8c56afc
Content hash
e8c56afc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30406
Status: valid/unmigrated Version: rel:R25-11#bbacdbfa 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_30406@rel:R25-11#bbacdbfa
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#7a49fb252026-09-30
  • R20-11rel:R20-11#d23bfef12026-10-14
  • R21-11rel:R21-11#146b6c222026-10-14
  • R22-11rel:R22-11#34a2bb242026-10-14
  • R23-11rel:R23-11#c39da02b2026-10-14
  • R24-11rel:R24-11#28d79d9d2026-10-14
  • R25-11rel:R25-11#bbacdbfa2026-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

函数 operator= [SWS_CRYPT_50147] Upstream: RS_CRYPTO_02004

KeySlot & operator= (const KeySlot &other)=delete;

Copy-assign another KeySlot to this instance.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot

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

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

函数 operator= [SWS_CRYPT_50148] Upstream: RS_CRYPTO_02004

KeySlot & operator= (KeySlot &&other)=delete;

Move-assign another KeySlot to this instance.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot

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

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

函数 ~KeySlot [SWS_CRYPT_50146] Upstream: RS_CRYPTO_02405

virtual ~KeySlot () noexcept=default;

Destructor.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50146
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50146@rel:R25-11#dc5e020f
Content hash
dc5e020f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50146
Status: valid/unmigrated Version: rel:R25-11#b9fe0bea 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_50146@rel:R25-11#b9fe0bea
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_50151] Upstream: RS_CRYPTO_02405

using Sptr = std::shared_ptr<KeySlot>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/keyslot.h"
Scopeclass ara::crypto::cryp::KeySlot
SymbolSptr

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

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