دالة Cancel [SWS_CRYPT_50089] 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::EncryptorPublicCtx، والتي بدأت مسبقًا بواسطة Start() ولم تنتهِ بعد [SWS_CRYPT_50089]. لا تقبل أي معلمات تمرير وتُرجع ara::core::Result<void>، والذي يكون فارغًا في حالة النجاح [SWS_CRYPT_50089]. نظرًا لأن البصمة توفر Result مباشرةً وليس Future، فمن المرجح أن يتم تنفيذ الإلغاء بشكل متزامن. سؤال Q-cd18e56d693fe1a4 (مفتوح)
معالجة الأخطاء والتزامن
إذا لم تبدأ معالجة البيانات مسبقًا بواسطة Start()، تفشل العملية برمز الخطأ ara::crypto::CryptoErrc::kProcessingNotStarted مع الالتزام بدلالة التراجع [SWS_CRYPT_50089]. وفقًا للمواصفة، صُرح عن الواجهة بـ noexcept، وهي آمنة من حيث الاستثناءات (exception safe) ومصنفة للوصول المتزامن بأنها آمنة مؤشريًا (thread-safe) [SWS_CRYPT_50089].
التفاعل المشترك في حزمة التشفير
يتبع سلوك الإلغاء المحقق بواسطة Cancel() نمط تصميم موحد لعمليات الدفق ذات الحالة في وحدة التشفير. توجد واجهات مماثلة ذات دلالة أخطاء متطابقة لكل من:
- عمليات التوقيع والتحقق في
SignerPrivateCtx[SWS_CRYPT_50041] وVerifierPublicCtx[SWS_CRYPT_50023]، - التشفير المتماثل والموثق في
SymmetricCipherCtx[SWS_CRYPT_50046] وكذلكAuthCipherCtx[SWS_CRYPT_50077]، - فك التشفير غير المتماثل في
DecryptorPrivateCtx[SWS_CRYPT_50069]، - رموز مصادقة الرسائل في
MessageAuthnCodeCtx[SWS_CRYPT_50027] وكذلك حسابات التجزئة فيHashFunctionCtx[SWS_CRYPT_50058].
تم إنشاء هذا النص بواسطة ذكاء اصطناعي ويستند إلى AUTOSAR Adaptive R25-11.
دليل المنفِّذ قيد الإعداد (التعقيد I1)
| Header-Datei | #include "ara/crypto/cryp/encryptor_public_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::EncryptorPublicCtx |
| 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_50089- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50089@rel:R25-11#a67438e3- Content hash
a67438e3- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50089
Status: valid/unmigrated
Version: rel:R25-11#e205d10b
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_50089@rel:R25-11#e205d10b
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 · الأصل الألماني