DEENESPTFRRUARHIKOZHNL

فئة ara::crypto::cryp::AuthCipherCtx

[SWS_CRYPT_20100] Upstream: RS_CRYPTO_02207

class AuthCipherCtx :           public CryptoContext {...};

Authenticated Cipher Context interface.

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

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

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

توفر واجهة للتشفير وفك التشفير المتماثل الموثق مع حماية السلامة.

تُستخدم الواجهة ara::crypto::cryp::AuthCipherCtx للتشفير وفك التشفير الموثق للبيانات مع الحفاظ على السرية والسلامة [SWS_CRYPT_23911]. وبعد تهيئة المفتاح، تتم المعالجة إما كاستدعاء فردي ذري أو كتسلسل متدفق يتكون من التهيئة، وبيانات التوثيق الاختيارية، وتحديثات بيانات الحمولة، والإنهاء. كشرط أمني حرج، يفشل فك التشفير في حالة وجود وسم توثيق غير صالح، بحيث لا يجوز معالجة بيانات الحمولة المفكوكة تشفيرها إلا بعد التحقق الناجح [SWS_CRYPT_50075].

السياق

تُعرّف الواجهة ara::crypto::cryp::AuthCipherCtx واجهة برمجة التطبيقات المعيارية لعمليات التشفير الموثّق (Authenticated Encryption with Associated Data, AEAD) ضمن AUTOSAR Adaptive Platform. وهي تجمع بين السرية وحماية السلامة، حيث يتم دائماً توليد وسَم توثيق تشفيري أو التحقق منه إلى جانب التشفير أو فك التشفير الفعلي للبيانات المفيدة. وتعمل التطبيقات المستدعية بالإضافة إلى كائنات المفاتيح كشركاء تفاعل مركزيين: يتم إما ربط السياق بمثيل ملموس من SymmetricKey [SWS_CRYPT_23911] قبل الاستخدام، أو تهيئته بواسطة KeySlot مُستدام أو مُقدَّم [SWS_CRYPT_50072]. وإلى جانب المعالجة الدفقية خطوة بخطوة، تدعم الفئة أيضاً استدعاءات فردية قائمة بذاتها لمعالجة رسائل كاملة في خطوة واحدة [SWS_CRYPT_50078].

دورة الحياة

تُدار السياقات في نطاق التطبيق عبر نوع المؤشر المشترك ara::crypto::cryp::AuthCipherCtx::Sptr [SWS_CRYPT_20101]. (تفسير: يتم إنشاء الكائن نموذجياً عبر مصنع مزوّد ذي مستوى أعلى، نظراً لأن AuthCipherCtx مُحددة كواجهة مجردة). سؤال Q-23125789874cf2f3 (مفتوح) وقد أُعلن أن جميع الدوال الأعضاء آمنة استثنائياً (exception safe) وآمنة خيطياً (thread-safe) [SWS_CRYPT_23911]، [SWS_CRYPT_24715]. وتمر دورة الحياة الوظيفية بحالات محددة بوضوح:

  • غير مهيأ: مباشرة بعد إنشاء المثيل. يتم رفض استدعاءات معالجة البيانات، نظراً لعدم تعيين أي مفتاح بعد [SWS_CRYPT_50081].
  • المفتاح مهيأ: من خلال الاستدعاء الناجح لـ SetKey باستخدام SymmetricKey [SWS_CRYPT_23911] أو KeySlot [SWS_CRYPT_50072]، ينتقل السياق إلى الحالة الجاهزة للتشغيل. ومن هذه الحالة، يمكن تنفيذ عمليات الطلقة الواحدة مباشرةً.
  • الدفق نشط: يتم الدخول فيها من خلال استدعاء Start مع تحديد اتجاه التحويل باستخدام متجه تهيئة (IV) [SWS_CRYPT_24715] أو بدون IV صريح [SWS_CRYPT_50073].
  • الإنهاء / إعادة التعيين: تكتمل عملية الدفق الجارية بشكل نظامي عبر Finish [SWS_CRYPT_50075] أو FinishEncrypt [SWS_CRYPT_50076]، أو يتم إحباطها مبكراً عبر Cancel [SWS_CRYPT_50077]. وبعد ذلك، يصبح السياق جاهزاً من جديد لتسلسلات معالجة جديدة.
Lebenszyklus Uninitialized Uninitialized KeyConfigured KeyConfigured Uninitialized->KeyConfigured SetKey() KeyConfigured->KeyConfigured ProcessSingleCall() StreamingActive StreamingActive KeyConfigured->StreamingActive Start() StreamingActive->KeyConfigured Finish() / Cancel() StreamingActive->StreamingActive UpdateAuthenticatedData() UpdateConfidentialData()

مخطط الحالة: مراحل حالة السياق بدءاً من ربط المفتاح مروراً بالمعالجة الدفقية وحتى الإنهاء. المصادر: [SWS_CRYPT_23911]، [SWS_CRYPT_50072]، [SWS_CRYPT_24715]، [SWS_CRYPT_50075]، [SWS_CRYPT_50077].

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

من أجل المعالجة المستمرة لتدفق البيانات، تتطلب الواجهة تسلسلاً مرتباً من الاستدعاءات:

  1. التهيئة: تعيين المفتاح عبر SetKey [SWS_CRYPT_23911] أو SetKey باستخدام KeySlot [SWS_CRYPT_50072].
  2. الاستعلام عن المعلمات: التحديد الاختياري للقيم الحدية وأحجام المخازن المؤقتة عبر GetMinimumChunkSize [SWS_CRYPT_50162]، GetMaximumChunkSize [SWS_CRYPT_50082]، GetMinimumInputIvSize [SWS_CRYPT_50163]، GetMaximumInputIvSize [SWS_CRYPT_50164]، GetTagSize [SWS_CRYPT_50161] وكذلك GetRequiredOutputBufferSize [SWS_CRYPT_50081].
  3. بدء العملية: استدعاء Start مع تحديد الاتجاه (تشفير أو فك تشفير) بالإضافة إلى توفير IV [SWS_CRYPT_24715] أو طلب IV خاص بالسياق [SWS_CRYPT_50073].
  4. البيانات المقترنة (AAD): إذا كان يتعين تضمين بيانات نص صريح إضافية في حساب السلامة، فسيتم تمريرها عبر UpdateAuthenticatedData [SWS_CRYPT_20313]. ويمكن الاستعلام عن الحد الأقصى المسموح به لحجم AAD عبر GetMaxAssociatedDataSize [SWS_CRYPT_20103]. مهم: يجب بالضرورة إرسال كتل AAD قبل البيانات المفيدة الفعلية.
  5. معالجة البيانات المفيدة: التمرير التدريجي لكتل البيانات عبر UpdateConfidentialData [SWS_CRYPT_50074]. وعند فك التشفير، يتم إرجاع النص الصريح قبل ثبوت موثوقيته؛ ولا يجوز للتطبيق استخدام هذه البيانات إلا بعد اكتمال الإنهاء النهائي بنجاح.
  6. الإنهاء النهائي: إنهاء العملية بواسطة Finish [SWS_CRYPT_50075] أو FinishEncrypt [SWS_CRYPT_50076]، وبذلك تتم معالجة الكتلة الأخيرة وحساب وسَم التوثيق أو التحقق منه.

