DEENESPTFRRUARHIKOZHNL

class ara::crypto::cryp::VerifierPublicCtx

[SWS_CRYPT_24100] Upstream: RS_CRYPTO_02204

class VerifierPublicCtx :             public CryptoContext {...};

Signature Verification Public key Context interface.

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

User GuideKI-GENERIERT

Dient der asymmetrischen Verifikation digitaler Signaturen im Einzelschritt- oder mehrstufigen Streaming-Verfahren.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 6a47846da53d Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Dient der asymmetrischen Verifikation digitaler Signaturen im Einzelschritt- oder mehrstufigen Streaming-Verfahren.

Die Schnittstelle ara::crypto::cryp::VerifierPublicCtx dient der Verifikation digitaler Signaturen mittels asymmetrischer öffentlicher Schlüssel über einen One-Shot-Aufruf oder ein mehrschrittiges Streaming ([SWS_CRYPT_24112], [SWS_CRYPT_50022]). Vor der Verifikation muss der Kontext zwingend mit einem gültigen Schlüssel konfiguriert werden, dessen zugewiesene Nutzungsrechte die Signaturprüfung erlauben ([SWS_CRYPT_24115]). Sämtliche Schnittstellenmethoden sind ausnahmesicher sowie threadsicher ausgelegt.

Kontext

Die Schnittstelle ara::crypto::cryp::VerifierPublicCtx dient der Verifikation digitaler Signaturen auf Basis asymmetrischer Kryptographie unter Verwendung eines öffentlichen Schlüssels. Sie interagiert direkt mit Schlüsselobjekten ([SWS_CRYPT_24115]) oder ausgelagerten Schlüsselspeichern ([SWS_CRYPT_50018]) und stellt Methoden bereit, um Signaturen entweder in einem Einzelschritt (One-Shot) oder gestreamt über mehrere Teilschritte zu prüfen.

Lebenszyklus

Instanzen des Verifikationskontexts werden anwendungsintern typischerweise über den Smart-Pointer-Typ-Alias ara::crypto::cryp::VerifierPublicCtx::Sptr verwaltet, welcher als std::shared_ptr<VerifierPublicCtx> definiert ist ([SWS_CRYPT_24101]). Alle Schnittstellenmethoden sind als ausnahmesicher (exception safe) sowie threadsicher deklariert.

Der Kontext durchläuft klar abgegrenzte Betriebsphasen. Nach seiner Instanziierung befindet sich der Kontext in einem uninitialisierten Zustand, in dem Verifikationsaufrufe mit ara::crypto::CryptoErrc::kUninitializedContext abgewiesen werden ([SWS_CRYPT_50019], [SWS_CRYPT_24112]). Erst durch die Zuweisung eines passenden Schlüssels mittels SetKey() geht der Kontext in den betriebsbereiten Zustand über ([SWS_CRYPT_24115], [SWS_CRYPT_50018]). Aus diesem Zustand heraus kann entweder eine atomare Prüfung durchgeführt oder eine Streaming-Sitzung initiiert werden. Nach dem Beenden ([SWS_CRYPT_50022]) oder Abbrechen ([SWS_CRYPT_50023]) eines Streaming-Vorgangs dürfte der Kontext wieder für neue Prüfungen bereitstehen. Frage Q-04655e144a821dbd (offen)

verifier_states Uninitialisiert Uninitialisiert Bereit Bereit Uninitialisiert->Bereit SetKey() Bereit->Bereit SetKey() Bereit->Bereit Verify() [One-Shot] StreamingAktiv StreamingAktiv Bereit->StreamingAktiv Start() StreamingAktiv->Bereit Finish() StreamingAktiv->Bereit Cancel() StreamingAktiv->StreamingAktiv Update()

Zustandsdiagramm: Lebenszyklus und Zustandsübergänge des Verifikationskontexts. Quellen: [SWS_CRYPT_24115], [SWS_CRYPT_50018], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023], [SWS_CRYPT_24112]

Nutzungspfad

