function Cancel [SWS_CRYPT_50023] 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.
Usage and Semantics
The method Cancel() aborts an ongoing streaming operation that was previously initiated by Start() and has not yet been completed [SWS_CRYPT_50023]. It is defined in header ara/crypto/cryp/verifier_public_ctx.h as a pure virtual method of context ara::crypto::cryp::VerifierPublicCtx [SWS_CRYPT_50023]. The call is synchronous and takes no arguments. The return value is a ara::core::Result<void>, which is empty on success and confirms the successful cancellation of the operation [SWS_CRYPT_50023].
Error handling
If data processing has not yet been started by calling the method Start(), the abort operation fails. In this scenario, the function returns an error result with error code ara::crypto::CryptoErrc::kProcessingNotStarted while guaranteeing rollback semantics [SWS_CRYPT_50023].
Concurrency and Limitations
The specification identifies the method as thread-safe and exception safe with the designation noexcept [SWS_CRYPT_50023]. Interpretation: After a successful abort, the context is likely to revert to the initial state prior to the start of processing so that a new streaming process can be started. Question Q-d80d09c8a8311bbc (open)
Interaction in Module crypt
This uniform cancellation pattern with identical signature and error handling applies consistently to all streaming contexts of module crypt:
MessageAuthnCodeCtxfor Message Authentication Codes [SWS_CRYPT_50027],SignerPrivateCtxfor digital signature generation [SWS_CRYPT_50041],SymmetricCipherCtxfor symmetric encryption and decryption [SWS_CRYPT_50046],HashFunctionCtxfor cryptographic hash operations [SWS_CRYPT_50058],DecryptorPrivateCtxfor asymmetric decryption [SWS_CRYPT_50069],AuthCipherCtxfor authenticated encryption [SWS_CRYPT_50077], andEncryptorPublicCtxfor asymmetric encryption [SWS_CRYPT_50089].
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/verifier_public_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::VerifierPublicCtx |
| 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_50023- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#ccbcbc55- Content hash
ccbcbc55- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated
Version: rel:R25-11#ccbcbc55
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_50023@rel:R25-11#ccbcbc55
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