DEENESPTFRRUARHIKOZHNL

فئة ara::crypto::cryp::DecryptorPrivateCtx

[SWS_CRYPT_50155] Upstream: RS_CRYPTO_02201

class DecryptorPrivateCtx :             public CryptoContext {...};

Interface for asymmetric decryption.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp
Basisklasse(n)CryptoContext

دليل المستخدممولَّد بالذكاء الاصطناعي

يمكّن فك التشفير غير المتماثل للبيانات باستخدام المفاتيح الخاصة كاستدعاء لمرة واحدة أو كتدفق بيانات.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 80609e0a7ac2 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يمكّن فك التشفير غير المتماثل للبيانات باستخدام المفاتيح الخاصة كاستدعاء لمرة واحدة أو كتدفق بيانات.

تُستخدم الواجهة ara::crypto::cryp::DecryptorPrivateCtx لفك التشفير غير المتماثل للنصوص المشفرة في AUTOSAR Adaptive Platform ([SWS_CRYPT_50070]). قبل التنفيذ، يجب بالضرورة تمرير مفتاح خاص يمتلك إذن الاستخدام لفك التشفير إلى السياق ([SWS_CRYPT_50157]). يمكن إجراء المعالجة إما في استدعاء واحد أو كتدفق بيانات متعدد الأجزاء عبر مراحل Start وUpdate وFinish. تم تنفيذ جميع أساليب الواجهة لتكون آمنة بالنسبة للخيوط وآمنة من الاستثناءات.

السياق

تُستخدم الواجهة ara::crypto::cryp::DecryptorPrivateCtx لفك التشفير غير المتماثل للنصوص المشفرة في وحدة التشفير الخاصة بـ AUTOSAR Adaptive Platform. وباعتبارها تخصصًا لـ CryptoContext، فإنها توفر دوال التحويل التشفيرية التي تُعيد النصوص المشفرة إلى نصوص صريحة باستخدام مفاتيح خاصة. ومن بين أطراف التفاعل الأساسية التطبيق المستدعي وكائنات المفاتيح المقدمة كـ PrivateKey أو عبر KeySlot. تُدار مثيلات هذه الواجهة عادةً عبر المؤشر الذكي المكتوب Sptr ([SWS_CRYPT_50156]).

دورة الحياة

تتم إدارة DecryptorPrivateCtx عبر الاسم المستعار ara::crypto::cryp::DecryptorPrivateCtx::Sptr، والذي يُعين إلى std::shared_ptr<DecryptorPrivateCtx> ([SWS_CRYPT_50156]). تفسير: نظرًا لأن الفئة عبارة عن واجهة ذات أساليب افتراضية بحتة، فمن المرجح أن يتم الإنشاء الفعلي عادةً بواسطة مصنع (Factory) لبرنامج تشغيل التشفير. سؤال Q-6130603fcaf29ef9 (مفتوح)

مباشرة بعد إنشاء المثيل، يكون السياق في حالة غير مهيأة. وفي هذه الحالة، تؤدي استدعاءات التحويل التشغيلية إلى حدوث أخطاء. وللتنشيط، يجب تعيين مفتاح خاص. ويتم ذلك إما عن طريق تمرير PrivateKey::Sptr عبر SetKey() ([SWS_CRYPT_50157]) أو عبر KeySlot::Sptr ([SWS_CRYPT_50066])، والذي يغلف المفتاح.

بمجرد تكوين السياق بمفتاح صالح، ينتقل إلى الحالة Initialized. وفي هذه الحالة، يمكن استخدام السياق إما مباشرةً لفك التشفير لمرة واحدة أو نقله عبر Start() ([SWS_CRYPT_50067]) إلى حالة المعالجة Streaming. وأثناء التدفق، يستقبل Update() ([SWS_CRYPT_50158]) أجزاء النص المشفر. يُختتم التسلسل بواسطة Finish() ([SWS_CRYPT_50068]) أو يُلغى عبر Cancel() ([SWS_CRYPT_50069])، وعندها يصبح السياق جاهزًا مرة أخرى لعمليات جديدة. تم تحديد جميع أساليب الواجهة لتكون آمنة بالنسبة للخيوط وآمنة من الاستثناءات ([SWS_CRYPT_50066]، [SWS_CRYPT_50067]، [SWS_CRYPT_50070]).

