DEENESPTFRRUARHIKOZHNL

class 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

User GuideKI-GENERIERT

Verwaltet einen Speicherplatz für kryptografische Schlüssel und ermöglicht Metadatenabfragen sowie Änderungs-Callbacks.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 15ebff2d544c Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwaltet einen Speicherplatz für kryptografische Schlüssel und ermöglicht Metadatenabfragen sowie Änderungs-Callbacks.

Die Schnittstelle kapselt einen persistenten oder flüchtigen Speicherplatz für kryptografische Schlüssel und ermöglicht die Abfrage von Schlüsselmetadaten sowie des zuständigen CryptoProvider [SWS_CRYPT_30403]. Anwendungen können Inhaltsänderungen über einen registrierbaren Beobachter-Callback überwachen [SWS_CRYPT_30404]. Bei leerem Slot schlagen Zugriffe auf den Schlüsseltyp oder dessen Algorithmus mit dem Fehlercode ara::crypto::CryptoErrc::kEmptyKeySlot fehl [SWS_CRYPT_50055]. Da Kopieren und Verschieben untersagt sind, erfolgt der Zugriff thread-safe über Shared-Pointer.

Kontext

Die Schnittstelle ara::crypto::cryp::KeySlot repräsentiert einen dedizierten Speicherplatz für kryptografische Schlüssel innerhalb der AUTOSAR Adaptive Platform. Als Kapselung eines logischen Schlüssel-Slots verwaltet sie Metadaten, Typinformationen und die Zuordnung unterstützter Algorithmen für den darin abgelegten Schlüssel. Eine Instanz interagiert typischerweise mit drei Parteien: der anwendenden Software, dem zugehörigen cryp::CryptoProvider, auf den eine geteilte Referenz über [SWS_CRYPT_30403] bezogen werden kann, sowie einem anwendungsspezifischen Callback zur Inhaltsüberwachung nach [SWS_CRYPT_30404].

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

Kontextdiagramm: Interaktionspartner der KeySlot-Schnittstelle. Quellen: [SWS_CRYPT_30403], [SWS_CRYPT_30404]

Lebenszyklus

Ein KeySlot ist fest an die von ihm repräsentierte Schlüsselablage gebunden. Dementsprechend unterbindet die Schnittstelle das Duplizieren und Verlagern der Instanz: Sowohl der Kopierkonstruktor [SWS_CRYPT_50149] als auch der Verschiebekonstruktor [SWS_CRYPT_50150] sind explizit gelöscht. Gleiches gilt für den Kopierzuweisungsoperator [SWS_CRYPT_50147] und den Verschiebezuweisungsoperator [SWS_CRYPT_50148].

Für die Verwaltung von Besitz- und Referenzverhältnissen definiert die Klasse den Smart-Pointer-Typalias Sptr als std::shared_ptr<KeySlot> [SWS_CRYPT_50151]. Die Freigabe erfolgt über einen virtuellen Standard-Destruktor [SWS_CRYPT_50146]. Interpretation: Da die Schnittstelle keine öffentlichen Konstruktoren definiert, dürften konkrete Instanzen durch den zuständigen CryptoProvider erzeugt und als Sptr bereitgestellt werden. Frage Q-baef4cb1493c96cd (offen) Sämtliche bereitgestellten Methoden sind als thread-safe deklariert, womit gleichzeitige Lese- und Überwachungszugriffe aus mehreren Ausführungskontexten zulässig sind.

Nutzungspfad

Die typische Interaktion mit einem KeySlot gliedert sich in die Konfiguration der Inhaltsüberwachung und die Abfrage gespeicherter Schlüsselmetadaten:

  1. Beobachter registrieren: Die Anwendung registriert mittels RegisterUpdateObserver eine Callback-Funktion sowie einen anwendungsspezifischen Bezeichner keySlotIdentifier [SWS_CRYPT_30404]. Bei wiederholtem Aufruf wird stets nur der zuletzt übergebene Callback bei Aktualisierungen oder Löschungen des Slot-Inhalts aufgerufen.
  2. Unterstützte Algorithmen abfragen: Über GetPossibleAlgIds ermittelt die Anwendung eine Liste aller vom Slot unterstützten Algorithmus-Bezeichner [SWS_CRYPT_50056].
  3. Aktuellen Schlüssel prüfen: Befindet sich ein Schlüssel im Slot, liefert GetCryptoObjectType den Objekttyp des Schlüssels [SWS_CRYPT_50054] und GetAlgId dessen konkrete Algorithmus-Kennung [SWS_CRYPT_50055].
  4. Zuständigen Provider ermitteln: Bei Bedarf kann über GetCryptoProvider der verwaltende CryptoProvider als Shared-Pointer abgefragt werden [SWS_CRYPT_30403].
  5. Beobachter abmelden: Nach Abschluss der Überwachung wird die Registrierung über UnregisterUpdateObserver aufgehoben [SWS_CRYPT_30406].
