DEENESPTFRRUARHIKOZHNL

فئة ara::crypto::cryp::VerifierPublicCtx

[SWS_CRYPT_24100] Upstream: RS_CRYPTO_02204

class VerifierPublicCtx :             public CryptoContext {...};

Signature Verification Public key Context interface.

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

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

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

يُستخدم للتحقق غير المتماثل من التواقيع الرقمية عبر إجراء الخطوة الواحدة أو إجراء البث متعدد المراحل.

تُستخدم الواجهة ara::crypto::cryp::VerifierPublicCtx للتحقق من التواقيع الرقمية بواسطة مفاتيح عامة غير متماثلة عبر استدعاء من طلقة واحدة (One-Shot) أو بث متعدد الخطوات ([SWS_CRYPT_24112]، [SWS_CRYPT_50022]). قبل التحقق، يجب إلزامياً تكوين السياق بمفتاح صالح تسمح حقوق استخدامه المعينة بفحص التوقيع ([SWS_CRYPT_24115]). جميع طرق الواجهة مصممة لتكون آمنة من الاستثناءات وكذلك آمنة لخيوط التنفيذ.

السياق

تُستخدم الواجهة ara::crypto::cryp::VerifierPublicCtx للتحقق من التواقيع الرقمية استناداً إلى التشفير غير المتماثل باستخدام مفتاح عام. وتتفاعل مباشرةً مع كائنات المفاتيح ([SWS_CRYPT_24115]) أو مخازن المفاتيح الخارجية ([SWS_CRYPT_50018]) وتوفر طرقاً لفحص التواقيع إما في خطوة واحدة (One-Shot) أو عبر البث على عدة خطوات جزئية.

دورة الحياة

تُدار مثيلات سياق التحقق داخل التطبيق عادةً عبر الاسم المستعار لنوع المؤشر الذكي ara::crypto::cryp::VerifierPublicCtx::Sptr، والمحدَّد كـ std::shared_ptr<VerifierPublicCtx> ([SWS_CRYPT_24101]). أُعلن عن جميع طرق الواجهة بأنها آمنة من الاستثناءات (exception safe) وكذلك آمنة لخيوط التنفيذ.

يمر السياق بمراحل تشغيلية محددة بوضوح. بعد إنشاء مثيله، يكون السياق في حالة غير مهيأة، حيث تُرفض استدعاءات التحقق مع ara::crypto::CryptoErrc::kUninitializedContext ([SWS_CRYPT_50019]، [SWS_CRYPT_24112]). وفقط من خلال تعيين مفتاح مناسب باستخدام SetKey() ينتقل السياق إلى الحالة الجاهزة للتشغيل ([SWS_CRYPT_24115]، [SWS_CRYPT_50018]). ومن هذه الحالة، يمكن إما إجراء فحص ذري أو بدء جلسة بث. بعد إنهاء ([SWS_CRYPT_50022]) أو إلغاء ([SWS_CRYPT_50023]) عملية بث، يُفترض أن يصبح السياق جاهزاً مجدداً لعمليات فحص جديدة. سؤال Q-04655e144a821dbd (مفتوح)

verifier_states Uninitialisiert Uninitialisiert Bereit Bereit Uninitialisiert->Bereit SetKey() Bereit->Bereit SetKey() Bereit->Bereit Verify() [One-Shot] StreamingAktiv StreamingAktiv Bereit->StreamingAktiv Start() StreamingAktiv->Bereit Finish() StreamingAktiv->Bereit Cancel() StreamingAktiv->StreamingAktiv Update()

مخطط الحالة: دورة الحياة وانتقالات الحالة لسياق التحقق. المصادر: [SWS_CRYPT_24115]، [SWS_CRYPT_50018]، [SWS_CRYPT_50019]، [SWS_CRYPT_50021]، [SWS_CRYPT_50022]، [SWS_CRYPT_50023]، [SWS_CRYPT_24112]

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