بالنسبة لحمولات البيانات المدمجة، توجد بدائل أحادية الاستدعاء: يعالج ProcessSingleCall البيانات دون تمرير IV [SWS_CRYPT_50078]، ويقبل ProcessSingleCallWithInputIv قيمة IV خارجية [SWS_CRYPT_50079]، ويُرجع EncryptSingleCallWithOutputIv قيمة IV تم إنشاؤها بواسطة السياق إلى المستدعي [SWS_CRYPT_50080].

سير عملية تشفير موثق متدفقالتطبيقAuthCipherCtxSetKey(key)Result<void>Start(kEncrypt, iv)Result<void>optZusatzdaten vorhandenUpdateAuthenticatedData(aad)Result<void>loopfuer jeden DatenblockUpdateConfidentialData(in, out)Result<size_t>Finish(in, out, tag)Result<size_t>

مخطط التسلسل: تسلسل استدعاء تشفير موثّق متدفق. المصادر: [SWS_CRYPT_23911]، [SWS_CRYPT_24715]، [SWS_CRYPT_20313]، [SWS_CRYPT_50074]، [SWS_CRYPT_50075].

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

تُعيد دوال AuthCipherCtx النتائج عبر ara::core::Result وتمتلك دلالات التراجع في حالة الخطأ. رموز الخطأ ذات الصلة من ara::crypto::CryptoErrc هي:

  • kUninitializedContext: يحدث عند استدعاء Start [SWS_CRYPT_24715]، أو ProcessSingleCall [SWS_CRYPT_50078]، أو حسابات المخازن المؤقتة [SWS_CRYPT_50081]، في حال لم تتم بعد تهيئة أي مفتاح عبر SetKey.
  • kProcessingNotStarted: يُبلّغ عنه عندما يتم استدعاء UpdateAuthenticatedData [SWS_CRYPT_20313]، أو UpdateConfidentialData [SWS_CRYPT_50074]، أو Finish [SWS_CRYPT_50075]، أو Cancel [SWS_CRYPT_50077] دون Start مسبق.
  • kInvalidUsageOrder: يشير إلى ترتيب استدعاء غير صحيح عند استدعاء UpdateAuthenticatedData بعد معالجة بيانات مفيدة بالفعل عبر UpdateConfidentialData [SWS_CRYPT_20313].
  • kAuthTagNotValid: يشير عند فك التشفير في Finish [SWS_CRYPT_50075] أو دوال الطلقة الواحدة [SWS_CRYPT_50078] إلى أن الوسَم المحسوب لا يتطابق مع الوسَم المُمرَّر وأن فحص الموثوقية قد فشل.
  • kUsageViolation: يحدث عندما لا تتطابق سمات استخدام المفتاح مع العملية المطلوبة (مثل غياب kAllowDataEncrypt أو kAllowDataDecrypt) [SWS_CRYPT_23911]، [SWS_CRYPT_50078].
  • kInsufficientCapacity / kInvalidInputSize: يشيران إلى مخازن مؤقتة للإخراج ذات أحجام غير كافية أو أطوال غير مسموح بها للمدخلات أو IV أو الوسَم [SWS_CRYPT_24715]، [SWS_CRYPT_50074]، [SWS_CRYPT_50075].
  • kEmptyKeySlot / kBusyResource: يتعلقان بحالات الخطأ عند استخدام مواضع تخزين مفاتيح مُهيأة [SWS_CRYPT_24715]، [SWS_CRYPT_50078].

يستند هذا الدليل حصرياً إلى معيار AUTOSAR Adaptive (الإصدار R25-11) ويلخص متطلبات الواجهة ara::crypto::cryp::AuthCipherCtx.

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

مخطط الفئة

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

G nara__crypto__cryp__AuthCipherCtx142 AuthCipherCtx + Cancel() + EncryptSingleCallWithOutputIv() + Finish() + FinishEncrypt() + GetMaxAssociatedDataSize() + GetMaximumChunkSize() + GetMaximumInputIvSize() + GetMinimumChunkSize() + GetMinimumInputIvSize() + GetOutputIvSize() + GetRequiredOutputBufferSize() + GetTagSize() + ProcessSingleCall() + ProcessSingleCallWithInputIv() + SetKey() + Start() … 2 weitere nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__AuthCipherCtx142->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;

Perform encryption and calculate/verify of the authentication tag in a single-call and return an IV generated by the context.

virtual ara::core::Result< std::size_t > EncryptSingleCallWithOutputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, ReadWriteMemRegion ivOut, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;
Finish دالة

Finalize the en-/decryption and calculate/verify the authentication tag without returning an IV.

FinishEncrypt دالة

Finalize the encryption and calculate the authentication tag and return the IV generated by the context.

virtual ara::core::Result< std::size_t > FinishEncrypt (ReadOnlyMem Region in, ReadWriteMemRegion out, ReadWriteMemRegion tag, ReadWrite MemRegion ivOut) noexcept=0;

Get maximum supported size of associated public data.

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

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

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

Get the maximum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

virtual ara::core::Result< std::size_t > GetMaximumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

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

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

Get the minimum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

virtual ara::core::Result< std::size_t > GetMinimumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the output IV size that will be returned by the functions FinishEncrypt() (in case no IV has been provided by the application during the call to Start()), and EncryptSingleCallWithOutputIv().

virtual ara::core::Result< std::size_t > GetOutputIvSize () 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;
GetTagSize دالة

Get the output tag size.

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

Perform en-/decryption and calculate/verify of the authentication tag in a single-call without setting or returning an IV.

virtual ara::core::Result< std::size_t > ProcessSingleCall (ReadOnly MemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMemRegion tag, CryptoTransform transformDirection, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call, providing an IV to be used during en-/decryption.

virtual ara::core::Result< std::size_t > ProcessSingleCallWithInputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, CryptoTransform transformDirection, ReadOnlyMemRegion iv, ara::core::Optional< ReadOnlyMemRegion > authenticatedData) noexcept=0;
SetKey دالة 2