Typischer Nutzungspfad eines KeySlotApplikationKeySlotRegisterUpdateObserver(callback, id)Result<void>GetPossibleAlgIds()Result<Vector<AlgIdString>>GetCryptoObjectType()Result<CryptoObjectType>GetAlgId()Result<AlgIdString>UnregisterUpdateObserver()Result<void>

Sequenzdiagramm: Typischer Ablauf zur Registrierung, Metadatenabfrage und Abmeldung an einem KeySlot. Quellen: [SWS_CRYPT_30404], [SWS_CRYPT_50056], [SWS_CRYPT_50054], [SWS_CRYPT_50055], [SWS_CRYPT_30406]

Fehlerszenarien

Die abfragenden Methoden sichern Fehlerzustände über den Ergebnistyp ara::core::Result ab. Sofern ein KeySlot keinen Schlüssel enthält, liefern die Aufrufe GetCryptoObjectType [SWS_CRYPT_50054] und GetAlgId [SWS_CRYPT_50055] jeweils den standardisierten Fehlercode ara::crypto::CryptoErrc::kEmptyKeySlot mit Rollback-Semantik. Die Methoden GetPossibleAlgIds [SWS_CRYPT_50056] und GetCryptoProvider [SWS_CRYPT_30403] spezifizieren keine standardisierten Fehlercodes. Für die Observer-Verwaltung mittels RegisterUpdateObserver [SWS_CRYPT_30404] sowie UnregisterUpdateObserver [SWS_CRYPT_30406] sind im Fehlerfall implementierungsspezifische Fehler im Ergebnisobjekt vorgesehen.

Dieser Leitfaden wurde durch eine KI auf Basis der Spezifikation R25-11 erstellt.

Mitgliederkarte

Klassendiagramm

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

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Konstruktoren und Destruktor

KeySlot function 2

Copy-Constructor.

Überladungen KeySlot 2
KeySlot (const KeySlot &)=delete; SWS_CRYPT_50149
KeySlot (KeySlot &&)=delete; SWS_CRYPT_50150
~KeySlot function

Destructor.

virtual ~KeySlot () noexcept=default;

Methoden

GetAlgId function

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;

Operatoren

operator= function 2

Copy-assign another KeySlot to this instance.

Überladungen = 2
KeySlot & operator= (const KeySlot &other)=delete; SWS_CRYPT_50147
KeySlot & operator= (KeySlot &&other)=delete; SWS_CRYPT_50148

Typaliase

Sptr type alias

Smart pointer of the interface.

using Sptr = std::shared_ptr<KeySlot>;

Dokumentation der Methoden

function 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#24c0bae9
Content hash
24c0bae9
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

function 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#4fb87b0b
Content hash
4fb87b0b
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

function 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#521de99b
Content hash
521de99b
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

function 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#d68e626e
Content hash
d68e626e
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

function 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#c337b0c3
Content hash
c337b0c3
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

function 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#4bc5a8dd
Content hash
4bc5a8dd
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 9361e576efa7 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode RegisterUpdateObserver der Klasse ara::crypto::cryp::KeySlot dient der Registrierung einer anwendungsspezifischen Callback-Funktion, die bei jeder Aktualisierung des Inhalts eines Schlüsselslots benachrichtigt wird [SWS_CRYPT_30404]. Als Aktualisierung gelten hierbei sowohl inhaltliche Modifikationen als auch das vollständige Leeren des Slots [SWS_CRYPT_30404].

Verwendung und Parameter