StateMachine Uninitialized Uninitialized Initialized Initialized Uninitialized->Initialized SetKey() Initialized->Initialized SetKey() / Decrypt() Streaming Streaming Initialized->Streaming Start() Streaming->Initialized Finish() / Cancel() Streaming->Streaming Update()

مخطط الحالة: حالات دورة حياة السياق بدءًا من ربط المفتاح مرورًا بالتدفق وحتى الإنهاء. المصادر: [SWS_CRYPT_50066]، [SWS_CRYPT_50157]، [SWS_CRYPT_50067]، [SWS_CRYPT_50158]، [SWS_CRYPT_50068]، [SWS_CRYPT_50069]، [SWS_CRYPT_50070].

مسار الاستخدام

يتوفر تسلسلان مختلفان لفك التشفير: فك التشفير عديم الحالة لمرة واحدة ومعالجة التدفق متعددة الخطوات. قبل تمرير البيانات، يمكن للتطبيق المستدعي الاستعلام عن قيود الإدخال المسموح بها للنصوص المشفرة باستخدام GetMinimumChunkSize() ([SWS_CRYPT_50160]) وGetMaximumChunkSize() ([SWS_CRYPT_50071]). وعبر GetRequiredOutputBufferSize() ([SWS_CRYPT_50159])، يمكن مسبقًا تحديد الحجم المطلوب للمخزن المؤقت للإخراج لـ Update() أو Finish() أو Decrypt().

بالنسبة لأحجام البيانات المدمجة، يتم فك التشفير بعد تكوين المفتاح مباشرةً عبر Decrypt() ([SWS_CRYPT_50070]). ويتحول النص المشفر في خطوة واحدة مع إرجاع العدد الفعلي للبايتات المفكوكة تشفيرها.

تتم معالجة النصوص المشفرة الأكبر حجمًا أو الواردة في أجزاء عبر مسار التدفق:

  1. تعيين المفتاح: تكوين السياق عبر SetKey() باستخدام PrivateKey ([SWS_CRYPT_50157]) أو KeySlot ([SWS_CRYPT_50066]).
  2. التهيئة: استدعاء Start() ([SWS_CRYPT_50067]) لإعداد حالة المعالجة الداخلية.
  3. المعالجة القائمة على الكتل: الاستدعاء المتكرر لـ Update() ([SWS_CRYPT_50158]) لكتل النصوص المشفرة المتتالية.
  4. الإنهاء: استدعاء Finish() ([SWS_CRYPT_50068]) لمعالجة الكتلة الأخيرة وإنهاء التدفق. بدلاً من ذلك، يمكن إلغاء العملية قبل الأوان باستخدام Cancel() ([SWS_CRYPT_50069]).
سير عملية فك تشفير متدفقالتطبيقDecryptorPrivateCtxSetKey(key)Result<void>Start()Result<void>loopSolange Chunks vorhandenUpdate(in, out)Result<std::size_t>Finish(in, out)Result<std::size_t>

مخطط التسلسل: تسلسل الاستدعاء النموذجي لفك تشفير التدفق متعدد الأجزاء. المصادر: [SWS_CRYPT_50157]، [SWS_CRYPT_50067]، [SWS_CRYPT_50158]، [SWS_CRYPT_50068].

سيناريوهات الأخطاء

