functie 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.
De methode Cancel() dient voor het synchroon afbreken van een lopende, nog niet voltooide streamingoperatie binnen de klasse ara::crypto::cryp::SignerPrivateCtx, die eerder werd geïnitieerd door een aanroep van Start() [SWS_CRYPT_50041]. De zuiver virtuele interface virtual ara::core::Result<void> Cancel() noexcept = 0; is gedeclareerd in header ara/crypto/cryp/signer_private_ctx.h, accepteert geen invoerparameters en signaleert de succesvolle afbreking via een lege ara::core::Result<void> [SWS_CRYPT_50041]. Voor de aanroeper is de methode gespecificeerd als uitzonderingsveilig (exception safe) en concurrent thread-safe [SWS_CRYPT_50041].
Met betrekking tot de aanroepvolgorde en foutafhandeling vereist Cancel() dwingend een actieve verwerking: als de gegevensverwerking niet eerder is ingeleid door een aanroep van de methode Start(), mislukt het afbreken en retourneert deze de foutcode ara::crypto::CryptoErrc::kProcessingNotStarted met gedefinieerde rollback-semantiek [SWS_CRYPT_50041]. Interpretatie: na een succesvolle aanroep van Cancel() keert de context vermoedelijk terug naar een niet-gestarte basistoestand, zodat een nieuw handtekening- of streamingproces kan worden gestart. Vraag Q-348fb3ae43e424c9 (open)
Het ontwerp volgt een uniform principe voor alle streamingoperaties in de cryptomodule. Volledig identieke signaturen en foutsemantieken bestaan voor verwante contexten zoals VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] en EncryptorPublicCtx [SWS_CRYPT_50089].
Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de specificatie-eisen van AUTOSAR Adaptive.
Implementer's Guide volgt (complexiteit 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#17a14007- Content hash
17a14007- 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-low· 2026-10-13 · Duits origineel