يتوفر مساران متكاملان للمعالجة من أجل فحص التوقيع:

  • التحقق بطلقة واحدة (One-Shot): إذا كانت الرسالة الكاملة متوفرة في الذاكرة، يمكن استدعاء Verify() مباشرةً ([SWS_CRYPT_24112]) بعد تعيين المفتاح عبر SetKey() ([SWS_CRYPT_24115]). وإذا كانت الخوارزمية تدعم أو تتطلب بيانات سياق خاصة بالتطبيق، يُستخدم المتغير المحمَّل بشكل زائد مع مخزن مؤقت إضافي للسياق ([SWS_CRYPT_50024]). يُرجع كلا المتغيرين ara::core::Result<bool> تشير قيمته المنطقية (Boolean) إلى صلاحية التوقيع.
  • التحقق عبر البث (Streaming): في حال وجود كميات كبيرة من البيانات أو كتل بيانات تصل تدريجياً، يُستدعى أولاً Start() بعد SetKey() ([SWS_CRYPT_50019]، اختيارياً مع مخزن مؤقت للسياق وفقاً لـ [SWS_CRYPT_50020]). بعد ذلك، تُغذى أجزاء البيانات بشكل متكرر باستخدام Update() ([SWS_CRYPT_50021]). يمكن تحديد الحد الأقصى لحجم المخزن المؤقت للأقسام الفردية مسبقاً عبر GetMaximumChunkSize() ([SWS_CRYPT_50025]). ويشكل استدعاء Finish() الختام مع تمرير التوقيع ومعرّف تنسيقه ([SWS_CRYPT_50022]). يمكن إلغاء البث الجاري في أي وقت عبر Cancel() ([SWS_CRYPT_50023]).
سير عملية التحقق من التوقيع في وضع التدفقالتطبيقVerifierPublicCtxSetKey(key)Result<void>Start()Result<void>loopمعالجة كتل البياناتUpdate(data)Result<void>Finish(signature, signatureFormat)Result<bool>

مخطط التسلسل: التدفق التدريجي لفحص التوقيع في إجراء البث. المصادر: [SWS_CRYPT_24115]، [SWS_CRYPT_50019]، [SWS_CRYPT_50021]، [SWS_CRYPT_50022]

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

تعمل جميع الطرق المغيّرة للحالة والمتحققة باستخدام ara::core::Result وتتمتع بدلالات التراجع (Rollback) عند حدوث أخطاء:

  • تكوين المفتاح: إذا مُرِّر مفتاح أو KeySlot غير متوافق مع الخوارزمية، يُرجع SetKey() الخطأ CryptoErrc::kIncompatibleObject ([SWS_CRYPT_24115]، [SWS_CRYPT_50018]). وإذا كان المفتاح يفتقر إلى حق الاستخدام kAllowSigVerification، يفشل الاستدعاء مع CryptoErrc::kUsageViolation ([SWS_CRYPT_24115]). بالإضافة إلى ذلك، يبلغ SetKey() عن CryptoErrc::kUnsupported إذا كان السياق يقبل حصرياً شكل المفتاح الآخر (KeySlot أو PublicKey).
  • أخطاء التدفق والشروط المسبقة: إذا استُدعيت Update() أو Finish() أو Cancel() دون استدعاء ناجح مسبق لـ Start()، فإنها تفشل مع CryptoErrc::kProcessingNotStarted ([SWS_CRYPT_50021]، [SWS_CRYPT_50022]، [SWS_CRYPT_50023]). يؤدي استدعاء Start() أو Verify() دون إسناد مسبق للمفتاح إلى CryptoErrc::kUninitializedContext ([SWS_CRYPT_50019]، [SWS_CRYPT_24112]). وفي حالة وجود KeySlots مشار إليها لكنها فارغة، يُبلَّغ عن CryptoErrc::kEmptyKeySlot.
  • أخطاء البيانات والتنسيق: ترد الطرق على أحجام المخازن المؤقتة غير الصالحة بـ CryptoErrc::kInvalidInputSize ([SWS_CRYPT_50021]، [SWS_CRYPT_50022]، [SWS_CRYPT_24112]). وتُنتج تنسيقات التوقيع غير المدعومة CryptoErrc::kUnsupportedFormat، بينما تثير التواقيع المعيبة بنيوياً CryptoErrc::kInvalidArgument ([SWS_CRYPT_50022]، [SWS_CRYPT_24112]). وعند انشغال موارد العتاد، يُعاد CryptoErrc::kBusyResource.

يستند هذا الدليل حصريًا إلى مواصفات AUTOSAR Adaptive Platform R25-11.

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

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

1

مخطط الفئة

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