Für die Signaturprüfung stehen zwei komplementäre Verarbeitungspfade zur Verfügung:

  • One-Shot-Verifikation: Liegt die vollständige Nachricht im Speicher vor, kann nach der Schlüsselzuweisung über SetKey() ([SWS_CRYPT_24115]) direkt Verify() aufgerufen werden ([SWS_CRYPT_24112]). Unterstützt oder verlangt der Algorithmus anwendungsspezifische Kontextdaten, wird die überladene Variante mit zusätzlichem Kontextpuffer genutzt ([SWS_CRYPT_50024]). Beide Varianten liefern ein ara::core::Result<bool> zurück, dessen boolescher Wert die Gültigkeit der Signatur anzeigt.
  • Streaming-Verifikation: Bei großen Datenmengen oder schrittweise eintreffenden Datenblöcken wird nach SetKey() zunächst Start() aufgerufen ([SWS_CRYPT_50019], optional mit Kontextpuffer gemäß [SWS_CRYPT_50020]). Anschließend werden die Datenfragmente wiederholt mit Update() eingespeist ([SWS_CRYPT_50021]). Die maximale Puffergröße für einzelne Abschnitte kann vorab über GetMaximumChunkSize() ermittelt werden ([SWS_CRYPT_50025]). Den Abschluss bildet der Aufruf von Finish() unter Übergabe der Signatur und deren Format-Identifikator ([SWS_CRYPT_50022]). Ein laufendes Streaming kann jederzeit via Cancel() verworfen werden ([SWS_CRYPT_50023]).
Ablauf der Signaturprüfung im Streaming-ModusAnwendungVerifierPublicCtxSetKey(key)Result<void>Start()Result<void>loopDatenblöcke verarbeitenUpdate(data)Result<void>Finish(signature, signatureFormat)Result<bool>

Sequenzdiagramm: Schrittweiser Ablauf einer Signaturprüfung im Streaming-Verfahren. Quellen: [SWS_CRYPT_24115], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022]

Fehlerszenarien

Alle zustandsverändernden und verifizierenden Methoden arbeiten mit ara::core::Result und besitzen Rollback-Semantik bei Fehlern:

  • Schlüsselkonfiguration: Wird ein zum Algorithmus inkompatibler Schlüssel oder KeySlot übergeben, liefert SetKey() den Fehler CryptoErrc::kIncompatibleObject ([SWS_CRYPT_24115], [SWS_CRYPT_50018]). Fehlt dem Schlüssel das Nutzungsrecht kAllowSigVerification, schlägt der Aufruf mit CryptoErrc::kUsageViolation fehl ([SWS_CRYPT_24115]). Zudem meldet SetKey() CryptoErrc::kUnsupported, wenn der Kontext ausschließlich die jeweils andere Schlüsselform (KeySlot bzw. PublicKey) akzeptiert.
  • Ablauf- und Vorbedingungsfehler: Werden Update(), Finish() oder Cancel() ohne vorherigen erfolgreichen Start()-Aufruf aufgerufen, schlagen sie mit CryptoErrc::kProcessingNotStarted fehl ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023]). Der Aufruf von Start() oder Verify() ohne vorherigen Schlüsselbezug führt zu CryptoErrc::kUninitializedContext ([SWS_CRYPT_50019], [SWS_CRYPT_24112]). Bei referenzierten, aber leeren KeySlots wird CryptoErrc::kEmptyKeySlot gemeldet.
  • Daten- und Formatfehler: Ungültige Puffergrößen quittieren die Methoden mit CryptoErrc::kInvalidInputSize ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_24112]). Nicht unterstützte Signaturformate erzeugen CryptoErrc::kUnsupportedFormat, während strukturell fehlerhafte Signaturen CryptoErrc::kInvalidArgument auslösen ([SWS_CRYPT_50022], [SWS_CRYPT_24112]). Bei belegten Hardwareressourcen wird CryptoErrc::kBusyResource zurückgegeben.

Dieser Leitfaden basiert ausschließlich auf den Spezifikationen der AUTOSAR Adaptive Platform R25-11.

Mitgliederkarte

Klassendiagramm

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

G nara__crypto__cryp__VerifierPublicCtx35 VerifierPublicCtx + Cancel() + Finish() + GetMaximumChunkSize() + SetKey() + Start() + Update() + Verify() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__VerifierPublicCtx35->nara__crypto__cryp__CryptoContext85

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Methoden

Cancel function

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

