function Cancel [SWS_CRYPT_50027] 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 pure virtual method Cancel in interface ara::crypto::cryp::MessageAuthnCodeCtx serves to abort an ongoing streaming operation that was previously initiated via Start() and has not yet completed [SWS_CRYPT_50027]. The call is synchronous, takes no arguments, and returns an empty ara::core::Result<void> on success, confirming the successful abort of the operation [SWS_CRYPT_50027].
If data processing was not properly initiated by the Start() method prior to the call, execution fails. In this case, the function returns a result with the specific error code ara::crypto::CryptoErrc::kProcessingNotStarted while ensuring rollback semantics [SWS_CRYPT_50027]. In terms of execution safety, the interface is specified as thread-safe and guarantees exception safety, as it is declared as noexcept and does not throw exceptions [SWS_CRYPT_50027].
All related context interfaces of the cryptography module share the identical abort behavior for streaming operations that have not yet been finalized:
VerifierPublicCtxfor verifying digital signatures [SWS_CRYPT_50023],SignerPrivateCtxfor generating digital signatures [SWS_CRYPT_50041],SymmetricCipherCtxfor symmetric encryptions [SWS_CRYPT_50046],HashFunctionCtxfor hash computations [SWS_CRYPT_50058],DecryptorPrivateCtxfor asymmetric decryptions [SWS_CRYPT_50069],AuthCipherCtxfor authenticated encryptions [SWS_CRYPT_50077], as well asEncryptorPublicCtxfor asymmetric encryptions [SWS_CRYPT_50089].
Interpretation: Aborting the incomplete operation likely returns the context to a clean state that allows subsequent reinitialization via Start(). Question Q-a8fa5cb85c3dab50 (open)
This usage note was generated automatically based on the AUTOSAR Adaptive R25-11 specification.
Implementer's Guide to follow (complexity I1)
| Header-Datei | #include "ara/crypto/cryp/message_authn_code_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::MessageAuthnCodeCtx |
| 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_50027- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50027@rel:R25-11#c993fffd- Content hash
c993fffd- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50027
Status: valid/unmigrated
Version: rel:R25-11#c993fffd
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_50027@rel:R25-11#c993fffd
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