function Cancel [SWS_CRYPT_50041] 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.
Die Methode Cancel() dient dem synchronen Abbruch einer laufenden, noch nicht abgeschlossenen Streaming-Operation innerhalb der Klasse ara::crypto::cryp::SignerPrivateCtx, welche zuvor durch einen Aufruf von Start() initiiert wurde [SWS_CRYPT_50041]. Die rein virtuelle Schnittstelle virtual ara::core::Result<void> Cancel() noexcept = 0; ist im Header ara/crypto/cryp/signer_private_ctx.h deklariert, nimmt keine Übergabeparameter entgegen und signalisiert den erfolgreichen Abbruch über ein leeres ara::core::Result<void> [SWS_CRYPT_50041]. Für den Aufrufer ist die Methode als ausnahmesicher (exception safe) und nebenläufig threadsicher (thread-safe) spezifiziert [SWS_CRYPT_50041].
In Bezug auf die Aufrufreihenfolge und Fehlerbehandlung setzt Cancel() zwingend eine aktive Verarbeitung voraus: Wurde die Datenverarbeitung zuvor nicht durch einen Aufruf der Methode Start() eingeleitet, schlägt der Abbruch fehl und liefert den Fehlercode ara::crypto::CryptoErrc::kProcessingNotStarted mit definierter Rollback-Semantik zurück [SWS_CRYPT_50041]. Interpretation: Nach einem erfolgreichen Aufruf von Cancel() dürfte der Kontext wieder in einen ungestarteten Grundzustand zurückkehren, sodass ein neuer Signatur- oder Streaming-Vorgang begonnen werden kann. Frage Q-348fb3ae43e424c9 (offen)
Das Design folgt einem einheitlichen Prinzip für alle Streaming-Operationen im Kryptomodul. Vollkommen identische Signaturen und Fehlersemantiken existieren für verwandte Kontexte wie VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] sowie EncryptorPublicCtx [SWS_CRYPT_50089].
Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikationsanforderungen von AUTOSAR Adaptive erstellt.
Implementer's Guide folgt (Komplexität I1)
| Header-Datei | #include "ara/crypto/cryp/signer_private_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::SignerPrivateCtx |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kProcessingNotStarted | rollback_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_50041- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50041@rel:R25-11#5f721a2b- Content hash
5f721a2b- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50041
Status: valid/unmigrated
Version: rel:R25-11#5f721a2b
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_50041@rel:R25-11#5f721a2b
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-medium· 2026-10-13