G nara__crypto__cryp__VerifierPublicCtx35 VerifierPublicCtx + Cancel() + Finish() + GetMaximumChunkSize() + SetKey() + Start() + Update() + Verify() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__VerifierPublicCtx35->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;
Finish دالة

Finish the signature verification and return the verification result.

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

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

virtual std::size_t GetMaximumChunkSize () const noexcept=0;
SetKey دالة 2

Configure the context to use the provided key.

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

Initialize the context for a new signature verification.

التحميلات الزائدة Start 2
virtual ara::core::Result< void > Start () noexcept=0; SWS_CRYPT_50019
virtual ara::core::Result< void > Start (ReadOnlyMemRegion context) noexcept=0; SWS_CRYPT_50020
Update دالة

Update the signature verification context by a new part of the message.

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;
Verify دالة 2

Verify the signature of the provided message in a single call.

التحميلات الزائدة Verify 2
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_24112
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_50024

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

Sptr اسم نوع بديل

Smart pointer of the interface.

توثيق الدوال

دالة Cancel [SWS_CRYPT_50023] 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 · درجة الحرارة: غير قابل للتحكم · الموجّه: 9071187e47e8 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

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

تُلغي الطريقة Cancel() عملية تدفق جارية تم بدؤها سابقًا بواسطة Start() ولم تكتمل بعد [SWS_CRYPT_50023]. وقد تم تعريفها في ملف الترويسة ara/crypto/cryp/verifier_public_ctx.h كطريقة pure virtual للسياق ara::crypto::cryp::VerifierPublicCtx [SWS_CRYPT_50023]. ويتم الاستدعاء بشكل متزامن وبدون وسائط. ويُستخدم ara::core::Result<void> كقيمة معادة، ويكون فارغًا في حالة النجاح ويؤكد الإلغاء الناجح للعملية [SWS_CRYPT_50023].

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

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

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

توضح المواصفة أن الطريقة آمنة لخيوط المعالجة (thread-safe) وآمنة من الاستثناءات (exception safe) مع الوسم noexcept [SWS_CRYPT_50023]. تفسير: بعد الإلغاء الناجح، يُرجّح أن يعود السياق إلى الحالة الأولية قبل بدء المعالجة، بحيث يمكن بدء عملية تدفق جديدة. سؤال Q-d80d09c8a8311bbc (مفتوح)

التفاعل في الوحدة crypt

ينطبق نمط الإلغاء الموحد هذا مع التوقيع ومعالجة الأخطاء المتطابقين باتساق على جميع سياقات التدفق للوحدة crypt:

  • MessageAuthnCodeCtx لرموز مصادقة الرسائل (Message Authentication Codes) [SWS_CRYPT_50027]،
  • SignerPrivateCtx لإنشاء التوقيعات الرقمية [SWS_CRYPT_50041]،
  • SymmetricCipherCtx للتشفير وفك التشفير المتماثل [SWS_CRYPT_50046]،
  • HashFunctionCtx لعمليات التجزئة التشفيرية [SWS_CRYPT_50058]،
  • DecryptorPrivateCtx لفك التشفير غير المتماثل [SWS_CRYPT_50069]،
  • AuthCipherCtx للتشفير الموثوق [SWS_CRYPT_50077] بالإضافة إلى
  • EncryptorPublicCtx للتشفير غير المتماثل [SWS_CRYPT_50089].

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

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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_50023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#08921684
Content hash
08921684
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated Version: rel:R25-11#ccbcbc55 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_50023@rel:R25-11#ccbcbc55
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_50022] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

Finish the signature verification and return the verification result.

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

تكمل الدالة Finish في ara::crypto::cryp::VerifierPublicCtx التحقق من التوقيع وتُرجع نتيجة التحقق [SWS_CRYPT_50022]. وتستقبل التوقيع المراد التحقق منه عبر مخزن الإدخال المؤقت signature (النوع ReadOnlyMemRegion)، وتستقبل تنسيقه عبر signatureFormat (النوع FormatId) [SWS_CRYPT_50022]. يتم الاستدعاء بشكل متزامن، وصُرح عنه وفقًا للمواصفة بأنه thread-safe وآمن من الاستثناءات (exception safe) [SWS_CRYPT_50022].