virtual ara::core::Result< void > Cancel () noexcept=0;
Finish function

Finish the signature verification and return the verification result.

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update() or Verify() by this context.

virtual std::size_t GetMaximumChunkSize () const noexcept=0;
SetKey function 2

Configure the context to use the provided key.

Überladungen SetKey 2
virtual ara::core::Result< void > SetKey (PublicKey::Sptr key) noexcept=0; SWS_CRYPT_24115
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50018
Start function 2

Initialize the context for a new signature verification.

Überladungen Start 2
virtual ara::core::Result< void > Start () noexcept=0; SWS_CRYPT_50019
virtual ara::core::Result< void > Start (ReadOnlyMemRegion context) noexcept=0; SWS_CRYPT_50020
Update function

Update the signature verification context by a new part of the message.

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;
Verify function 2

Verify the signature of the provided message in a single call.

Überladungen Verify 2
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_24112
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_50024

Typaliase

Sptr type alias

Smart pointer of the interface.

Dokumentation der Methoden

function Cancel [SWS_CRYPT_50023] Upstream: RS_CRYPTO_02302

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

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

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

Verwendung und Semantik

Die Methode Cancel() bricht eine laufende Streaming-Operation ab, die zuvor durch Start() initiiert und noch nicht abgeschlossen wurde [SWS_CRYPT_50023]. Sie ist im Header ara/crypto/cryp/verifier_public_ctx.h als pure virtual Methode des Kontexts ara::crypto::cryp::VerifierPublicCtx definiert [SWS_CRYPT_50023]. Der Aufruf erfolgt synchron und ohne Argumente. Als Rückgabewert dient ein ara::core::Result<void>, welches im Erfolgsfall leer ist und den erfolgreichen Abbruch der Operation bestätigt [SWS_CRYPT_50023].

Fehlerbehandlung

Falls die Datenverarbeitung noch nicht durch den Aufruf der Methode Start() begonnen wurde, schlägt die Abbruchoperation fehl. In diesem Szenario liefert die Funktion ein Fehlerergebnis mit dem Fehlercode ara::crypto::CryptoErrc::kProcessingNotStarted unter Gewährleistung von Rollback-Semantik zurück [SWS_CRYPT_50023].

Nebenläufigkeit und Einschränkungen

Die Spezifikation weist die Methode als thread-sicher (thread-safe) und ausnahmesicher (exception safe) mit der Kennzeichnung noexcept aus [SWS_CRYPT_50023]. Interpretation: Nach dem erfolgreichen Abbruch dürfte der Kontext wieder in den Ausgangszustand vor Beginn der Verarbeitung zurückfallen, sodass ein erneuter Streaming-Vorgang begonnen werden kann. Frage Q-d80d09c8a8311bbc (offen)

Zusammenspiel im Modul crypt

Dieses einheitliche Abbruchmuster mit identischer Signatur und Fehlerbehandlung gilt konsistent für alle Streaming-Kontexte des Moduls crypt:

Dieser Nutzungshinweis wurde automatisiert auf Basis der AUTOSAR-Spezifikation R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

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

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#ccbcbc55
Content hash
ccbcbc55
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated Version: rel:R25-11#ccbcbc55 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_50023@rel:R25-11#ccbcbc55
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 Finish [SWS_CRYPT_50022] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

Finish the signature verification and return the verification result.

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

Die Methode Finish in ara::crypto::cryp::VerifierPublicCtx schließt eine Signaturprüfung ab und liefert das Verifikationsergebnis zurück [SWS_CRYPT_50022]. Sie nimmt über den Eingabepuffer signature (Typ ReadOnlyMemRegion) die zu prüfende Signatur sowie über signatureFormat (Typ FormatId) deren Format entgegen [SWS_CRYPT_50022]. Der Aufruf erfolgt synchron und ist gemäß Spezifikation thread-safe sowie exception safe deklariert [SWS_CRYPT_50022].

