functie Cancel [SWS_CRYPT_50077] 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.
Gebruik
De methode Cancel() van de interface ara::crypto::cryp::AuthCipherCtx breekt een actieve streamingoperatie af die eerder via Start() werd ingeleid en nog niet is voltooid [SWS_CRYPT_50077]. De functie wordt ter beschikking gesteld via de header ara/crypto/cryp/auth_cipher_ctx.h en werkt synchroon zonder invoerparameters [SWS_CRYPT_50077]. Deze retourneert een ara::core::Result<void>, die bij succes leeg is.
Foutafhandeling en randvoorwaarden
Een beëindiging vereist dat de gegevensverwerking daadwerkelijk vooraf is gestart door Start(). Is de streamingoperatie niet gestart, dan mislukt de aanroep en levert deze de foutcode ara::crypto::CryptoErrc::kProcessingNotStarted met rollback-semantiek op [SWS_CRYPT_50077].
Concurrency
De operatie is gedeclareerd als noexcept en volgens de specificatie geclassificeerd als zowel thread-safe als exception safe [SWS_CRYPT_50077].
Samenspel
Het door Cancel() gerealiseerde afbreekpatroon is gestandaardiseerd in module crypt. Een identieke interfacesemantiek en dezelfde foutcode ara::crypto::CryptoErrc::kProcessingNotStarted zijn gedefinieerd voor corresponderende streamingcontexten:
ara::crypto::cryp::VerifierPublicCtx[SWS_CRYPT_50023]ara::crypto::cryp::MessageAuthnCodeCtx[SWS_CRYPT_50027]ara::crypto::cryp::SignerPrivateCtx[SWS_CRYPT_50041]ara::crypto::cryp::SymmetricCipherCtx[SWS_CRYPT_50046]ara::crypto::cryp::HashFunctionCtx[SWS_CRYPT_50058]ara::crypto::cryp::DecryptorPrivateCtx[SWS_CRYPT_50069]ara::crypto::cryp::EncryptorPublicCtx[SWS_CRYPT_50089]
Deze gebruiksinstructie is geautomatiseerd gegenereerd op basis van de AUTOSAR-specificatie R25-11.
Implementer's Guide volgt (complexiteit I1)
| Header-Datei | #include "ara/crypto/cryp/auth_cipher_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::AuthCipherCtx |
| 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_50077- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50077@rel:R25-11#1fee30a8- Content hash
1fee30a8- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50077
Status: valid/unmigrated
Version: rel:R25-11#863ca4bd
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_50077@rel:R25-11#863ca4bd
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