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