دالة 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]. تفسير: بعد استدعاء ناجح لـ 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#b88a1491- Content hash
b88a1491- 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 · الأصل الألماني