تُرجع أساليب DecryptorPrivateCtx أخطاء عبر ara::core::Result برموز من ara::crypto::CryptoErrc وتتبع دلالات التراجع (Rollback):

  • ara::crypto::CryptoErrc::kUninitializedContext: يحدث عند استدعاء عمليات تحويل مثل Decrypt() ([SWS_CRYPT_50070]) أو Start() ([SWS_CRYPT_50067]) بالإضافة إلى حسابات المخزن المؤقت عبر GetRequiredOutputBufferSize() ([SWS_CRYPT_50159]) قبل تكوين مفتاح.
  • ara::crypto::CryptoErrc::kProcessingNotStarted: يتم الإبلاغ عنه بواسطة Update() ([SWS_CRYPT_50158]) أو Finish() ([SWS_CRYPT_50068]) أو Cancel() ([SWS_CRYPT_50069]) إذا لم يسبق ذلك استدعاء لـ Start().
  • ara::crypto::CryptoErrc::kUsageViolation: يشير إلى أن قواعد استخدام المفتاح لا تتضمن الإذن kAllowDataDecryption ([SWS_CRYPT_50157]، [SWS_CRYPT_50067]، [SWS_CRYPT_50070]).
  • ara::crypto::CryptoErrc::kIncompatibleObject: يحدث عندما لا يتطابق كائن المفتاح أو الفتحة المعينة مع خوارزمية السياق ([SWS_CRYPT_50066]، [SWS_CRYPT_50157]، [SWS_CRYPT_50067]، [SWS_CRYPT_50070]).
  • ara::crypto::CryptoErrc::kInsufficientCapacity وara::crypto::CryptoErrc::kInvalidInputSize: لا يوفر المخزن المؤقت للإخراج سعة كافية أو ينتهك حجم الإدخال حدود السياق ([SWS_CRYPT_50070]، [SWS_CRYPT_50158]، [SWS_CRYPT_50068]).
  • ara::crypto::CryptoErrc::kUnsupported: يشير إلى أن التدفق أو استدعاءات المرة الواحدة أو نوع ربط المفتاح المحدد غير مدعوم من التنفيذ الفعلي ([SWS_CRYPT_50066]، [SWS_CRYPT_50157]، [SWS_CRYPT_50067]، [SWS_CRYPT_50070]).
  • ara::crypto::CryptoErrc::kEmptyKeySlot وara::crypto::CryptoErrc::kBusyResource: يشيران إلى أن KeySlot المكوّن فارغ حاليًا أو أن هناك موردًا مطلوبًا قيد الاستخدام ([SWS_CRYPT_50067]، [SWS_CRYPT_50070]).

تم إنشاء هذا الدليل بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR R25-11.

خريطة الأعضاء

مخطط الفئة

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__crypto__cryp__DecryptorPrivateCtx616 DecryptorPrivateCtx + Cancel() + Decrypt() + Finish() + GetMaximumChunkSize() + GetMinimumChunkSize() + GetRequiredOutputBufferSize() + SetKey() + Start() + Update() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__DecryptorPrivateCtx616->nara__crypto__cryp__CryptoContext85

عرض التفاصيل

اختر عنصرًا من المخطط.

الدوال الأعضاء

Cancel دالة

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

virtual ara::core::Result< void > Cancel () noexcept=0;
Decrypt دالة

Decrypt data in a single-call.