The interface shall configure the context to use the provided SymmetricKey.

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

Initialize the context for a new encryption or decryption and set the IV used by the context.

التحميلات الزائدة Start 2
virtual ara::core::Result< void > Start (CryptoTransform transform Direction, ReadOnlyMemRegion iv) noexcept=0; SWS_CRYPT_24715
virtual ara::core::Result< void > Start (CryptoTransform transform Direction) noexcept=0; SWS_CRYPT_50073

Update the tag calculation by a new chunk of additional authenticated data.

virtual ara::core::Result< void > UpdateAuthenticatedData (ReadOnlyMem Region authenticatedData) noexcept=0;

Encrypt or decrypt confidential data. When used for decryption, the plaintext is returned without verifying its authenticity. An application must not use the data before verifying its authenticity using Finish().

virtual ara::core::Result< std::size_t > UpdateConfidentialData (Read OnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

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

Sptr اسم نوع بديل

Smart pointer of the interface.

توثيق الدوال

دالة 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.

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

الاستخدام

تلغي الطريقة Cancel() للواجهة ara::crypto::cryp::AuthCipherCtx عملية تدفق نشطة تم بدؤها مسبقًا عبر 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 لسياقات التدفق المقابلة:

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

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

Header-Datei#include "ara/crypto/cryp/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
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_50077
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50077@rel:R25-11#e0390feb
Content hash
e0390feb
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
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

دالة EncryptSingleCallWithOutputIv [SWS_CRYPT_50080] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > EncryptSingleCallWithOutputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, ReadWriteMemRegion ivOut, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform encryption and calculate/verify of the authentication tag in a single-call and return an IV generated by the context.

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

تنفذ الطريقة المتزامنة EncryptSingleCallWithOutputIv للواجهة ara::crypto::cryp::AuthCipherCtx تشفيرًا موثقًا في خطوة واحدة وتنشئ في الوقت ذاته متجه تهيئة بشكل مستقل [SWS_CRYPT_50080]. وهي تعالج بيانات الإدخال من dataIn بالإضافة إلى بيانات إضافية اختيارية authenticatedData وتكتب النص المشفر في المخزن المؤقت dataOut. يتم وضع متجه التهيئة المُولَّد في المخزن المؤقت ivOut، بينما يتم إخراج علامة المصادقة عبر tag [SWS_CRYPT_50080]. يمكن تحديد حجم المخزن المؤقت لـ ivOut مسبقًا عبر الطريقة GetOutputIvSize [SWS_CRYPT_50165]. على الرغم من جزء الاسم Encrypt، يُفترض أنه يمكن أيضًا استخدام الطريقة لفك التشفير، حيث تسرد مواصفات الأخطاء السلوك لـ transformDirection == kDecrypt صراحةً [SWS_CRYPT_50080]. سؤال Q-66618567b20f99b9 (مفتوح)

تنطبق شروط مسبقة وقيود أساسية على الاستدعاء:

  • يجب أن يكون السياق قد تم تهيئته مسبقًا بنجاح باستخدام SetKey؛ وإلا فسيتم الإبلاغ عن kUninitializedContext [SWS_CRYPT_50080].
  • يجب أن يكون المفتاح الموجود في فتحة المفتاح (Key-Slot) المكونة متوافقًا وأن يمتلك الإذن المناسب (مثل kAllowDataEncrypt)، وإلا فسيتم إرجاع kUsageViolation أو kIncompatibleObject [SWS_CRYPT_50080].
  • إذا لم تكن المخازن المؤقتة للإخراج dataOut أو ivOut كافية، يفشل الاستدعاء مع kInsufficientCapacity [SWS_CRYPT_50080].
  • إذا كان السياق لا يدعم المعالجة أحادية الخطوة أو كان يتطلب تحديد IV خارجي، فسيتم إرجاع kUnsupported [SWS_CRYPT_50080].

تم تحديد العملية على أنها thread-safe بالإضافة إلى كونها آمنة ضد الاستثناءات وتضمن دلالات التراجع (Rollback) في حالة الخطأ [SWS_CRYPT_50080]. بالنسبة لعمليات التشفير المتماثل البحتة دون معالجة العلامات، يوجد نظير منفصل في SymmetricCipherCtx [SWS_CRYPT_50049].

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

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

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data
ivOutan output data buffer that the initialization vector (IV) generated by the context will be written to

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag 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
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer or authentication tag is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the data or IV output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50080
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50080@rel:R25-11#91eafb54
Content hash
91eafb54
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50080
Status: valid/unmigrated Version: rel:R25-11#1fa18617 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_50080@rel:R25-11#1fa18617
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_50075] Upstream: RS_CRYPTO_02302

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

Finalize the en-/decryption and calculate/verify the authentication tag without returning an IV.

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

الاستخدام والدلالات

تكمل الطريقة Finish عملية التشفير أو فك التشفير داخل ara::crypto::cryp::AuthCipherCtx بشكل متزامن وتحسب أو تفحص علامة المصادقة، دون إرجاع متجه تهيئة (IV) [SWS_CRYPT_50075]. يُمرِّر المتصل البيانات المتبقية عبر المخزن المؤقت in بالإضافة إلى المخزن المؤقت للوجهة out. عبر المخزن المؤقت tag، يتم إخراج العلامة المحسوبة في حالة التشفير، بينما في حالة فك التشفير يتم تمرير العلامة المراد التحقق منها [SWS_CRYPT_50075]. تحدد قيمة الإرجاع ara::core::Result<std::size_t> البايتات المكتوبة فعليًا في out، والتي قد تكون أقل من سعة المخزن المؤقت للإخراج [SWS_CRYPT_50075].

التسلسل والتفاعل

قبل الاستدعاء، يجب بالضرورة بدء معالجة البيانات بواسطة Start() [SWS_CRYPT_50075]. إذا تمت معالجة كتل البيانات مسبقًا باستخدام UpdateConfidentialData، فلا يجوز للتطبيق استخدام النص الصريح الناتج عند فك التشفير إلا بعد المصادقة الناجحة بواسطة Finish [SWS_CRYPT_50074]. يمكن تحديد الحد الأقصى المطلوب لحجم المخزن المؤقت لـ out مسبقًا عبر GetRequiredOutputBufferSize مع تحديد isFinal = true [SWS_CRYPT_50081].

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