يُستخدم ara::core::Result<bool> كقيمة معادة [SWS_CRYPT_50022]: عند نجاح التحقق من صحة التوقيع، تحتوي النتيجة على true، وفي حالة عدم صحة التوقيع من حيث المحتوى تحتوي على false. أما في حال حدوث خطأ أثناء المعالجة، فيتم إرجاع كود خطأ مطابق [SWS_CRYPT_50022]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: لم تبدأ العملية بنجاح مسبقًا (دلالات التراجع) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidInputSize: حجم المخزن المؤقت لـ signature غير صالح (دلالات التراجع) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kUnsupportedFormat: التنسيق المحدد signatureFormat غير مدعوم (دلالات التراجع) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidArgument: التوقيع لا يتطابق مع التنسيق المحدد (دلالات التراجع) [SWS_CRYPT_50022].

في سياق العمليات التشفيرية، تشكل هذه الدالة النظير لإنشاء التوقيع عبر ara::crypto::cryp::SignerPrivateCtx::Finish [SWS_CRYPT_50040]، والتي تكتب التوقيع في مخزن مؤقت للإخراج. وتمتلك جميع الأخطاء المبلغ عنها دلالات تراجع [SWS_CRYPT_50022]، بحيث تظل حالة السياق متسقة عند الفشل.

تم إنشاء هذا النص بواسطة ذكاء اصطناعي وهو مخصص للإرشاد والتوجيه.

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

Parameter (in)

ParameterBeschreibung
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature generation has not been started sucessfully.
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50022
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50022@rel:R25-11#fb05929f
Content hash
fb05929f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50022
Status: valid/unmigrated Version: rel:R25-11#4737b352 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_50022@rel:R25-11#4737b352
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_50025] Upstream: RS_CRYPTO_02309

virtual std::size_t GetMaximumChunkSize () const noexcept=0;

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

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

Rückgabewert

TypBeschreibung
std::size_tthe maximum buffer size in bytes

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50025
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50025@rel:R25-11#500d918f
Content hash
500d918f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50025
Status: valid/unmigrated Version: rel:R25-11#85142237 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_50025@rel:R25-11#85142237
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_24115] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

Configure the context to use the provided key.

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

تُهيئ الطريقة SetKey مثيلاً من VerifierPublicCtx لاستخدام مفتاح عام محدد للتحقق من التوقيع ([SWS_CRYPT_24115]). يتم تمرير مؤشر من النوع PublicKey::Sptr عبر المعامل key. يتم الاستدعاء بشكل متزامن ويُرجع ara::core::Result<void>، والذي يكون فارغًا في حالة النجاح أو يغلف رمز خطأ محددًا.

وفقًا للمواصفة، تم تصميم العملية لتكون آمنة عبر مؤشرات الترابط وآمنة ضد الاستثناءات (exception safe) ([SWS_CRYPT_24115]). إذا حدث خطأ أثناء ربط المفتاح، تنطبق دلالات التراجع (rollback) على جميع حالات الخطأ، بحيث يظل السياق في حالة متسقة:

  • CryptoErrc::kIncompatibleObject: المفتاح المُمرَّر غير متوافق مع سياق التحقق من التوقيع ([SWS_CRYPT_24115]).
  • CryptoErrc::kUsageViolation: لا تسمح أذونات المفتاح بالتحقق من التوقيع (غياب راية الاستخدام للتحقق من التوقيع) ([SWS_CRYPT_24115]).
  • ara::crypto::CryptoErrc::kUnsupported: لا يدعم تنفيذ السياق سوى ربط مفتاح عبر KeySlot ([SWS_CRYPT_24115]).

في مسار العمل التشفيري، يُشكّل SetKey النظير العام لـ SignerPrivateCtx::SetKey ([SWS_CRYPT_23515]). وإذا كان السياق لا يسمح بتمرير المفتاح مباشرةً عبر PublicKey::Sptr أو كانت المفاتيح تُدار في فتحات مؤمَّنة، فإن التحميل الزائد بواسطة KeySlot::Sptr يكون متاحًا كبديل ([SWS_CRYPT_50018]).

أُنشئت ملاحظة الاستخدام هذه آليًا من بيانات مواصفات AUTOSAR.

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

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

Parameter (in)