Als Rückgabewert dient ein ara::core::Result<bool> [SWS_CRYPT_50022]: Bei erfolgreicher Validierung der Signatur enthält das Ergebnis true, bei inhaltlich ungültiger Signatur false. Tritt hingegen ein Verarbeitungsfehler auf, wird ein entsprechender Fehlercode zurückgegeben [SWS_CRYPT_50022]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: Die Operation wurde zuvor nicht erfolgreich gestartet (Rollback-Semantik) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidInputSize: Die Puffergröße von signature ist ungültig (Rollback-Semantik) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kUnsupportedFormat: Das angegebene Format signatureFormat wird nicht unterstützt (Rollback-Semantik) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidArgument: Die Signatur entspricht nicht dem spezifizierten Format (Rollback-Semantik) [SWS_CRYPT_50022].

Im kryptografischen Ablauf bildet diese Funktion das Gegenstück zur Signaturerzeugung via ara::crypto::cryp::SignerPrivateCtx::Finish [SWS_CRYPT_50040], welche eine Signatur in einen Ausgabepuffer schreibt. Sämtliche gemeldeten Fehler besitzen Rollback-Semantik [SWS_CRYPT_50022], sodass der Kontextzustand bei einem Scheitern konsistent bleibt.

Dieser Text wurde von einer KI generiert und dient als Orientierungshilfe.

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

Parameter (in)

ParameterBeschreibung
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature generation has not been started sucessfully.
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50022
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50022@rel:R25-11#4737b352
Content hash
4737b352
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50022
Status: valid/unmigrated Version: rel:R25-11#4737b352 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_50022@rel:R25-11#4737b352
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 GetMaximumChunkSize [SWS_CRYPT_50025] Upstream: RS_CRYPTO_02309

virtual std::size_t GetMaximumChunkSize () const noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update() or Verify() by this context.

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

Rückgabewert

TypBeschreibung
std::size_tthe maximum buffer size in bytes

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50025
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50025@rel:R25-11#85142237
Content hash
85142237
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50025
Status: valid/unmigrated Version: rel:R25-11#85142237 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_50025@rel:R25-11#85142237
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 SetKey [SWS_CRYPT_24115] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (PublicKey::Sptr key) noexcept=0;

Configure the context to use the provided key.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 0edd4bb26214 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode SetKey konfiguriert eine Instanz von VerifierPublicCtx für die Verwendung eines konkreten öffentlichen Schlüssels zur Signaturprüfung ([SWS_CRYPT_24115]). Über den Parameter key wird ein Zeiger vom Typ PublicKey::Sptr übergeben. Der Aufruf erfolgt synchron und gibt ein ara::core::Result<void> zurück, das im Erfolgsfall leer ist oder einen spezifischen Fehlercode kapselt.

Die Operation ist laut Spezifikation threadsicher und ausnahmesicher (exception safe) ausgelegt ([SWS_CRYPT_24115]). Tritt während der Schlüsselbindung ein Fehler auf, greift für alle Fehlerfälle eine Rollback-Semantik, sodass der Kontext in einem konsistenten Zustand verbleibt:

  • CryptoErrc::kIncompatibleObject: Der übergebene Schlüssel ist mit dem Signaturprüfungskontext inkompatibel ([SWS_CRYPT_24115]).
  • CryptoErrc::kUsageViolation: Die Berechtigungen des Schlüssels erlauben keine Signaturprüfung (Fehlen des Nutzungsflags für Signaturverifikation) ([SWS_CRYPT_24115]).
  • ara::crypto::CryptoErrc::kUnsupported: Die Kontextimplementierung unterstützt ausschließlich das Binden eines Schlüssels über einen KeySlot ([SWS_CRYPT_24115]).

Im kryptografischen Workflow bildet SetKey das öffentliche Gegenstück zu SignerPrivateCtx::SetKey ([SWS_CRYPT_23515]). Sofern ein Kontext die direkte Schlüsselübergabe via PublicKey::Sptr nicht erlaubt oder Schlüssel in gesicherten Slots verwaltet werden, steht alternativ die Überladung mittels KeySlot::Sptr zur Verfügung ([SWS_CRYPT_50018]).

Dieser Nutzungshinweis wurde automatisiert aus AUTOSAR-Spezifikationsdaten erstellt.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
keythe source key object

Rückgabewert

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

Fehler

