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