virtual ara::core::Result< std::size_t > Decrypt (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;
Finish دالة

Finalize the decryption.

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update(), Finish(), or Decrypt() by this context.

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;

Get the minimum input buffer size supported for processing in single calls to Update(), Finish(), or Decrypt() by this context.

virtual ara::core::Result< std::size_t > GetMinimumChunkSize () const noexcept=0;

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;
SetKey دالة 2

Configure the context to use the key stored in the provided KeySlot at the time the decryption is started.

التحميلات الزائدة SetKey 2
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50066
virtual ara::core::Result< void > SetKey (PrivateKey::Sptr key) noexcept=0; SWS_CRYPT_50157
Start دالة

Initialize the context for a new decryption.

virtual ara::core::Result< void > Start () noexcept=0;
Update دالة

Decrypt a data buffer.

virtual ara::core::Result< std::size_t > Update (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

أسماء الأنواع البديلة

Sptr اسم نوع بديل

Smart pointer of the interface.

توثيق الدوال

دالة Cancel [SWS_CRYPT_50069] 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.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 1601c28db7a4 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تلغي الطريقة Cancel من الفئة ara::crypto::cryp::DecryptorPrivateCtx المعرفة في ara/crypto/cryp/decryptor_private_ctx.h عملية تدفق جارية تم بدؤها مسبقًا بواسطة Start() ولم تكتمل بعد [SWS_CRYPT_50069]. لا يقبل الاستدعاء أي معاملات مُمررة ويُعيد كقيمة إرجاع ara::core::Result<void> [SWS_CRYPT_50069]. إذا كان إلغاء معالجة التدفق ناجحًا، يحتوي الكائن على نتيجة فارغة؛ وإلا فإنه يحمل الخطأ الذي حدث [SWS_CRYPT_50069]. تم التصريح عن الواجهة الظاهرية البحتة كـ noexcept، وتتميز بأمان كامل من الاستثناءات، ومصنفة بأنها thread-safe للوصول المتزامن [SWS_CRYPT_50069].

عند معالجة الأخطاء وشروط التسلسل، يجب مراعاة الترتيب الدقيق: إذا لم يتم الشروع في معالجة البيانات مسبقًا عن طريق استدعاء الطريقة Start()، تفشل العملية وتُعيد رمز الخطأ المحدد ara::crypto::CryptoErrc::kProcessingNotStarted مع دلالات التراجع [SWS_CRYPT_50069]. لذلك يجب على المتصل التأكد من وجود عملية نشطة بالفعل قبل الإلغاء لتجنب حالة الخطأ هذه [SWS_CRYPT_50069].

في إطار التفاعل مع معمارية الوحدة الكاملة لـ crypt، يتبع Cancel نمط تصميم قياسي لعمليات التدفق ذات الحالة. تشترك السياقات التشفيرية ذات الصلة 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::AuthCipherCtx [SWS_CRYPT_50077] بالإضافة إلى ara::crypto::cryp::EncryptorPublicCtx [SWS_CRYPT_50089] في التوقيع نفسه ودلالات الإرجاع ومعالجة الأخطاء.

تم إنشاء ملاحظة الاستخدام هذه آليًا استنادًا إلى مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_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_50069
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50069@rel:R25-11#dcb95e71
Content hash
dcb95e71
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50069
Status: valid/unmigrated Version: rel:R25-11#2a0972af 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_50069@rel:R25-11#2a0972af
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Decrypt [SWS_CRYPT_50070] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Decrypt (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Decrypt data in a single-call.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 5c22ada69166 المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تفك الطريقة المتزامنة Decrypt تشفير بيانات النص المشفر في خطوة واحدة ([SWS_CRYPT_50070]). يمرر مخزن الإدخال المؤقت in النص المشفر كـ ReadOnlyMemRegion، بينما يستقبل مخزن الإخراج المؤقت out من النوع ReadWriteMemRegion النص الصريح ([SWS_CRYPT_50070]). عند نجاح فك التشفير، تُرجع الدالة عبر ara::core::Result<std::size_t> العدد الفعلي للبايتات المكتوبة، والذي قد يكون أصغر من السعة الكلية لـ out ([SWS_CRYPT_50070]).

تم تحديد الواجهة على أنها thread-safe وكذلك exception safe ([SWS_CRYPT_50070]). قبل الاستدعاء، يجب أن يكون السياق قد تمت تهيئته عن طريق تعيين مفتاح؛ وإلا فإن الدالة تفشل مع UninitializedContext أو مع ara::crypto::CryptoErrc::kEmptyKeySlot في حالة وجود KeySlot فارغ ([SWS_CRYPT_50070]). يجب أن يكون المفتاح متوافقًا مع خوارزمية التحويل (وإلا kIncompatibleObject) وأن يتضمن الإذن kAllowDataDecryption (وإلا kUsageViolation) ([SWS_CRYPT_50070]).

لتجنب فيضانات المخزن المؤقت، يمكن الاستعلام مسبقًا عن الحد الأقصى للسعة المطلوبة لمخزن الإخراج المؤقت باستخدام GetRequiredOutputBufferSize مع تحديد isFinal = true ([SWS_CRYPT_50159]). إذا كانت سعة out غير كافية، تنقطع الطريقة مع ara::crypto::CryptoErrc::kInsufficientCapacity ([SWS_CRYPT_50070]). بالإضافة إلى ذلك، يجب أن يكون حجم مخزن الإدخال المؤقت in في النطاق بين GetMinimumChunkSize ([SWS_CRYPT_50160]) وGetMaximumChunkSize ([SWS_CRYPT_50071])، وإلا يتم إرجاع ara::crypto::CryptoErrc::kInvalidInputSize ([SWS_CRYPT_50070]). الأخطاء المحددة الأخرى ذات دلالات التراجع هي kUnsupported، kInvalidArgument بالإضافة إلى kBusyResource ([SWS_CRYPT_50070]).

تم توليد ملاحظة الاستخدام هذه تلقائياً بناءً على المواصفة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
inan input data buffer containing the ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the decrypted data is written to

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call decryption is not supported
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer cannot be processed
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided input data contains invalid data
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowData Decryption
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if type of the key is incompatible to the transformation

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50070
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50070@rel:R25-11#d63d8973
Content hash
d63d8973
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50070
Status: valid/unmigrated Version: rel:R25-11#42aea752 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_50070@rel:R25-11#42aea752
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Finish [SWS_CRYPT_50068] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Finalize the decryption.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e259e05ea644 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تكمل الطريقة Finish عملية فك تشفير في سياق ara::crypto::cryp::DecryptorPrivateCtx بشكل متزامن [SWS_CRYPT_50068]. وتقوم عبر المخزن المؤقت للإدخال in (ReadOnlyMemRegion) بمعالجة المقطع الأخير من النص المشفر وتكتب بيانات النص الصريح الناتجة في المخزن المؤقت للإخراج out (ReadWriteMemRegion) [SWS_CRYPT_50068]. يُرجع عدد البايتات المكتوبة فعليًا على هيئة ara::core::Result<std::size_t> ويمكن أن يكون أصغر من السعة الكلية للمخزن المؤقت للوجهة out [SWS_CRYPT_50068].

قبل الاستدعاء، يجب بالضرورة بدء معالجة البيانات عبر Start()، وإلا فسيتم الإبلاغ عن الخطأ CryptoErrc::kProcessingNotStarted [SWS_CRYPT_50068]. يمكن تحديد الحد الأقصى لحجم الكتلة المسموح به لـ in عبر GetMaximumChunkSize() [SWS_CRYPT_50071]؛ وإذا كان طول الإدخال غير مناسب، يفشل الاستدعاء مع CryptoErrc::kInvalidInputSize [SWS_CRYPT_50068]. وإذا كان out صغيرًا جدًا، ينتج عن ذلك CryptoErrc::kInsufficientCapacity، حيث يمكن الاستعلام عن حجم المخزن المؤقت المطلوب باستخدام GetRequiredOutputBufferSize() [SWS_CRYPT_50068]. الأخطاء المحتملة الأخرى هي CryptoErrc::kInvalidArgument في حال وجود بيانات نص مشفر غير صالحة، وCryptoErrc::kUnsupported إذا كانت المعالجة المستمرة (Stream) غير مدعومة في السياق [SWS_CRYPT_50068].

تم تحديد العملية على أنها thread-safe بالإضافة إلى exception safe [SWS_CRYPT_50068]. بفضل دلالات التراجع (Rollback) المحددة، يُفترض أن تظل حالة المعالجة دون تغيير في حال وجود أخطاء في المخزن المؤقت، بحيث ينبغي أن تكون إعادة المحاولة ممكنة بعد زيادة حجم المخزن المؤقت. سؤال Q-e2562509449aa32c (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه آليًا استنادًا إلى مواصفة ara::crypto (AUTOSAR R25-11).

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that contains decrypted data. The required size of this buffer can be queried using GetRequiredOutputBuffer Size()

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif data processing was not started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer cannot be processed
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided input data contains invalid data
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50068
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50068@rel:R25-11#933378d9
Content hash
933378d9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50068
Status: valid/unmigrated Version: rel:R25-11#4e88e7ba 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_50068@rel:R25-11#4e88e7ba
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetMaximumChunkSize [SWS_CRYPT_50071] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update(), Finish(), or Decrypt() by this context.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the maximum buffer size in bytes

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50071
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50071@rel:R25-11#cd5cfbc2
Content hash
cd5cfbc2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50071
Status: valid/unmigrated Version: rel:R25-11#363f8dce 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_50071@rel:R25-11#363f8dce
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetMinimumChunkSize [SWS_CRYPT_50160] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMinimumChunkSize () const noexcept=0;

Get the minimum input buffer size supported for processing in single calls to Update(), Finish(), or Decrypt() by this context.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the minimum buffer size in bytes

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50160@rel:R25-11#cee32aca
Content hash
cee32aca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50160
Status: valid/unmigrated Version: rel:R25-11#840ff3d7 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_50160@rel:R25-11#840ff3d7
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة GetRequiredOutputBufferSize [SWS_CRYPT_50159] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
inputSizesize of input data
isFinalif true, calculate maximum required output buffer size for Finish() or Decrypt(), otherwise for Update()

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required capacity of the output buffer (in bytes) or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by deploying a key and setting the transformation direction

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50159@rel:R25-11#985cf73a
Content hash
985cf73a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50159
Status: valid/unmigrated Version: rel:R25-11#34d4f358 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_50159@rel:R25-11#34d4f358
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة SetKey [SWS_CRYPT_50066] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0;

Configure the context to use the key stored in the provided KeySlot at the time the decryption is started.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: ee8ecbdc71ea المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تكوّن الطريقة SetKey مثيلًا من ara::crypto::cryp::DecryptorPrivateCtx لاستخدام مفتاح محفوظ في KeySlot ممرر [SWS_CRYPT_50066]. يتم تمرير KeySlot::Sptr كمعلمة، والتي يجب أن تحتوي على PrivateKey [SWS_CRYPT_50066]. لا يتم جلب المفتاح الفعلي إلا في الوقت الذي تبدأ فيه عملية فك التشفير [SWS_CRYPT_50066]. تعمل الدالة بشكل متزامن وتبلغ عن النتيجة عبر ara::core::Result<void> [SWS_CRYPT_50066].

معالجة الأخطاء

في حالة الخطأ، يتم إرجاع كود خطأ مطابق في ara::core::Result، مع تطبيق دلالات التراجع [SWS_CRYPT_50066]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: الـ KeySlot المقدم غير متوافق مع السياق [SWS_CRYPT_50066].
  • ara::crypto::CryptoErrc::kUnsupported: يدعم السياق فقط التعيين المباشر لـ PrivateKey ولا يدعم أي KeySlots [SWS_CRYPT_50066].

التزامن والتفاعل

تم التصريح عن الواجهة بأنها آمنة بالنسبة للخيوط (thread-safe) وآمنة من الاستثناءات (exception safe) [SWS_CRYPT_50066]. نظرًا لأن تقييم المفتاح لا يتم إلا عند بدء فك التشفير، فمن المرجح أن يصبح تحديث محتوى الفتحة ساريًا قبل وقت البدء هذا. سؤال Q-ec258ea8b5a1d1c2 (مفتوح) وبينما تستقبل بعض السياقات التشفيرية الأخرى المفاتيح جزئيًا كمثيل مباشر (على سبيل المثال SignerPrivateCtx [SWS_CRYPT_23515])، تتبع هذه الطريقة نمط الربط المؤجل عبر فتحات المفاتيح، كما يُستخدم أيضًا ضمن أشياء أخرى في VerifierPublicCtx [SWS_CRYPT_50018] وKeyDerivationFunctionCtx [SWS_CRYPT_50010].

أُنشئ هذا النص بواسطة ذكاء اصطناعي ويُستخدم كدليل توجيهي في معيار AUTOSAR.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a PrivateKey.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided keyslot is incompatible with this context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a PrivateKey

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50066
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50066@rel:R25-11#73973853
Content hash
73973853
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50066
Status: valid/unmigrated Version: rel:R25-11#a48ca2e4 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_50066@rel:R25-11#a48ca2e4
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة SetKey [SWS_CRYPT_50157] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (PrivateKey::Sptr key) noexcept=0;

Configure the context to use the provided key.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 18619bf054a3 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تقوم الطريقة SetKey بتهيئة نسخة من ara::crypto::cryp::DecryptorPrivateCtx لاستخدام مفتاح خاص محدد لفك تشفير البيانات [SWS_CRYPT_50157]. كمعلمة، يتم تمرير نسخة عبر PrivateKey::Sptr key. قيمة الإرجاع هي ara::core::Result<void>، والتي تؤكد التعيين الناجح أو تُرجع خطأ. من المحتمل أن يتم تنفيذ الاستدعاء بشكل متزامن (تفسير: تحظر الواجهة حتى يتم استلام المفتاح ولا تُرجع كائن Future غير متزامن). سؤال Q-b8e9b5cb4174e2b2 (مفتوح)

معالجة الأخطاء

في حالة الخطأ، يضمن التنفيذ دلالات التراجع، بحيث تظل حالة السياق دون تغيير عند حدوث خطأ [SWS_CRYPT_50157]. يمكن أن تحدث رموز الأخطاء التالية:

  • ara::crypto::CryptoErrc::kIncompatibleObject: كائن المفتاح الذي تم تمريره غير متوافق مع هذا السياق [SWS_CRYPT_50157].
  • ara::crypto::CryptoErrc::kUsageViolation: الاستخدام المسموح به للمفتاح لا يتضمن فك تشفير البيانات (kAllowData Decryption) [SWS_CRYPT_50157].
  • ara::crypto::CryptoErrc::kUnsupported: لا يدعم السياق التعيين المباشر لكائن مفتاح إذا كان مصممًا حصريًا للربط عبر KeySlot [SWS_CRYPT_50157].

التزامن والقيود

تم تحديد الواجهة صراحةً كـ thread-safe وexception safe [SWS_CRYPT_50157]. وهي تضمن التنفيذ الآمن في البيئات المتزامنة ولا تطرح استثناءات C++ (noexcept=0).

تفاعل

يتم تطبيق إجراء تعيين المفتاح عبر SetKey بشكل موحد عبر مختلف السياقات التشفيرية في Adaptive Platform: بينما تستخدم السياقات غير المتماثلة ذات الصلة مثل KeyAgreementPrivateCtx [SWS_CRYPT_21313]، وKeyDecapsulatorPrivateCtx [SWS_CRYPT_21413]، وSignerPrivateCtx [SWS_CRYPT_23515] أيضًا PrivateKey::Sptr، توجد متغيرات بديلة مع KeySlot::Sptr في سياقات أخرى مثل KeyDerivationFunctionCtx [SWS_CRYPT_50010] أو VerifierPublicCtx [SWS_CRYPT_50018].

تم إنشاء ملاحظة الاستخدام هذه تلقائيًا بناءً على مواصفات AUTOSAR Adaptive R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I2)

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keythe PrivateKey to be used for decryption

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowData Decryption

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50157@rel:R25-11#1164425d
Content hash
1164425d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50157
Status: valid/unmigrated Version: rel:R25-11#05a94de8 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_50157@rel:R25-11#05a94de8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Start [SWS_CRYPT_50067] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start () noexcept=0;

Initialize the context for a new decryption.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 990da83b573b المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تهيئ دالة العضو Start للفئة ara::crypto::cryp::DecryptorPrivateCtx ([SWS_CRYPT_50067]) السياقَ بشكل متزامن لعملية فك تشفير جديدة. لا يقبل الاستدعاء أي معلمات، ولا يطلق أي استثناءات (noexcept)، ويُرجع ara::core::Result<void> يكون فارغًا في حالة النجاح ([SWS_CRYPT_50067]). بالنسبة لعمليات الوصول المتزامنة المتعددة، تم تحديد الطريقة بأنها thread-safe ([SWS_CRYPT_50067]).

قبل التنفيذ، يجب أن يكون هناك مفتاح متوافق محفوظ، حيث يتحقق Start من حالته وأذوناته ([SWS_CRYPT_50067]). إذا فشلت العملية، تنطبق دلالات التراجع ([SWS_CRYPT_50067]). أكواد الخطأ ذات الصلة هي:

  • ara::crypto::CryptoErrc::kUninitializedContext: لم يتم بعد تعيين مفتاح للسياق ([SWS_CRYPT_50067]).
  • ara::crypto::CryptoErrc::kEmptyKeySlot: يوجد KeySlot مكوّن فارغ حاليًا ([SWS_CRYPT_50067]).
  • ara::crypto::CryptoErrc::kUsageViolation: لا تسمح أذونات المفتاح بفك تشفير البيانات ([SWS_CRYPT_50067]).
  • ara::crypto::CryptoErrc::kIncompatibleObject: نوع المفتاح غير متوافق مع التحويل ([SWS_CRYPT_50067]).
  • ara::crypto::CryptoErrc::kBusyResource: أحد الموارد المطلوبة مشغول ([SWS_CRYPT_50067]).
  • ara::crypto::CryptoErrc::kUnsupported: معالجة التدفق غير مدعومة من السياق ([SWS_CRYPT_50067]).

في النظام الكلي، تتوافق الطريقة مع دورة الحياة المعيارية للسياقات التشفيرية التكيفية، كما تُستخدم بشكل مماثل في التحقق من التوقيع ([SWS_CRYPT_50019])، أو إنشاء التوقيع ([SWS_CRYPT_50037])، أو حساب MAC ([SWS_CRYPT_22111]). تفسير: من المرجح أن يكون استدعاء Start مطلوبًا حتمًا قبل خطوات المعالجة الأخرى لوضع مفكك التشفير في حالة أولية محددة. سؤال Q-7d5a95305eb4626a (مفتوح)

تم توليد هذا النص بواسطة ذكاء اصطناعي استنادًا إلى مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowData Decryption
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if type of the key is incompatible to the transformation
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50067
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50067@rel:R25-11#fb52ae8a
Content hash
fb52ae8a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50067
Status: valid/unmigrated Version: rel:R25-11#0df0233a 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_50067@rel:R25-11#0df0233a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

دالة Update [SWS_CRYPT_50158] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Update (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Decrypt a data buffer.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 8e10846a241b المصدر
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تُستخدم الطريقة Update لفك تشفير مخزن مؤقت للبيانات في سياق ara::crypto::cryp::DecryptorPrivateCtx [SWS_CRYPT_50158]. يقبل الاستدعاء المتزامن جزءًا من النص المشفر في المعلمة in (ReadOnlyMemRegion) ويكتب البيانات المفككة تشفيرها في المخزن المؤقت out (ReadWriteMemRegion) [SWS_CRYPT_50158]. كنتيجة، يتم إرجاع ara::core::Result<std::size_t> الذي يحتوي على العدد الفعلي للبايتات المكتوبة؛ يمكن أن تكون هذه القيمة أصغر من السعة الإجمالية لـ out [SWS_CRYPT_50158].

التفاعل وتحديد أبعاد المخزن المؤقت

قبل تنفيذ Update، يجب بالضرورة بدء معالجة البيانات عن طريق استدعاء Start() [SWS_CRYPT_50158]. يمكن الاستعلام عن الحجم الأدنى المطلوب لـ out عبر GetRequiredOutputBufferSize() [SWS_CRYPT_50158]. بالإضافة إلى ذلك، يمكن تحديد الحجم الأقصى للإدخال الذي يمكن معالجته لاستدعاءات Update الفردية عبر GetMaximumChunkSize() [SWS_CRYPT_50071].

معالجة الأخطاء والتزامن

تم تحديد الواجهة على أنها آمنة خيطيًا وآمنة من الاستثناءات [SWS_CRYPT_50158]. تمتلك جميع حالات الخطأ دلالات التراجع وتُرجع رموز أخطاء محددة في ara::core::Result [SWS_CRYPT_50158]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: لم تبدأ المعالجة مسبقًا بواسطة Start() [SWS_CRYPT_50158].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: حجم المخزن المؤقت للإخراج out صغير جدًا [SWS_CRYPT_50158].
  • ara::crypto::CryptoErrc::kInvalidInputSize: حجم المخزن المؤقت للإدخال الذي تم تمريره غير صالح [SWS_CRYPT_50158].
  • ara::crypto::CryptoErrc::kUnsupported: معالجة الدفق غير مدعومة من قِبل السياق [SWS_CRYPT_50158].

تم توليد ملاحظة الاستخدام هذه تلقائياً بناءً على المواصفة.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the decrypted data will be written into. The required size of this buffer can be queried using GetRequired OutputBufferSize()

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50158@rel:R25-11#f2db52d0
Content hash
f2db52d0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50158
Status: valid/unmigrated Version: rel:R25-11#ad98aa1d 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_50158@rel:R25-11#ad98aa1d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

توثيق أسماء الأنواع البديلة

اسم نوع بديل Sptr [SWS_CRYPT_50156] Upstream: RS_CRYPTO_02201

using Sptr = std::shared_ptr<DecryptorPrivateCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/decryptor_private_ctx.h"
Scopeclass ara::crypto::cryp::DecryptorPrivateCtx
SymbolSptr

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50156@rel:R25-11#ce321352
Content hash
ce321352
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50156
Status: valid/unmigrated Version: rel:R25-11#8ad9c2a0 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_50156@rel:R25-11#8ad9c2a0
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill