फ़ंक्शन 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.
विधि Cancel() क्लास ara::crypto::cryp::SignerPrivateCtx के भीतर एक चालू, अभी तक पूर्ण नहीं हुए स्ट्रीमिंग ऑपरेशन को सिंक्रोनस रूप से निरस्त करने का कार्य करती है, जिसे पहले Start() के कॉल द्वारा आरंभ किया गया था [SWS_CRYPT_50041]। शुद्ध वर्चुअल इंटरफ़ेस virtual ara::core::Result<void> Cancel() noexcept = 0; हेडर ara/crypto/cryp/signer_private_ctx.h में घोषित है, कोई इनपुट पैरामीटर स्वीकार नहीं करता है और एक खाली ara::core::Result<void> के माध्यम से सफल निरस्तीकरण का संकेत देता है [SWS_CRYPT_50041]। कॉलर के लिए, विधि को अपवाद-सुरक्षित (exception safe) और समवर्ती रूप से थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50041]।
कॉल क्रम और त्रुटि प्रबंधन के संबंध में, Cancel() अनिवार्य रूप से सक्रिय प्रसंस्करण की पूर्व-अपेक्षा करता है: यदि डेटा प्रसंस्करण को पहले विधि Start() के कॉल द्वारा शुरू नहीं किया गया था, तो निरस्तीकरण विफल हो जाता है और परिभाषित रोलबैक सिमेंटिक्स के साथ त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted वापस लौटाता है [SWS_CRYPT_50041]। Interpretation: Cancel() के सफल कॉल के बाद, संदर्भ के पुनः एक गैर-शुरू की गई मूल स्थिति में लौटने की संभावना है, ताकि एक नई हस्ताक्षर या स्ट्रीमिंग प्रक्रिया शुरू की जा सके। प्रश्न Q-348fb3ae43e424c9 (खुला)
यह डिज़ाइन क्रिप्टो मॉड्यूल में सभी स्ट्रीमिंग ऑपरेशनों के लिए एक समान सिद्धांत का पालन करता है। संबंधित संदर्भों जैसे कि VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] और साथ ही EncryptorPublicCtx [SWS_CRYPT_50089] के लिए पूरी तरह से समान हस्ताक्षर और त्रुटि सिमेंटिक्स मौजूद हैं।
यह उपयोग नोट AUTOSAR Adaptive की विनिर्देश आवश्यकताओं के आधार पर स्वचालित रूप से तैयार किया गया था।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता 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#66aee78f- Content hash
66aee78f- 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 · जर्मन मूल