FehlercodeBeschreibung
CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this signature verification context
CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Verification
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_24115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24115@rel:R25-11#b4f2582a
Content hash
b4f2582a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24115
Status: valid/unmigrated Version: rel:R25-11#4657cfda 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_24115@rel:R25-11#4657cfda
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b4f2582a2026-09-30
  • R20-11rel:R20-11#c67a48952026-10-14
  • R21-11rel:R21-11#68e4b4312026-10-14
  • R22-11rel:R22-11#c39e34c92026-10-14
  • R23-11rel:R23-11#8afac6e02026-10-14
  • R24-11rel:R24-11#e169f3652026-10-14
  • R25-11rel:R25-11#4657cfda2026-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 SetKey [SWS_CRYPT_50018] 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 signature verification is started.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 529cb5e9ea06 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode SetKey der Klasse ara::crypto::cryp::VerifierPublicCtx konfiguriert den Verifikationskontext für die Nutzung eines Schlüssels, der in einem übergebenen KeySlot hinterlegt ist [SWS_CRYPT_50018]. Der Schlüssel wird zu dem Zeitpunkt herangezogen, an dem die Signaturprüfung gestartet wird [SWS_CRYPT_50018].

Als Parameter dient ein Smart Pointer keySlot vom Typ KeySlot::Sptr, welcher einen öffentlichen Schlüssel enthält [SWS_CRYPT_50018]. Die Funktion arbeitet synchron und gibt ein ara::core::Result<void> zurück, um einen erfolgreichen Abschluss oder Fehler anzuzeigen [SWS_CRYPT_50018].

Fehlerbehandlung und Semantik

Die Operation ist als noexcept und exception safe spezifiziert [SWS_CRYPT_50018]. Tritt ein Fehler auf, greift eine Rollback-Semantik [SWS_CRYPT_50018]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: Der bereitgestellte KeySlot ist mit diesem Kontext inkompatibel [SWS_CRYPT_50018].
  • ara::crypto::CryptoErrc::kUnsupported: Der Kontext unterstützt ausschließlich das direkte Setzen eines PublicKey [SWS_CRYPT_50018].

Nebenläufigkeit und Zusammenspiel

Die Methode ist thread-safe spezifiziert [SWS_CRYPT_50018]. Als Alternative zum KeySlot bietet VerifierPublicCtx eine Überladung, um einen PublicKey direkt zu setzen [SWS_CRYPT_24115]. Eine entsprechende Schlüsselkonfiguration über einen KeySlot existiert analog auch in anderen Kontexten wie SignerPrivateCtx [SWS_CRYPT_50036] oder MessageAuthnCodeCtx [SWS_CRYPT_50026].

Dieser Nutzungshinweis wurde von einer KI auf Basis der Spezifikation generiert.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a public 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 PublicKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50018@rel:R25-11#9f29f516
Content hash
9f29f516
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50018
Status: valid/unmigrated Version: rel:R25-11#9f29f516 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_50018@rel:R25-11#9f29f516
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 Start [SWS_CRYPT_50019] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature verification.

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

Verwendung

Die synchrone Methode Start() der Schnittstelle ara::crypto::cryp::VerifierPublicCtx ([SWS_CRYPT_50019]) initialisiert den Kontext für eine neue kryptografische Signaturprüfung im Streaming-Betrieb. Die Funktion nimmt keine Übergabeparameter entgegen, ist als noexcept deklariert und gibt ein ara::core::Result<void> zurück, das im Erfolgsfall leer ist.

Fehlerbehandlung und Rollback

Tritt bei der Ausführung ein Fehler auf, greift die Rollback-Semantik ([SWS_CRYPT_50019]), wodurch der Kontext in einem konsistenten Zustand verbleibt. Mögliche Fehlerursachen sind:

  • UninitializedContext: Dem Kontext wurde vorab kein kryptografischer Schlüssel zugewiesen.
  • ara::crypto::CryptoErrc::kUsageViolation: Der zugewiesene Schlüssel ist nicht für die Signaturprüfung (kAllowSig Verification) freigegeben.
  • ara::crypto::CryptoErrc::kEmptyKeySlot: Ein für die Verifikation konfigurierter KeySlot ist gegenwärtig leer.
  • ara::crypto::CryptoErrc::kUnsupported: Der Kontext unterstützt kein Streaming oder das Verfahren setzt zwingend einen Kontextwert voraus.
  • ara::crypto::CryptoErrc::kBusyResource: Eine für die Operation benötigte Ressource ist derzeit belegt.

