function Cancel [SWS_CRYPT_50069] 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.
Method Cancel of class ara::crypto::cryp::DecryptorPrivateCtx, defined in ara/crypto/cryp/decryptor_private_ctx.h, aborts an ongoing streaming operation that was previously initiated by means of Start() and has not yet been completed [SWS_CRYPT_50069]. The call takes no input parameters and returns a ara::core::Result<void> as return value [SWS_CRYPT_50069]. If the abort of the streaming processing was successful, the object contains an empty result; otherwise, it conveys an occurred error [SWS_CRYPT_50069]. The purely virtual interface is declared as noexcept, exhibits complete exception safety, and is designated as thread-safe for concurrent access [SWS_CRYPT_50069].
In error handling and pre-conditions, the exact sequence must be observed: If data processing was not previously initiated by calling the Start() method, the operation fails and returns the specific error code ara::crypto::CryptoErrc::kProcessingNotStarted with rollback semantics [SWS_CRYPT_50069]. The caller must therefore ensure that an active operation already exists prior to the abort in order to avoid this error state [SWS_CRYPT_50069].
In interaction with the overall module architecture of crypt, Cancel follows a standardized design pattern for stateful streaming operations. The related cryptographic contexts 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::AuthCipherCtx [SWS_CRYPT_50077], and ara::crypto::cryp::EncryptorPublicCtx [SWS_CRYPT_50089] share the same signature, return semantics, and error handling.
This usage note was generated automatically based on the AUTOSAR specification R25-11.
Implementer's Guide to follow (complexity I1)
| Header-Datei | #include "ara/crypto/cryp/decryptor_private_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::DecryptorPrivateCtx |
| 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_50069- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50069@rel:R25-11#2a0972af- Content hash
2a0972af- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50069
Status: valid/unmigrated
Version: rel:R25-11#2a0972af
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_50069@rel:R25-11#2a0972af
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 · German original