ParameterBeschreibung
keythe source key object

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24115@rel:R25-11#7f466c2d
Content hash
7f466c2d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24115
Status: valid/unmigrated Version: rel:R25-11#4657cfda 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_24115@rel:R25-11#4657cfda
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b4f2582a2026-09-30
  • R20-11rel:R20-11#c67a48952026-10-14
  • R21-11rel:R21-11#68e4b4312026-10-14
  • R22-11rel:R22-11#c39e34c92026-10-14
  • R23-11rel:R23-11#8afac6e02026-10-14
  • R24-11rel:R24-11#e169f3652026-10-14
  • R25-11rel:R25-11#4657cfda2026-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_50018] 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 signature verification is started.

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

الاستخدام

تُهيئ الطريقة SetKey للفئة ara::crypto::cryp::VerifierPublicCtx سياق التحقق لاستخدام مفتاح محفوظ في KeySlot ممرر [SWS_CRYPT_50018]. يُستخدم المفتاح في الوقت الذي يبدأ فيه فحص التوقيع [SWS_CRYPT_50018].

يُستخدم كمَعلمة مؤشر ذكي keySlot من النوع KeySlot::Sptr، والذي يحتوي على مفتاح عام [SWS_CRYPT_50018]. تعمل الدالة بشكل متزامن وتُرجع ara::core::Result<void> للإشارة إلى إتمام ناجح أو خطأ [SWS_CRYPT_50018].

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

تم تحديد العملية بأنها noexcept وexception safe [SWS_CRYPT_50018]. إذا حدث خطأ، تسري دلالة التراجع (Rollback) [SWS_CRYPT_50018]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: الـ KeySlot المقدم غير متوافق مع هذا السياق [SWS_CRYPT_50018].
  • ara::crypto::CryptoErrc::kUnsupported: يدعم السياق حصريًا التعيين المباشر لـ PublicKey [SWS_CRYPT_50018].

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

تم تحديد الطريقة بأنها آمنة مؤشريًا (thread-safe) [SWS_CRYPT_50018]. كبديل لـ KeySlot، توفر VerifierPublicCtx تحميلاً زائدًا لتعيين PublicKey مباشرةً [SWS_CRYPT_24115]. توجد تهيئة مقابلة للمفتاح عبر KeySlot بشكل مماثل أيضًا في سياقات أخرى مثل SignerPrivateCtx [SWS_CRYPT_50036] أو MessageAuthnCodeCtx [SWS_CRYPT_50026].

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

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a public key

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 PublicKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50018@rel:R25-11#6f1b9ee4
Content hash
6f1b9ee4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50018
Status: valid/unmigrated Version: rel:R25-11#9f29f516 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_50018@rel:R25-11#9f29f516
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_50019] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature verification.

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

الاستخدام

تُهيئ الدالة المتزامنة Start() الخاصة بالواجهة ara::crypto::cryp::VerifierPublicCtx ([SWS_CRYPT_50019]) السياق لفحص توقيع تشفيري جديد في وضع التدفق. لا تقبل الدالة أي مَعلمات تمرير، وهي مُعلنة كـ noexcept وتُرجع ara::core::Result<void> يكون فارغًا في حالة النجاح.

معالجة الأخطاء والتراجع (Rollback)

إذا حدث خطأ أثناء التنفيذ، تُطبق دلالات التراجع ([SWS_CRYPT_50019])، مما يُبقي السياق في حالة متسقة. أسباب الخطأ المحتملة هي:

  • UninitializedContext: لم يُعيَّن مفتاح تشفيري للسياق مسبقًا.
  • ara::crypto::CryptoErrc::kUsageViolation: المفتاح المُعيَّن غير مُصرح به للتحقق من التوقيع (kAllowSig Verification).
  • ara::crypto::CryptoErrc::kEmptyKeySlot: فتحة KeySlot المُهيأة للتحقق فارغة حاليًا.
  • ara::crypto::CryptoErrc::kUnsupported: السياق لا يدعم التدفق، أو أن العملية تشترط قيمة سياق بصورة إلزامية.
  • ara::crypto::CryptoErrc::kBusyResource: مورد مطلوب للعملية مشغول حاليًا.

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

على الرغم من أن المواصفة تُشير إلى أن الدالة آمنة بالنسبة للخيوط ([SWS_CRYPT_50019])، فمن المحتمل أن يؤدي الاستدعاء المتوازي على نفس مثيل السياق أثناء عملية تحقق جارية إلى إعادة تعيين العملية الحالية أو الفشل بسبب الموارد المشغولة. سؤال Q-af5e08ff9d905a29 (مفتوح)

بعد نجاح التهيئة، تُمرَّر أجزاء الرسالة بالتتابع عبر Update() ([SWS_CRYPT_50021]). ويمكن إلغاء عملية تدفق جارية قبل اكتمالها عند الحاجة باستخدام Cancel() ([SWS_CRYPT_50023]). وإذا كانت الخوارزمية تتطلب قيمة سياق بصورة إلزامية، فيجب بدلاً من ذلك استدعاء الدالة المحملة زائدًا Start(ReadOnlyMemRegion context) ([SWS_CRYPT_50020]).

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm requires setting a context value
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 kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50019@rel:R25-11#1d4391fd
Content hash
1d4391fd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50019
Status: valid/unmigrated Version: rel:R25-11#d79f5341 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_50019@rel:R25-11#d79f5341
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_50020] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature verification.

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

الاستخدام

تُهيئ الدالة Start وفقًا لـ [SWS_CRYPT_50020] سياق تحقق للفئة ara::crypto::cryp::VerifierPublicCtx لفحص توقيع جديد. كمعلمة إدخال، تقبل context من النوع ReadOnlyMemRegion، والذي يوفر قيمة سياق خاصة بالتطبيق. كبديل بدون بيانات سياق، يتوفر التحميل الزائد [SWS_CRYPT_50019]. قيمة الإرجاع هي ara::core::Result<void>؛ تفسير: نظرًا لعدم تحديد عمليات رد نداء ولا كائنات مستقبلية، يُرجح أن تتم معالجة الاستدعاء بشكل متزامن بحت. سؤال Q-4e10cdb1a4343a3a (مفتوح)

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

في حالة حدوث خطأ، تُرجع الدالة ara::core::Result مع رمز خطأ مناسب من ara::crypto::CryptoErrc، مع تحديد دلالات التراجع [SWS_CRYPT_50020]:

  • kUninitializedContext: لم تتم تهيئة السياق بعد عن طريق تعيين مفتاح.
  • kEmptyKeySlot: إن KeySlot الذي تم تكوينه فارغ حاليًا.
  • kUsageViolation: الاستخدام المسموح به للمفتاح المعين لا يتضمن kAllowSigVerification.
  • kInvalidInputSize: حجم المخزن المؤقت لقيمة السياق المُمررة غير صالح للخوارزمية.
  • kUnsupported: لا يدعم السياق التدفق أو لا تدعم الخوارزمية تعيين قيمة السياق.
  • kBusyResource: أحد الموارد المطلوبة مشغول.

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

وفقًا لـ [SWS_CRYPT_50020]، تم تصنيف الطريقة على أنها thread-safe وكذلك exception-safe. وهي لا تطلق أي استثناءات (noexcept).

تفاعل

بعد التنفيذ الناجح لـ Start، يمكن إرسال رسالة الإدخال تدريجيًا عبر استدعاءات متكررة لـ Update [SWS_CRYPT_50021]. ويمكن عند الحاجة إلغاء عملية تدفق جارية تم بدؤها بواسطة Start مبكرًا عبر Cancel [SWS_CRYPT_50023].

تم إنشاء هذا النص تلقائيًا. وتستند جميع المعلومات حصريًا إلى مواصفة AUTOSAR.

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

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

Parameter (in)

ParameterBeschreibung
contexta context value

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm does not support setting a context value
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 kAllowSig Verification
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the context is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50020
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50020@rel:R25-11#12f92620
Content hash
12f92620
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50020
Status: valid/unmigrated Version: rel:R25-11#4700c295 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_50020@rel:R25-11#4700c295
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_50021] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;

Update the signature verification context by a new part of the message.

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

الاستخدام

تُستخدم الطريقة Update() لتحديث سياق فحص التوقيع تدريجيًا بجزء إضافي من رسالة الإدخال [SWS_CRYPT_50021]. يتم تمرير نطاق ذاكرة data من النوع ReadOnlyMemRegion كمعلمة. تُرجع الدالة ara::core::Result<void>؛ تفسير: بناءً على نوع الإرجاع هذا، يُرجح أن تتم المعالجة بشكل متزامن. سؤال Q-f98391030b3b4684 (مفتوح)

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

في حالة حدوث خطأ، يتم إرجاع رمز خطأ مطابق مع دلالات تراجع [SWS_CRYPT_50021]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: لم يتم بدء فحص التوقيع مسبقًا عن طريق استدعاء الطريقة Start() [SWS_CRYPT_50021].
  • ara::crypto::CryptoErrc::kInvalidInputSize: حجم البيانات المقدمة في data غير مدعوم [SWS_CRYPT_50021].

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

تم تصنيف العملية في المواصفة كـ thread-safe و exception safe [SWS_CRYPT_50021]. ويجب بالضرورة إجراء التهيئة عبر Start() قبل الاستدعاء [SWS_CRYPT_50021]. لمنع حدوث kInvalidInputSize، يمكن الاستعلام عن الحد الأقصى المسموح به لحجم المخزن المؤقت للاستدعاءات الفردية عبر الطريقة GetMaximumChunkSize() لنفس السياق [SWS_CRYPT_50025]. يمثل Update() في SignerPrivateCtx النظير المكمل لإنشاء التوقيع على مستوى الرسائل [SWS_CRYPT_50039].

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

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

Parameter (in)

ParameterBeschreibung
dataa part of the input message that should be processed

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature verification was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50021
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50021@rel:R25-11#1d292c51
Content hash
1d292c51
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50021
Status: valid/unmigrated Version: rel:R25-11#353f95ae 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_50021@rel:R25-11#353f95ae
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

دالة Verify [SWS_CRYPT_24112] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message in a single call.

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

الاستخدام

تُستخدم الدالة Verify الخاصة بالسياق ara::crypto::cryp::VerifierPublicCtx للتحقق من توقيع رسالة مُقدَّمة في استدعاء واحد [SWS_CRYPT_24112]. وتُمرَّر كمَعلمات مخزن الرسالة المؤقت message، والتوقيع signature، والتنسيق signatureFormat [SWS_CRYPT_24112]. وتحتوي القيمة المرجعة ara::core::Result<bool> على true عند نجاح الفحص، أو false في حالة عدم التطابق، أو رمز خطأ [SWS_CRYPT_24112]. تفسير: نظرًا لنوع النتيجة المتزامن، يُرجح أن تُنفَّذ عملية الفحص بشكل حاجِب في خيط التنفيذ المستدعي. سؤال Q-671054c6e2b581c6 (مفتوح)

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

حُددت الدالة كـ exception safe وthread-safe [SWS_CRYPT_24112]. وفي حالة حدوث خطأ، تُطبق دلالات التراجع لرموز الخطأ [SWS_CRYPT_24112]. وتشمل أسباب الأخطاء المحتملة ما يلي:

  • UninitializedContext، إذا لم تتم تهيئة السياق بمفتاح [SWS_CRYPT_24112]،
  • ara::crypto::CryptoErrc::kEmptyKeySlot في حالة فراغ فتحة المفتاح أو kUsageViolation إذا كان المفتاح يفتقر إلى الإذن kAllowSig Verification [SWS_CRYPT_24112]،
  • ara::crypto::CryptoErrc::kInvalidInputSize عند وجود حجم مخزن مؤقت غير مسموح به [SWS_CRYPT_24112]،
  • ara::crypto::CryptoErrc::kUnsupportedFormat أو kInvalidArgument عند وجود تنسيق توقيع خاطئ أو غير متوافق [SWS_CRYPT_24112]،
  • ara::crypto::CryptoErrc::kBusyResource، إذا كانت الموارد المطلوبة مشغولة [SWS_CRYPT_24112].

تفاعل

يمكن الاستعلام عن الحد الأقصى لحجم المخزن المؤقت للاستدعاءات الفردية عبر GetMaximumChunkSize() [SWS_CRYPT_50025]. وإذا كانت الخوارزمية تتطلب قيمة سياق إلزامية، يُرجع ara::crypto::CryptoErrc::kUnsupported [SWS_CRYPT_24112]؛ وفي هذه الحالة، يجب اختيار التحميل الزائد مع مَعلمة context إضافية [SWS_CRYPT_50024]. ولعمليات التحقق من Message Authentication Codes، يوجد بشكل منفصل ara::crypto::cryp::MessageAuthnCodeCtx::Verify [SWS_CRYPT_50031].

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm requires a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format.
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 kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24112@rel:R25-11#fa315b5c
Content hash
fa315b5c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24112
Status: valid/unmigrated Version: rel:R25-11#5528778e 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_24112@rel:R25-11#5528778e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fff71a402026-09-30
  • R19-11rel:R19-11#66da619a2026-10-14
  • R20-11rel:R20-11#a7cb40442026-10-14
  • R21-11rel:R21-11#4c73f9ac2026-10-14
  • R22-11rel:R22-11#9330d7cf2026-10-14
  • R23-11rel:R23-11#25763dfd2026-10-14
  • R24-11rel:R24-11#c2cd046c2026-10-14
  • R25-11rel:R25-11#5528778e2026-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

دالة Verify [SWS_CRYPT_50024] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message with context in a single call.

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

تتحقق الطريقة المتزامنة Verify من التوقيع الرقمي لرسالة مُمررة مع مراعاة قيمة سياق مخصصة من قبل المستخدم في استدعاء واحد ([SWS_CRYPT_50024]). وتتوقع الطريقة كمعلمات إدخال المخازن المؤقتة message وcontext وsignature، كل منها كـ ReadOnlyMemRegion، بالإضافة إلى تنسيق التوقيع عبر signatureFormat ([SWS_CRYPT_50024]). وتكون القيمة المعادة عبارة عن ara::core::Result<bool>: حيث تحتوي على true عند نجاح التحقق، أو false عند وجود توقيع خاطئ، أو رمز خطأ مطابق ([SWS_CRYPT_50024]).

في حالة الخطأ، تنطبق دلالات التراجع ([SWS_CRYPT_50024]). وتشمل رموز الأخطاء المحددة من بين أمور أخرى:

  • UninitializedContext، إذا لم تتم تهيئة سياق التحقق بعد بقيمة مفتاح ([SWS_CRYPT_50024])،
  • ara::crypto::CryptoErrc::kInvalidInputSize في حال كان حجم المخزن المؤقت غير مسموح به ([SWS_CRYPT_50024])،
  • ara::crypto::CryptoErrc::kUnsupported، إذا كانت خوارزمية التوقيع المحددة لا تدعم تحديد قيمة سياق ([SWS_CRYPT_50024])،
  • ara::crypto::CryptoErrc::kUnsupportedFormat أو ara::crypto::CryptoErrc::kInvalidArgument، إذا كان تنسيق التوقيع المحدد غير مدعوم أو كان التوقيع لا يتطابق مع التنسيق ([SWS_CRYPT_50024])،
  • ara::crypto::CryptoErrc::kUsageViolation، إذا كان استخدام المفتاح المسموح به لا يتضمن kAllowSigVerification، وكذلك ara::crypto::CryptoErrc::kEmptyKeySlot وara::crypto::CryptoErrc::kBusyResource ([SWS_CRYPT_50024]).

تم التصريح عن الطريقة كـ const noexcept، وتُعتبر آمنة من الاستثناءات، ومحددة كـ thread-safe ([SWS_CRYPT_50024]). بالتفاعل مع السياق، يمكن تحديد الحد الأقصى لحجم المخزن المؤقت للاستدعاءات الفردية عبر GetMaximumChunkSize ([SWS_CRYPT_50025]). ولعمليات التحقق دون سياق، يتوفر التحميل الزائد البديل لـ Verify ([SWS_CRYPT_24112]).

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
contexta user supplied "context"
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm does not support a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format
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 kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50024
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50024@rel:R25-11#aad34b2c
Content hash
aad34b2c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50024
Status: valid/unmigrated Version: rel:R25-11#424fa98e 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_50024@rel:R25-11#424fa98e
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_24101] Upstream: RS_CRYPTO_02204

using Sptr = std::shared_ptr<VerifierPublicCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24101@rel:R25-11#5ddae255
Content hash
5ddae255
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24101
Status: valid/unmigrated Version: rel:R25-11#44b9f060 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_24101@rel:R25-11#44b9f060
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4ff468462026-09-30
  • R19-11rel:R19-11#723b4f232026-10-14
  • R20-11rel:R20-11#03e0c2472026-10-14
  • R21-11rel:R21-11#03e0c2472026-10-14
  • R22-11rel:R22-11#cd4d7bb92026-10-14
  • R23-11rel:R23-11#4372989f2026-10-14
  • R24-11rel:R24-11#4372989f2026-10-14
  • R25-11rel:R25-11#44b9f0602026-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