تم تحديد الطريقة على أنها آمنة لترابط العمليات وآمنة ضد الاستثناءات [SWS_CRYPT_50075]. ويتم الإبلاغ عن الأخطاء عبر ara::core::Result بدلالات التراجع (Rollback) [SWS_CRYPT_50075]:

  • ProcessingNotStarted: لم تبدأ معالجة البيانات مسبقًا باستخدام Start() [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: المخزن المؤقت للإخراج out صغير جدًا [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInvalidInputSize: حجم المخزن المؤقت لـ in أو tag غير صالح [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: لا يمكن تأكيد أصالة البيانات عند فك التشفير [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kUnsupported: المعالجة المتدفقة (Streaming) غير مدعومة من قِبل السياق [SWS_CRYPT_50075].

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

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

Parameter (in)

ParameterBeschreibung
inan input data buffer that contains a part of the plaintext/ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the en-/decrypted data is written to

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag 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
ProcessingNotStartedif data processing has not been 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 or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50075
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50075@rel:R25-11#6a4d09a2
Content hash
6a4d09a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50075
Status: valid/unmigrated Version: rel:R25-11#61f4f343 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_50075@rel:R25-11#61f4f343
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

دالة FinishEncrypt [SWS_CRYPT_50076] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > FinishEncrypt (ReadOnlyMem Region in, ReadWriteMemRegion out, ReadWriteMemRegion tag, ReadWrite MemRegion ivOut) noexcept=0;

Finalize the encryption and calculate the authentication tag and return the IV generated by the context.

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

الاستخدام

تنهي الطريقة FinishEncrypt عملية تشفير موثقة في ara::crypto::cryp::AuthCipherCtx بشكل متزامن، وتحسب علامة التوثيق، وتُرجع متجه التهيئة المُولّد بواسطة السياق عبر ivOut [SWS_CRYPT_50076]. تم تحديد الاستدعاء بأنه آمن بالنسبة للخيوط وآمن من الاستثناءات (exception safe) [SWS_CRYPT_50076]. وكنتيجة، تُرجع الدالة ara::core::Result<std::size_t> بعدد البايتات المكتوبة فعليًا في مخزن الإخراج المؤقت out، حيث يجوز أن يكون حجم الإخراج أصغر من سعة المخزن المؤقت [SWS_CRYPT_50076]. تفسير: على الرغم من أن الاسم يشير إلى التشفير، إلا أن مواصفة المعلمة tag وكذلك كود الخطأ ara::crypto::CryptoErrc::kAuthTagNotValid يدلان على أنه من المرجح أن يُستخدم التوقيع في السياق بشكل متماثل لعمليات فك التشفير أيضًا. سؤال Q-6b924f12c32e0f33 (مفتوح)

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

يجب أن تكون معالجة البيانات قد بدأت حتمًا مسبقًا بـ Start()، وإلا تبلغ الدالة عن الخطأ ProcessingNotStarted [SWS_CRYPT_50076]. لتحديد أبعاد المخزن المؤقت، يجب مراعاة التفاعل مع دوال السياق التالية:

  • يمكن حساب السعة القصوى المطلوبة لـ out مسبقًا عبر [SWS_CRYPT_50081] باستخدام المعلمة isFinal = true، لتجنب الخطأ ara::crypto::CryptoErrc::kInsufficientCapacity [SWS_CRYPT_50076].
  • يتم تحديد الحد الأدنى والحد الأقصى لحجم المخزن المؤقت لبيانات الإدخال in بواسطة [SWS_CRYPT_50162] وكذلك [SWS_CRYPT_50082].
  • يمكن الاستعلام عن حجم المخزن المؤقت المطلوب لاستيعاب متجه التهيئة المُولّد في ivOut عبر [SWS_CRYPT_50165].

معالجة الأخطاء والشروط الحدية

في حالة الخطأ، تمتلك جميع الاستجابات دلالات تراجع (Rollback) محددة [SWS_CRYPT_50076]. وفي حالة أحجام المخازن المؤقتة غير الصالحة لبيانات الإدخال أو لعلامة المصادقة (Authentication Tag)، يتم إرجاع ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_50076]. بالإضافة إلى ذلك، تُرجع الدالة ara::crypto::CryptoErrc::kUnsupported إذا كانت معالجة التدفق (Stream Processing) غير مدعومة، أو لم يُستخدم IV، أو تم تحديد IV مسبقًا عند البدء بواسطة التطبيق [SWS_CRYPT_50076].

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي وتستند حصريًا إلى بيانات المواصفات.

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

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

Parameter (in)

ParameterBeschreibung
inan input data buffer that contains a part of the plaintext/ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the en-/decrypted data is written to
ivOutan output data buffer that contains the IV

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag 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
ProcessingNotStartedif data processing has not been 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 or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or if this context does not use an IV or if the IV has been provided by the application in the Start() function

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50076
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50076@rel:R25-11#0c47074e
Content hash
0c47074e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50076
Status: valid/unmigrated Version: rel:R25-11#7ffd5c95 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_50076@rel:R25-11#7ffd5c95
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

دالة GetMaxAssociatedDataSize [SWS_CRYPT_20103] Upstream: RS_CRYPTO_02309

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

Get maximum supported size of associated public data.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >maximal supported size of associated public data in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20103@rel:R25-11#329e3c5b
Content hash
329e3c5b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20103
Status: valid/unmigrated Version: rel:R25-11#7d3e4b66 Versionshistorie & Revisions (1 transition, 7 revision)
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_20103@rel:R25-11#7d3e4b66
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#91aa2c602026-09-30
  • R20-11rel:R20-11#91749f732026-10-14
  • R21-11rel:R21-11#c88a3b9a2026-10-14
  • R22-11rel:R22-11#e871a6a52026-10-14
  • R23-11rel:R23-11#84dddf6c2026-10-14
  • R24-11rel:R24-11#c2f0c3512026-10-14
  • R25-11rel:R25-11#7d3e4b662026-10-14 active
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_50082] 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(), FinishEncrypt() or ProcessSingleCall() by this context.

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50082
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50082@rel:R25-11#02cd6892
Content hash
02cd6892
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50082
Status: valid/unmigrated Version: rel:R25-11#f8e55f72 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_50082@rel:R25-11#f8e55f72
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

دالة GetMaximumInputIvSize [SWS_CRYPT_50164] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMaximumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the maximum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50164@rel:R25-11#c657f255
Content hash
c657f255
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50164
Status: valid/unmigrated Version: rel:R25-11#1567e5b7 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_50164@rel:R25-11#1567e5b7
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_50162] 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(), FinishEncrypt() or ProcessSingleCall() by this context.

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50162@rel:R25-11#74f755a5
Content hash
74f755a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50162
Status: valid/unmigrated Version: rel:R25-11#aa502d0a 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_50162@rel:R25-11#aa502d0a
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

دالة GetMinimumInputIvSize [SWS_CRYPT_50163] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMinimumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the minimum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50163@rel:R25-11#80e3a4d6
Content hash
80e3a4d6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50163
Status: valid/unmigrated Version: rel:R25-11#452ee080 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_50163@rel:R25-11#452ee080
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

دالة GetOutputIvSize [SWS_CRYPT_50165] Upstream: RS_CRYPTO_02309

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

Get the output IV size that will be returned by the functions FinishEncrypt() (in case no IV has been provided by the application during the call to Start()), and EncryptSingleCallWithOutputIv().

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50165@rel:R25-11#726604a7
Content hash
726604a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50165
Status: valid/unmigrated Version: rel:R25-11#b902740e 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_50165@rel:R25-11#b902740e
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_50081] 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/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
inputSizesize of input data
isFinalif true, calculate maximum required output buffer size for Finish(), FinishEncrypt() and ProcessSingleCall() 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
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50081
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50081@rel:R25-11#aebabc49
Content hash
aebabc49
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50081
Status: valid/unmigrated Version: rel:R25-11#6a6a83e1 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_50081@rel:R25-11#6a6a83e1
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