Nebenläufigkeit und Zusammenspiel

Obwohl die Spezifikation die Methode als threadsicher ausweist ([SWS_CRYPT_50019]), dürfte ein paralleler Aufruf auf derselben Kontextinstanz während einer laufenden Verifikation die bestehende Operation zurücksetzen oder an belegten Ressourcen scheitern. Frage Q-af5e08ff9d905a29 (offen)

Nach erfolgreicher Initialisierung werden die Nachrichtenteile sequenziell über Update() ([SWS_CRYPT_50021]) übergeben. Eine laufende Streaming-Operation kann bei Bedarf vorzeitig mit Cancel() ([SWS_CRYPT_50023]) abgebrochen werden. Falls der Algorithmus zwingend einen Kontextwert verlangt, muss stattdessen die überladene Funktion Start(ReadOnlyMemRegion context) ([SWS_CRYPT_50020]) aufgerufen werden.

Dieser Nutzungshinweis wurde automatisiert auf Basis der AUTOSAR-Spezifikation R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm requires setting a context value
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50019@rel:R25-11#d79f5341
Content hash
d79f5341
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50019
Status: valid/unmigrated Version: rel:R25-11#d79f5341 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_50019@rel:R25-11#d79f5341
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 Start [SWS_CRYPT_50020] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start (ReadOnlyMemRegion context) noexcept=0;

Initialize the context for a new signature verification.

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

Verwendung

Die Funktion Start initialisiert gemäß [SWS_CRYPT_50020] einen Verifikationskontext der Klasse ara::crypto::cryp::VerifierPublicCtx für eine neue Signaturprüfung. Als Eingabeparameter nimmt sie context vom Typ ReadOnlyMemRegion entgegen, der einen anwendungsspezifischen Kontextwert bereitstellt. Als Alternative ohne Kontextdaten existiert die Überladung [SWS_CRYPT_50019]. Der Rückgabewert ist ara::core::Result<void>; Interpretation: Da weder Callbacks noch Zukunfts-Objekte definiert sind, dürfte der Aufruf rein synchron abgewickelt werden. Frage Q-4e10cdb1a4343a3a (offen)

Fehlerbehandlung

Im Fehlerfall liefert die Funktion ein ara::core::Result mit einem passenden Fehlercode aus ara::crypto::CryptoErrc, wobei eine Rollback-Semantik spezifiziert ist [SWS_CRYPT_50020]:

  • kUninitializedContext: Der Kontext wurde noch nicht durch Zuweisen eines Schlüssels initialisiert.
  • kEmptyKeySlot: Ein konfigurierter KeySlot ist gegenwärtig leer.
  • kUsageViolation: Die erlaubte Verwendung des zugewiesenen Schlüssels umfasst nicht kAllowSigVerification.
  • kInvalidInputSize: Die Puffergröße des übergebenen Kontextwerts ist für den Algorithmus ungültig.
  • kUnsupported: Der Kontext unterstützt kein Streaming oder der Algorithmus unterstützt das Setzen eines Kontextwerts nicht.
  • kBusyResource: Eine erforderliche Ressource ist belegt.

Nebenläufigkeit und Einschränkungen

Gemäß [SWS_CRYPT_50020] ist die Methode als thread-safe sowie exception-safe eingestuft. Sie wirft keine Ausnahmen (noexcept).

Zusammenspiel

Nach erfolgreicher Ausführung von Start kann die Eingabenachricht über wiederholte Aufrufe von Update schrittweise übermittelt werden [SWS_CRYPT_50021]. Ein laufender Streaming-Vorgang, der durch Start eingeleitet wurde, kann bei Bedarf über Cancel vorzeitig abgebrochen werden [SWS_CRYPT_50023].

Dieser Text wurde automatisch erstellt. Alle Angaben basieren ausschließlich auf der AUTOSAR-Spezifikation.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
contexta context value

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm does not support setting a context value
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 key does not include kAllowSig Verification
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the context is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50020
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50020@rel:R25-11#4700c295
Content hash
4700c295
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50020
Status: valid/unmigrated Version: rel:R25-11#4700c295 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_50020@rel:R25-11#4700c295
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 Update [SWS_CRYPT_50021] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;

