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.
The method Cancel() serves to synchronously abort an ongoing, not yet completed streaming operation within class ara::crypto::cryp::SignerPrivateCtx that was previously initiated by a call to Start() [SWS_CRYPT_50041]. The purely virtual interface virtual ara::core::Result<void> Cancel() noexcept = 0; is declared in header ara/crypto/cryp/signer_private_ctx.h, takes no input parameters, and signals successful abort via an empty ara::core::Result<void> [SWS_CRYPT_50041]. For the caller, the method is specified as exception-safe (exception safe) and concurrently thread-safe (thread-safe) [SWS_CRYPT_50041].
Regarding call sequence and error handling, Cancel() strictly requires active processing: If data processing was not previously initiated by a call to method Start(), the abort fails and returns the error code ara::crypto::CryptoErrc::kProcessingNotStarted with defined rollback semantics [SWS_CRYPT_50041]. Interpretation: After a successful call to Cancel(), the context should return to an unstarted basic state so that a new signature or streaming process can be started. Question Q-348fb3ae43e424c9 (open)
The design follows a uniform principle for all streaming operations in the crypto module. Completely identical signatures and error semantics exist for related contexts such as VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077], and EncryptorPublicCtx [SWS_CRYPT_50089].
This usage note was created automatically based on the AUTOSAR Adaptive specification requirements.
Implementer's Guide to follow (complexity 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-low· 2026-10-13 · German original