دالة GetTagSize [SWS_CRYPT_50161] Upstream: RS_CRYPTO_02309

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

Get the output tag size.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of the authentication tag in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50161@rel:R25-11#678dc681
Content hash
678dc681
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50161
Status: valid/unmigrated Version: rel:R25-11#f81af579 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_50161@rel:R25-11#f81af579
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

دالة ProcessSingleCall [SWS_CRYPT_50078] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > ProcessSingleCall (ReadOnly MemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMemRegion tag, CryptoTransform transformDirection, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call without setting or returning an IV.

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

تُنفذ الطريقة المتزامنة والمحددة بأنها آمنة لمؤشرات الترابط ProcessSingleCall الخاصة بـ ara::crypto::cryp::AuthCipherCtx تشفير بيانات الحمولة أو فك تشفيرها والحساب المتزامن أو التحقق من وسم التوثيق في عملية واحدة دون متجه تهيئة (IV) [SWS_CRYPT_50078]. عبر المخزن المؤقت الاختياري authenticatedData، يمكن توفير بيانات موثقة إضافية [SWS_CRYPT_50078]. يعمل المخزن المؤقت tag كمدخل للتحقق أثناء فك التشفير، وكمخرج لتخزين وسم التوثيق المُنشأ أثناء التشفير [SWS_CRYPT_50078]. عند المعالجة الناجحة، تُرجع ara::core::Result<std::size_t> العدد الفعلي للبايتات المكتوبة في dataOut، والتي يمكن أن تكون أقل من سعة المخزن المؤقت الهدف [SWS_CRYPT_50078].

قبل الاستدعاء، يجب أن يكون السياق التشفيري قد تمت تهيئته عبر استدعاء ناجح لـ SetKey؛ وإلا ستفشل الدالة مع ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_50078]. بالإضافة إلى ذلك، يجب أن يكون المفتاح المستخدم مصرحًا به لاتجاه التحويل المطلوب (kAllowDataEncrypt أو kAllowDataDecrypt)، وإلا فسيتم الإبلاغ عن ara::crypto::CryptoErrc::kUsageViolation [SWS_CRYPT_50078]. وإذا كانت المعالجة بخطوة واحدة غير مدعومة أو كان السياق يتطلب متجه تهيئة IV، تُرجع الدالة ara::crypto::CryptoErrc::kUnsupported [SWS_CRYPT_50078]. وإذا فشل التوثيق أثناء فك التشفير، فسيتم إطلاق ara::crypto::CryptoErrc::kAuthTagNotValid [SWS_CRYPT_50078]. تتم الإشارة إلى الأخطاء في فتحة المفتاح المخصصة عبر EmptyKeySlot أو ara::crypto::CryptoErrc::kBusyResource أو ara::crypto::CryptoErrc::kIncompatibleObject [SWS_CRYPT_50078].

لإدارة المخزن المؤقت، يمكن مسبقًا حساب أقصى حجم إخراج مطلوب لـ dataOut عبر GetRequiredOutputBufferSize مع تعيين العلامة isFinal = true [SWS_CRYPT_50081]؛ يؤدي مخزن الإخراج المؤقت الصغير جدًا إلى ara::crypto::CryptoErrc::kInsufficientCapacity [SWS_CRYPT_50078]. بالإضافة إلى ذلك، يجب أن يتوافق حجم dataIn مع حدود GetMinimumChunkSize [SWS_CRYPT_50162] وGetMaximumChunkSize [SWS_CRYPT_50082] لتجنب ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_50078].

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

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

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
transformDirectionthe transformation direction, i.e., encryption or decryption
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag 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
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting or returning an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer or authentication tag is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50078
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50078@rel:R25-11#c8b82361
Content hash
c8b82361
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50078
Status: valid/unmigrated Version: rel:R25-11#e0ad5fae 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_50078@rel:R25-11#e0ad5fae
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

دالة ProcessSingleCallWithInputIv [SWS_CRYPT_50079] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > ProcessSingleCallWithInputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, CryptoTransform transformDirection, ReadOnlyMemRegion iv, ara::core::Optional< ReadOnlyMemRegion > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call, providing an IV to be used during en-/decryption.

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

تنفذ الطريقة [SWS_CRYPT_50079] للفئة ara::crypto::cryp::AuthCipherCtx معالجة متزامنة أحادية الخطوة (Single-Call) لتشفير البيانات أو فك تشفيرها مع الحساب المتزامن لعلامة المصادقة أو التحقق منها.

عند الاستدعاء، يتم تحديد بيانات الإدخال عبر dataIn والاتجاه عبر transformDirection. يتم تمرير متجه التهيئة عبر iv، ويمكن توفير بيانات مصادقة اختيارية عبر authenticatedData [SWS_CRYPT_50079]. يعمل المخزن المؤقت tag في حالة التشفير كمخرج للعلامة المحسوبة، وفي حالة فك التشفير كمدخل للتحقق [SWS_CRYPT_50079]. تُرجع قيمة الإرجاع ara::core::Result<std::size_t> عند النجاح عدد البايتات المكتوبة في dataOut، والتي يمكن أن تكون أصغر من سعة المخزن المؤقت [SWS_CRYPT_50079].