Update the signature verification context by a new part of the message.

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

Verwendung

Die Methode Update() dient dazu, den Kontext zur Signaturprüfung schrittweise mit einem weiteren Teil der Eingabenachricht zu aktualisieren [SWS_CRYPT_50021]. Als Parameter wird ein Speicherbereich data vom Typ ReadOnlyMemRegion übergeben. Die Funktion liefert ein ara::core::Result<void> zurück; Interpretation: Aufgrund dieses Rückgabetyps dürfte die Verarbeitung synchron erfolgen. Frage Q-f98391030b3b4684 (offen)

Fehlerbehandlung

Im Fehlerfall wird ein entsprechender Fehlercode mit Rollback-Semantik zurückgegeben [SWS_CRYPT_50021]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: Die Signaturprüfung wurde nicht zuvor durch Aufruf der Methode Start() initiiert [SWS_CRYPT_50021].
  • ara::crypto::CryptoErrc::kInvalidInputSize: Die Größe der bereitgestellten Daten in data wird nicht unterstützt [SWS_CRYPT_50021].

Nebenläufigkeit und Zusammenspiel

Die Operation ist in der Spezifikation als thread-safe und exception safe eingestuft [SWS_CRYPT_50021]. Vor dem Aufruf muss zwingend die Initialisierung via Start() erfolgt sein [SWS_CRYPT_50021]. Um zu verhindern, dass kInvalidInputSize auftritt, kann die maximal zulässige Puffergröße für einzelne Aufrufe über die Methode GetMaximumChunkSize() desselben Kontexts abgefragt werden [SWS_CRYPT_50025]. Das komplementäre Gegenstück zur nachrichtenweisen Signaturerzeugung stellt Update() in SignerPrivateCtx dar [SWS_CRYPT_50039].

Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikation generiert.

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

Parameter (in)

ParameterBeschreibung
dataa part of the input message that should be processed

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature verification was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50021
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50021@rel:R25-11#353f95ae
Content hash
353f95ae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50021
Status: valid/unmigrated Version: rel:R25-11#353f95ae 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_50021@rel:R25-11#353f95ae
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 Verify [SWS_CRYPT_24112] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message in a single call.

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

Verwendung

Die Methode Verify des Kontexts ara::crypto::cryp::VerifierPublicCtx dient dazu, die Signatur einer bereitgestellten Nachricht in einem einzigen Aufruf zu verifizieren [SWS_CRYPT_24112]. Als Parameter werden der Nachrichtenpuffer message, die Signatur signature sowie das Format signatureFormat übergeben [SWS_CRYPT_24112]. Der Rückgabewert ara::core::Result<bool> enthält bei erfolgreicher Prüfung true, bei Nichtübereinstimmung false oder einen Fehlercode [SWS_CRYPT_24112]. Interpretation: Aufgrund des synchronen Ergebnistyps dürfte der Prüfvorgang blockierend im aufrufenden Thread ablaufen. Frage Q-671054c6e2b581c6 (offen)

Fehlerbehandlung und Nebenläufigkeit

