फ़ंक्शन Cancel [SWS_CRYPT_50077] 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.
उपयोग
इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx की विधि Cancel() एक सक्रिय स्ट्रीमिंग ऑपरेशन को निरस्त करती है, जिसे पहले Start() के माध्यम से शुरू किया गया था और अभी तक पूरा नहीं हुआ था [SWS_CRYPT_50077]। यह फ़ंक्शन हेडर ara/crypto/cryp/auth_cipher_ctx.h के माध्यम से प्रदान किया जाता है और बिना इनपुट पैरामीटर के सिंक्रोनस रूप से काम करता है [SWS_CRYPT_50077]। यह ara::core::Result<void> लौटाता है, जो सफलता के मामले में खाली होता है।
त्रुटि प्रबंधन और सीमा शर्तें
निरस्तीकरण की पूर्व-शर्त यह है कि डेटा प्रसंस्करण वास्तव में पहले Start() द्वारा शुरू किया गया हो। यदि स्ट्रीमिंग ऑपरेशन शुरू नहीं किया गया था, तो कॉल विफल हो जाता है और रोलबैक सिमेंटिक्स के साथ त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted लौटाता है [SWS_CRYPT_50077]।
संगामिति
ऑपरेशन को noexcept के रूप में घोषित किया गया है और विनिर्देश के अनुसार इसे thread-safe और exception safe दोनों के रूप में वर्गीकृत किया गया है [SWS_CRYPT_50077]।
इंटरैक्शन
Cancel() द्वारा कार्यान्वित निरस्तीकरण पैटर्न मॉड्यूल crypt में मानकीकृत है। एक समान इंटरफ़ेस सिमेंटिक्स और वही त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted संबंधित स्ट्रीमिंग संदर्भों के लिए परिभाषित हैं:
ara::crypto::cryp::VerifierPublicCtx[SWS_CRYPT_50023]ara::crypto::cryp::MessageAuthnCodeCtx[SWS_CRYPT_50027]ara::crypto::cryp::SignerPrivateCtx[SWS_CRYPT_50041]ara::crypto::cryp::SymmetricCipherCtx[SWS_CRYPT_50046]ara::crypto::cryp::HashFunctionCtx[SWS_CRYPT_50058]ara::crypto::cryp::DecryptorPrivateCtx[SWS_CRYPT_50069]ara::crypto::cryp::EncryptorPublicCtx[SWS_CRYPT_50089]
यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर स्वचालित रूप से उत्पन्न किया गया था।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
| Header-Datei | #include "ara/crypto/cryp/auth_cipher_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::AuthCipherCtx |
| 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_50077- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50077@rel:R25-11#73d2a988- Content hash
73d2a988- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50077
Status: valid/unmigrated
Version: rel:R25-11#863ca4bd
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_50077@rel:R25-11#863ca4bd
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 · जर्मन मूल