في حال حدوث خطأ، تمتلك جميع رموز الخطأ دلالات التراجع (Rollback) [SWS_CRYPT_50079]:

  • ara::crypto::CryptoErrc::kUninitializedContext: لم يتم تكوين أي مفتاح مسبقًا عبر SetKey [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUsageViolation: لا يمتلك المفتاح الصلاحية المطلوبة kAllowDataEncrypt أو kAllowDataDecrypt [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kEmptyKeySlot أو ara::crypto::CryptoErrc::kBusyResource أو ara::crypto::CryptoErrc::kIncompatibleObject: إن KeySlot المكون فارغ أو مشغول أو لا يحتوي على SymmetricKey متوافق [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kInvalidInputSize أو ara::crypto::CryptoErrc::kInsufficientCapacity: أبعاد المخازن المؤقتة للإدخال أو العلامة أو IV غير صالحة، أو أن dataOut يوفر سعة غير كافية [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: تفشل المصادقة عند فك التشفير [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUnsupported: المعالجة أحادية الطلقة (Single-Shot) غير مدعومة من قِبل السياق، أو أن السياق يتطلب تعيين IV أو إخراجه [SWS_CRYPT_50079].

تم تعريف العملية على أنها thread-safe وexception safe [SWS_CRYPT_50079]. يمكن الاستعلام ديناميكيًا عن الأطوال المسموح بها لـ iv عبر GetMinimumInputIvSize [SWS_CRYPT_50163] وGetMaximumInputIvSize [SWS_CRYPT_50164]. بالمقارنة مع تشفير الكتل البحت في SymmetricCipherCtx [SWS_CRYPT_50048]، تجمع هذه الواجهة بين التحويل التشفيري والتحقق من السلامة في استدعاء واحد.

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

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

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
transformDirectionthe transformation direction, i.e., encryption or decryption
ivan Initialization Vector (IV) or "nonce" value
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag 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
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting or returning an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer, authentication tag, or IV is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the data or IV output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50079
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50079@rel:R25-11#81bef68c
Content hash
81bef68c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50079
Status: valid/unmigrated Version: rel:R25-11#971c6b5c 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_50079@rel:R25-11#971c6b5c
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_23911] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

The interface shall configure the context to use the provided SymmetricKey.

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

تُهيئ الدالة SetKey مثيل ara::crypto::cryp::AuthCipherCtx لاستخدام مفتاح متماثل مُمرَّر [SWS_CRYPT_23911]. وتُمرَّر كمَعلمة مؤشر مشترك key (من النوع SymmetricKey::Sptr)، والذي يُستخدم للتشفير أو فك التشفير المُوثَّق [SWS_CRYPT_23911]. يتم الاستدعاء تزامنيًا، وهو مُعلن كـ noexcept ويُرجع ara::core::Result<void> [SWS_CRYPT_23911].

في حالة حدوث خطأ، يُعاد تعيين النتيجة بدلالات التراجع (Rollback) وتُوفر رموز خطأ محددة [SWS_CRYPT_23911]:

  • ara::crypto::CryptoErrc::kUnsupported: إذا كان السياق يدعم التكوين حصريًا عبر KeySlot [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kIncompatibleObject: إذا كان نوع المفتاح المُمرَّر غير متوافق مع السياق الحالي [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kUsageViolation: إذا كانت أعلام الاستخدام المسموح بها للمفتاح لا تتضمن kAllowDataEncrypt للتشفير أو kAllowDataDecrypt لفك التشفير [SWS_CRYPT_23911].

وفقًا للمواصفة، صُنفت الواجهة على أنها آمنة بالنسبة للخيوط (thread-safe) وآمنة من الاستثناءات (exception safe) [SWS_CRYPT_23911]. وبالتفاعل مع سياق الوحدة، يُرجح أن يُعيَّن المفتاح قبل تهيئة تحويل جديد عبر Start [SWS_CRYPT_24715]. سؤال Q-11f7daa370f5d438 (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه آليًا بناءً على حمولة AUTOSAR.

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

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

Parameter (in)

ParameterBeschreibung
keysymmetric key object used for authenticated en-/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 SymmetricKey is incompatible with this AuthCipher Ctx
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the provided SymmetricKey does not include kAllowDataEncrypt for encryption, or kAllowDataDecrypt for decryption, respectively

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23911
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23911@rel:R25-11#e42dbd38
Content hash
e42dbd38
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23911
Status: valid/unmigrated Version: rel:R25-11#205c09dd Versionshistorie & Revisions (1 transition, 8 revision)
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_23911@rel:R25-11#205c09dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7fa81c372026-09-30
  • R19-11rel:R19-11#fcb0604e2026-10-14
  • R20-11rel:R20-11#43c209ac2026-10-14
  • R21-11rel:R21-11#9babec8c2026-10-14
  • R22-11rel:R22-11#a5a2e9812026-10-14
  • R23-11rel:R23-11#1982ebed2026-10-14
  • R24-11rel:R24-11#3524b4832026-10-14
  • R25-11rel:R25-11#205c09dd2026-10-14 active
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_50072] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

The interface shall configure the context to use the key stored in the provided KeySlot when the authenticated encrypt or decrypt operation is executed.

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

تكوّن الدالة SetKey في الواجهة ara::crypto::cryp::AuthCipherCtx السياقَ للعمليات التشفيرية بحيث يُستخدم المفتاح المتماثل المحفوظ في فتحة مفتاح مقدمة بمجرد تنفيذ التشفير أو فك التشفير الموثق [SWS_CRYPT_50072].

الاستخدام: يتم الاستدعاء المتزامن عبر الواجهة من ara/crypto/cryp/auth_cipher_ctx.h. كمعلمة keySlot، يتم تمرير مثيل من KeySlot::Sptr يقوم بتغليف مفتاح متماثل [SWS_CRYPT_50072]. تُرجع الدالة ara::core::Result<void> يؤكد النجاح أو يحتوي على كود خطأ [SWS_CRYPT_50072].

معالجة الأخطاء: إذا كان التنفيذ المحدد للسياق يدعم فقط التكوين المباشر عبر كائن SymmetricKey ولا يوفر التعيين عبر KeySlot، فإن الاستدعاء يفشل. في هذه الحالة، يتم إرجاع الخطأ ara::crypto::CryptoErrc::kUnsupported مع دلالات التراجع [SWS_CRYPT_50072].

التزامن والقيود: تم تحديد الدالة على أنها thread-safe وexception safe [SWS_CRYPT_50072]. ويمكن استدعاؤها بالتزامن كما تضمن عدم بقاء حالة غير متسقة في الحالات الاستثنائية.

التفاعل: كبديل وظيفي، يتوفر التحميل الزائد SetKey مع SymmetricKey::Sptr مباشر [SWS_CRYPT_23911]. بعد إتمام ربط المفتاح، تتم تهيئة السياق عبر Start باتجاه العملية بالإضافة إلى متجه التهيئة [SWS_CRYPT_24715]. توجد تواقيع مماثلة مع KeySlot::Sptr أيضًا في MessageAuthnCodeCtx [SWS_CRYPT_50026] وSymmetricKeyWrapperCtx [SWS_CRYPT_50034].

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

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a symmetric key

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 SymmetricKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50072
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50072@rel:R25-11#d5b4f10a
Content hash
d5b4f10a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50072
Status: valid/unmigrated Version: rel:R25-11#3dd5795a 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_50072@rel:R25-11#3dd5795a
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_24715] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start (CryptoTransform transform Direction, ReadOnlyMemRegion iv) noexcept=0;

Initialize the context for a new encryption or decryption and set the IV used by the context.

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

تُهيئ الدالة Start السياق ara::crypto::cryp::AuthCipherCtx لعملية تشفير أو فك تشفير جديدة وتُعين متجه التهيئة (IV) أو قيمة nonce المراد استخدامها [SWS_CRYPT_24715]. يُحدد اتجاه التحويل عبر المَعلمة transformDirection، بينما تُمرر iv المتجه كـ ReadOnlyMemRegion [SWS_CRYPT_24715]. يمكن تحديد حجم IV المسموح به عبر GetMinimumInputIvSize() بالإضافة إلى GetMaximumInputIvSize()؛ وإذا كان الطول مختلفًا، تُبلغ الدالة عن الخطأ ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_24715].

قبل الاستدعاء، يجب أن يكون SetKey قد تم تنفيذه بنجاح، وإلا فسيتم إرجاع ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_24715]. ويجب ألا يكون KeySlot المُكوَّن فارغًا (EmptyKeySlot) ولا مشغولاً (ara::crypto::CryptoErrc::kBusyResource) [SWS_CRYPT_24715]. بالإضافة إلى ذلك، يجب أن يكون المفتاح المحفوظ عبارة عن SymmetricKey مناسب (وإلا ara::crypto::CryptoErrc::kIncompatibleObject) ومُصرحًا به للاتجاه المطلوب (kAllowDataEncrypt أو kAllowDataDecrypt، وإلا ara::crypto::CryptoErrc::kUsageViolation) [SWS_CRYPT_24715]. وإذا كان دعم المعالجة المتدفقة أو تعيين IV في الاتجاه المختار مفقودًا، يفشل الاستدعاء مع ara::crypto::CryptoErrc::kUnsupported [SWS_CRYPT_24715]. تتسم جميع الأخطاء بدلالات التراجع [SWS_CRYPT_24715].

تم الإعلان عن العملية بأنها thread-safe وكذلك exception-safe (noexcept) [SWS_CRYPT_24715]. وفي إطار التفاعل بين العمليات التشفيرية، يُرجح بعد التهيئة الناجحة أن يتبع ذلك نموذجيًا تمرير بيانات مُوثَّقة إضافية عبر UpdateAuthenticatedData [SWS_CRYPT_20313]. سؤال Q-e023e27f1cd24507 (مفتوح)

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

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

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption
ivan Initialization Vector (IV) or "nonce" value. The allowed size of the IV can be queried using the functions GetMinimumInputIvSize() and GetMaximumInputIvSize().

Rückgabewert

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

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support setting an IV in the given transform Direction
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the configured KeySlot is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided IV is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24715
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24715@rel:R25-11#6916fba6
Content hash
6916fba6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24715
Status: valid/unmigrated Version: rel:R25-11#dacbb482 Versionshistorie & Revisions (1 transition, 8 revision)
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_24715@rel:R25-11#dacbb482
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#85d3f6962026-09-30
  • R19-11rel:R19-11#ea0e49642026-10-14
  • R20-11rel:R20-11#e9fc84162026-10-14
  • R21-11rel:R21-11#a59d78ec2026-10-14
  • R22-11rel:R22-11#dca7e5782026-10-14
  • R23-11rel:R23-11#640bb79c2026-10-14
  • R24-11rel:R24-11#f389a1072026-10-14
  • R25-11rel:R25-11#dacbb4822026-10-14 active
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_50073] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new encryption or decryption. An IV is either not required for this context in this transformation direction, or set by the context itself.

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

الاستخدام

تهيئ الطريقة الافتراضية الصرفة Start للفئة ara::crypto::cryp::AuthCipherCtx السياقَ بشكل متزامن لعملية تشفير أو فك تشفير وشيكة [SWS_CRYPT_50073]. عبر المعلمة transformDirection، يتم تحديد ما إذا كان السياق يجري إعداده للتشفير أم لفك التشفير. ولا يجوز استخدام هذا التحميل الزائد بدون متجه تهيئة (IV) إلا إذا كان السياق التشفيري لا يتطلب IV في اتجاه التحويل المختار أو يحدده بنفسه [SWS_CRYPT_50073]. القيمة المرجعة هي ara::core::Result<void> فارغ في حالة النجاح أو كود خطأ مطابق.

معالجة الأخطاء والشروط المسبقة

قبل الاستدعاء، يجب أن يكون السياق قد تم تكوينه بنجاح باستخدام مفتاح عبر SetKey؛ وإلا تفشل الدالة مع ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_50073]. بالإضافة إلى ذلك، تحدث القيم المرجعة التالية في حالة الخطأ:

  • ara::crypto::CryptoErrc::kUnsupported، إذا كانت معالجة التدفق غير مدعومة من السياق أو إذا كان السياق يتطلب حتمًا التحديد الصريح لـ IV في اتجاه التحويل المختار [SWS_CRYPT_50073].
  • ara::crypto::CryptoErrc::kUsageViolation، إذا كان استخدام المفتاح المسموح به في KeySlot المكوّن لا يتضمن في وقت الاستدعاء الإذن المطلوب kAllowDataEncrypt للتشفير أو kAllowDataDecrypt لفك التشفير [SWS_CRYPT_50073].
  • EmptyKeySlot أو ara::crypto::CryptoErrc::kBusyResource، إذا كان KeySlot مكوّن فارغًا أو محظورًا حاليًا [SWS_CRYPT_50073].
  • ara::crypto::CryptoErrc::kIncompatibleObject، إذا كان KeySlot المكوّن لا يحتوي على SymmetricKey أو إذا كان نوع المفتاح هذا غير مدعوم من السياق [SWS_CRYPT_50073].

في حالة حدوث خطأ، تنطبق دلالات التراجع المحددة (rollback_semantics) [SWS_CRYPT_50073].

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

الدالة مصرّح بها بـ noexcept=0، وتضمن السلامة من الاستثناءات، ومصممة لتكون آمنة بالنسبة للخيوط [SWS_CRYPT_50073]. إذا تطلبت الخوارزمية توفير متجه تهيئة خارجي، فيتعين بدلاً من ذلك استخدام التحميل الزائد Start(CryptoTransform, ReadOnlyMemRegion) [SWS_CRYPT_24715]. بعد نجاح التهيئة، يمكن إدراج بيانات موثقة إضافية عبر UpdateAuthenticatedData في حساب علامة التوثيق [SWS_CRYPT_20313].

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

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

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

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

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting an IV in the given transformDirection
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50073
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50073@rel:R25-11#836b5cac
Content hash
836b5cac
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50073
Status: valid/unmigrated Version: rel:R25-11#24eaa91a 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_50073@rel:R25-11#24eaa91a
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

دالة UpdateAuthenticatedData [SWS_CRYPT_20313] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > UpdateAuthenticatedData (ReadOnlyMem Region authenticatedData) noexcept=0;

Update the tag calculation by a new chunk of additional authenticated data.

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

تُستخدم الدالة UpdateAuthenticatedData للواجهة ara::crypto::cryp::AuthCipherCtx لتحديث حساب وسم المصادقة تدريجيًا بمقطع إضافي من البيانات الإضافية المصادق عليها (Additional Authenticated Data) [SWS_CRYPT_20313]. ويتم تمرير المخزن المؤقت المقابل كـ ReadOnlyMemRegion عبر المعلمة authenticatedData [SWS_CRYPT_20313].

فيما يتعلق بسياق الاستدعاء والتزامن، تم تعريف العملية على أنها thread-safe وكذلك exception safe [SWS_CRYPT_20313]. وتطبق شروط ترتيب صارمة على الاستدعاء:

  • يجب أن يكون التحويل قد بدأ مسبقًا عبر الدالة Start()، وإلا فسيتم الإبلاغ عن ara::crypto::CryptoErrc::kProcessingNotStarted [SWS_CRYPT_20313].
  • لا يجوز استدعاء الدالة بعد ذلك إذا كان قد تم تنفيذ UpdateConfidentialData بالفعل؛ وفي حالة عدم الامتثال، يتم إرجاع الخطأ ara::crypto::CryptoErrc::kInvalidUsageOrder [SWS_CRYPT_20313].

كقيمة مرجعة، تُرجع الدالة ara::core::Result<void>، وتكون فارغة في حالة النجاح أو تُغلف كود خطأ حدث [SWS_CRYPT_20313]. وتتميز جميع الأخطاء بدلالات تراجع (Rollback) [SWS_CRYPT_20313]:

  • ara::crypto::CryptoErrc::kInvalidInputSize: حجم المخزن المؤقت للإدخال الممرر غير صالح [SWS_CRYPT_20313].
  • ara::crypto::CryptoErrc::kUnsupported: معالجة التدفق غير مدعومة بواسطة السياق الحالي [SWS_CRYPT_20313].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي وهو بمثابة دليل توجيهي. وتظل مواصفات AUTOSAR هي المرجع الملزم.

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

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

Parameter (in)

ParameterBeschreibung
authenticatedDataa part of the additional authenticated data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the processing was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidUsageOrderrollback_semantics if UpdateConfidentialData has already been called
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_20313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20313@rel:R25-11#2bea76e8
Content hash
2bea76e8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20313
Status: valid/unmigrated Version: rel:R25-11#fcb70f91 Versionshistorie & Revisions (1 transition, 8 revision)
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_20313@rel:R25-11#fcb70f91
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e6b736912026-09-30
  • R19-11rel:R19-11#f75b41ea2026-10-14
  • R20-11rel:R20-11#4c46c8f42026-10-14
  • R21-11rel:R21-11#50979c0c2026-10-14
  • R22-11rel:R22-11#f4a00d3a2026-10-14
  • R23-11rel:R23-11#a528f60f2026-10-14
  • R24-11rel:R24-11#7dfc69482026-10-14
  • R25-11rel:R25-11#fcb70f912026-10-14 active
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

دالة UpdateConfidentialData [SWS_CRYPT_50074] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > UpdateConfidentialData (Read OnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Encrypt or decrypt confidential data. When used for decryption, the plaintext is returned without verifying its authenticity. An application must not use the data before verifying its authenticity using Finish().

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

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

فيما يتعلق بسير العمل والتزامن، تنطبق الشروط التالية:

  • ترتيب التسلسل والنزاهة: قبل المعالجة، يجب أن تكون العملية قد بدأت عبر Start() [SWS_CRYPT_50074]. وإذا تم استخدام الطريقة لفك التشفير، فسيتم إخراج النص الصريح دون تحقق مسبق من الموثوقية؛ ولا يجوز للتطبيق بأي حال من الأحوال استخدام هذه البيانات قبل التحقق النهائي بواسطة Finish() [SWS_CRYPT_50074]. يمكن أن تتدفق بيانات موثقة إضافية بالتوازي عبر UpdateAuthenticatedData في حساب الوسم [SWS_CRYPT_20313].
  • أمان مؤشرات الترابط والاستثناءات: تم التصريح عن العملية بأنها آمنة لمؤشرات الترابط (thread-safe) وكذلك آمنة من الاستثناءات (exception-safe) ولا تطرح أي استثناءات (noexcept) [SWS_CRYPT_50074].

إذا فشلت المعالجة، تنطبق دلالات التراجع مع إرجاع رمز خطأ مطابق في ara::core::Result [SWS_CRYPT_50074]:

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

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

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

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext or plaintext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the encrypted or decrypted data is written too

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_50074
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50074@rel:R25-11#a05be12e
Content hash
a05be12e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50074
Status: valid/unmigrated Version: rel:R25-11#342cdc85 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_50074@rel:R25-11#342cdc85
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_20101] Upstream: RS_CRYPTO_02207

using Sptr = std::shared_ptr<AuthCipherCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20101@rel:R25-11#ae9f8df1
Content hash
ae9f8df1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20101
Status: valid/unmigrated Version: rel:R25-11#56d76308 Versionshistorie & Revisions (1 transition, 8 revision)
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_20101@rel:R25-11#56d76308
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6cded4ce2026-09-30
  • R19-11rel:R19-11#d499b7852026-10-14
  • R20-11rel:R20-11#38ae99fd2026-10-14
  • R21-11rel:R21-11#15df77a52026-10-14
  • R22-11rel:R22-11#22ad2b2d2026-10-14
  • R23-11rel:R23-11#d20afa502026-10-14
  • R24-11rel:R24-11#d20afa502026-10-14
  • R25-11rel:R25-11#56d763082026-10-14 active
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