Die Funktion ist als exception safe und thread-safe spezifiziert [SWS_CRYPT_24112]. Im Fehlerfall greift für die Fehlercodes eine Rollback-Semantik [SWS_CRYPT_24112]. Mögliche Fehlerursachen umfassen:

  • UninitializedContext, wenn der Kontext nicht mit einem Schlüssel initialisiert wurde [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kEmptyKeySlot bei leerem Schlüssel-Slot oder kUsageViolation, wenn dem Schlüssel das Recht kAllowSig Verification fehlt [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kInvalidInputSize bei unzulässiger Puffergröße [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kUnsupportedFormat oder kInvalidArgument bei fehlerhaftem oder inkompatiblem Signaturformat [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kBusyResource, falls benötigte Ressourcen belegt sind [SWS_CRYPT_24112].

Zusammenspiel

Die maximale Puffergröße für Einzelaufrufe kann über GetMaximumChunkSize() abgefragt werden [SWS_CRYPT_50025]. Verlangt der Algorithmus zwingend einen Kontextwert, wird ara::crypto::CryptoErrc::kUnsupported zurückgegeben [SWS_CRYPT_24112]; in diesem Fall ist die Überladung mit zusätzlichem context-Parameter zu wählen [SWS_CRYPT_50024]. Für Prüfungen von Message Authentication Codes existiert abgrenzend ara::crypto::cryp::MessageAuthnCodeCtx::Verify [SWS_CRYPT_50031].

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm requires a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format.
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24112@rel:R25-11#fff71a40
Content hash
fff71a40
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24112
Status: valid/unmigrated Version: rel:R25-11#5528778e 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_24112@rel:R25-11#5528778e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fff71a402026-09-30
  • R19-11rel:R19-11#66da619a2026-10-14
  • R20-11rel:R20-11#a7cb40442026-10-14
  • R21-11rel:R21-11#4c73f9ac2026-10-14
  • R22-11rel:R22-11#9330d7cf2026-10-14
  • R23-11rel:R23-11#25763dfd2026-10-14
  • R24-11rel:R24-11#c2cd046c2026-10-14
  • R25-11rel:R25-11#5528778e2026-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 Verify [SWS_CRYPT_50024] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message with context in a single call.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 736777e34122 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die synchrone Methode Verify prüft die digitale Signatur einer übergebenen Nachricht unter Berücksichtigung eines benutzerdefinierten Kontextwerts in einem einzigen Aufruf ([SWS_CRYPT_50024]). Als Eingabeparameter erwartet die Methode die Puffer message, context und signature jeweils als ReadOnlyMemRegion sowie das Format der Signatur über signatureFormat ([SWS_CRYPT_50024]). Der Rückgabewert ist ein ara::core::Result<bool>: Er enthält true bei erfolgreicher Verifikation, false bei fehlerhafter Signatur oder einen entsprechenden Fehlercode ([SWS_CRYPT_50024]).

Im Fehlerfall greift eine Rollback-Semantik ([SWS_CRYPT_50024]). Spezifische Fehlercodes umfassen unter anderem:

  • UninitializedContext, wenn der Verifikationskontext noch nicht mit einem Schlüsselwert initialisiert wurde ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kInvalidInputSize bei unzulässiger Puffergröße ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupported, falls der gewählte Signaturalgorithmus die Angabe eines Kontextwerts nicht unterstützt ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupportedFormat bzw. ara::crypto::CryptoErrc::kInvalidArgument, wenn das angegebene Signaturformat nicht unterstützt wird oder die Signatur nicht dem Format entspricht ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUsageViolation, wenn die erlaubte Schlüsselverwendung nicht kAllowSigVerification einschließt, sowie ara::crypto::CryptoErrc::kEmptyKeySlot und ara::crypto::CryptoErrc::kBusyResource ([SWS_CRYPT_50024]).

Die Methode ist als const noexcept deklariert, gilt als ausnahmesicher und ist als thread-safe spezifiziert ([SWS_CRYPT_50024]). Im Zusammenspiel mit dem Kontext kann die maximale Puffergröße für Einzelaufrufe über GetMaximumChunkSize ermittelt werden ([SWS_CRYPT_50025]). Für Verifikationen ohne Kontext steht die alternative Überladung von Verify zur Verfügung ([SWS_CRYPT_24112]).

Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikation generiert.

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
contexta user supplied "context"
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm does not support a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50024
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50024@rel:R25-11#424fa98e
Content hash
424fa98e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50024
Status: valid/unmigrated Version: rel:R25-11#424fa98e 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_50024@rel:R25-11#424fa98e
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_24101] Upstream: RS_CRYPTO_02204

using Sptr = std::shared_ptr<VerifierPublicCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24101@rel:R25-11#4ff46846
Content hash
4ff46846
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24101
Status: valid/unmigrated Version: rel:R25-11#44b9f060 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_24101@rel:R25-11#44b9f060
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4ff468462026-09-30
  • R19-11rel:R19-11#723b4f232026-10-14
  • R20-11rel:R20-11#03e0c2472026-10-14
  • R21-11rel:R21-11#03e0c2472026-10-14
  • R22-11rel:R22-11#cd4d7bb92026-10-14
  • R23-11rel:R23-11#4372989f2026-10-14
  • R24-11rel:R24-11#4372989f2026-10-14
  • R25-11rel:R25-11#44b9f0602026-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