Die Funktion wird über den Header ara/crypto/cryp/keyslot.h eingebunden und nimmt den Callback callback sowie einen Bezeichner keySlotIdentifier entgegen [SWS_CRYPT_30404]. Das Funktionsobjekt callback erhält beim Aufruf die Zeichenkette keySlotIdentifier als Argument übergeben, um den betroffenen Slot in der Anwendungslogik eindeutig zuordnen zu können [SWS_CRYPT_30404]. Bei wiederholten Aufrufen von RegisterUpdateObserver durch dieselbe Anwendung wird ausschließlich die zuletzt registrierte Callback-Funktion beibehalten und ausgeführt [SWS_CRYPT_30404].

Nebenläufigkeit und Fehlerbehandlung

Die Schnittstelle ist threadsicher (thread-safe) und als noexcept ohne Auslösen von Exceptions spezifiziert [SWS_CRYPT_30404]. Sie gibt ein ara::core::Result<void> zurück [SWS_CRYPT_30404]. Standardisierte Fehler existieren nicht; im Fehlerfall wird ein implementationsspezifischer Fehlercode zurückgegeben [SWS_CRYPT_30404]. Interpretation: Der tatsächliche Aufruf der Callback-Funktion dürfte asynchron im Kontext des Krypto-Treibers erfolgen, sobald die Aktualisierung im Schlüsselspeicher wirksam ist. Frage Q-cfbcc1ddcbe88062 (offen)

Dieser Verwendungshinweis basiert auf der Spezifikation von AUTOSAR Adaptive R25-11.

Implementer's Guide folgt (Komplexität 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#6cb45e06
Content hash
6cb45e06
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

function 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: b5edba50839d Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode UnregisterUpdateObserver der Klasse ara::crypto::cryp::KeySlot dient dazu, einen zuvor von der Anwendung registrierten Beobachter-Callback (UpdateObserver) wieder abzumelden [SWS_CRYPT_30406]. Die Funktion ist im Header ara/crypto/cryp/keyslot.h deklariert, als rein virtuelle Methode (=0) ausgelegt und erwartet keine Übergabeparameter [SWS_CRYPT_30406].

Hinsichtlich des Aufrufkontextes und der Nebenläufigkeit gelten folgende Randbedingungen:

  • Synchrone Semantik und Thread-Sicherheit: Die Deregistrierung erfolgt synchron und ist explizit als thread-safe spezifiziert [SWS_CRYPT_30406]. Aufrufe können somit threadsicher und nebenläufig zu anderen Operationen auf derselben KeySlot-Instanz ausgeführt werden.
  • Exception-Sicherheit: Die Methode besitzt die Spezifikation noexcept und gilt als exception-safe [SWS_CRYPT_30406]. Fehlerzustände führen daher keinesfalls zu C++-Exceptions, sondern werden geordnet über das Rückgabeobjekt abgewickelt.

Als Rückgabewert liefert die Funktion ein ara::core::Result<void>, das bei erfolgreicher Deregistrierung leer ist oder im Fehlerfall einen Fehlercode kapselt [SWS_CRYPT_30406]. Die Spezifikation definiert für diesen Aufruf bewusst keine standardisierten AUTOSAR-Fehlercodes; eventuelle Fehler sind daher hersteller- bzw. implementationsspezifisch [SWS_CRYPT_30406]. Aufrufer müssen das Ergebnis auf Fehlerhaftigkeit prüfen, können jedoch nicht auf standardisierte Fehlerkonstanten abprüfen.

Im Zusammenspiel mit der Schlüsselverwaltung unterbindet die Abmeldung zuverlässig, dass die Anwendung weitere Benachrichtigungen über Änderungen des Schlüsselinhalts erhält. Falls zum Aufrufzeitpunkt kein Callback registriert war, dürfte die Funktion interpretationsgemäß entweder wirkungslos erfolgreich zurückkehren oder einen implementationsspezifischen Fehler ausgeben. Frage Q-7a1e7e0db0691ce6 (offen)

Dieser Nutzungshinweis wurde automatisiert auf Basis der AUTOSAR-Spezifikation erstellt.

Implementer's Guide folgt (Komplexität 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#7a49fb25
Content hash
7a49fb25
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

function 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#4184cb45
Content hash
4184cb45
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

function 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#6c6a4006
Content hash
6c6a4006
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

function ~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#b9fe0bea
Content hash
b9fe0bea
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

Dokumentation der Typaliase

type alias 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#2fca90de
Content hash
2fca90de
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