DEENESPTFRRUARHIKOZHNL

فئة ara::crypto::cryp::CryptoProvider

[SWS_CRYPT_20700] Upstream: RS_CRYPTO_02305, RS_CRYPTO_02307, RS_CRYPTO_02401

class CryptoProvider {...};

CryptoProviderInterface representing one implementation of a set of cryptographic primitives with a key storage.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp

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

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

يعمل كمصنع مركزي لإنشاء وإدارة السياقات وخوارزميات التشفير وكائنات المفاتيح.

تعمل الفئة كمصنع مركزي لتوفير الأوليات التشفيرية وكذلك لإنشاء وإدارة المفاتيح والسياقات التشفيرية ([SWS_CRYPT_20742]، [SWS_CRYPT_20721]). ولا تقبل المثيلات النسخ أو النقل، وتتم إدارتها عبر مؤشرات مشتركة ([SWS_CRYPT_20701]، [SWS_CRYPT_41005]). وتُعاد الأخطاء، مثل الخوارزميات غير المتوافقة أو استنفاد الموارد، بطريقة آمنة من حيث النوع عبر ara::core::Result ([SWS_CRYPT_30098]).

السياق

تشكل الفئة ara::crypto::cryp::CryptoProvider الواجهة المركزية لتوفير العمليات وخوارزميات التشفير في مكدس AUTOSAR Adaptive. وبصفتها طبقة تجريد، فإنها تجمع التطبيقات الملموسة للأوليات التشفيرية بالإضافة إلى الوصول إلى المفاتيح وبنى التخزين. وفي معمارية النظام النموذجية، يعمل CryptoProvider كوسيط ومصنع بين منطق التطبيق ومخازن المفاتيح الدائمة وسياقات المعالجة المتخصصة. وتطلب التطبيقات عبر الموفر سياقات متخصصة للتشفير المتناظر ([SWS_CRYPT_20742])، أو التشفير غير المتناظر ([SWS_CRYPT_20750]، [SWS_CRYPT_20751])، أو التواقيع الرقمية ([SWS_CRYPT_20756]، [SWS_CRYPT_20757])، أو دوال التلبيد ([SWS_CRYPT_20747])، أو مصادقة الرسائل ([SWS_CRYPT_20746])، أو إجراءات تبادل المفاتيح ([SWS_CRYPT_20758]، [SWS_CRYPT_20752]). وفي الوقت نفسه، يتفاعل الموفر مع فتحات المفاتيح الأساسية لإنشاء مثيلات من المفاتيح المخزنة ([SWS_CRYPT_20762]، [SWS_CRYPT_20764]).

ProviderKontext Anwendung Anwendung CryptoProvider CryptoProvider Anwendung->CryptoProvider KeySlot KeySlot CryptoProvider->KeySlot CryptoContext CryptoContext CryptoProvider->CryptoContext CryptoObject CryptoObject CryptoProvider->CryptoObject

مخطط السياق: تضمين CryptoProvider كمصنع ووسيط بين التطبيق والسياقات وKeySlot. المصادر: [SWS_CRYPT_20742]، [SWS_CRYPT_20756]، [SWS_CRYPT_20762].

دورة الحياة

تمتلك مثيلات CryptoProvider دلالات صارمة فيما يتعلق بعمليات النسخ والنقل: فكل من منشئ النسخ ([SWS_CRYPT_41005]) ومنشئ النقل ([SWS_CRYPT_41006]) بالإضافة إلى معاملات التعيين المقابلة ([SWS_CRYPT_30216]، [SWS_CRYPT_30217]) محذوفة صراحةً (delete). لذلك، تتم إدارة دورة حياة المثيل عادةً عبر مراجع أو ملكية مشتركة، والتي تم تعريف الاسم المستعار للنوع CryptoProvider::Sptr لها بناءً على std::shared_ptr ([SWS_CRYPT_20701]). وتتم عملية التنظيف عبر المدمر الافتراضي القياسي ([SWS_CRYPT_20710]). وقد تم تحديد جميع دوال واجهة الموفر بأنها آمنة من الاستثناءات (exception safe) وآمنة خيطيًا (thread-safe)، مما يسمح بالوصول المتزامن من عدة خيوط دون تزامن خارجي على مستوى الموفر.

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

يتضمن مسار الاستخدام النموذجي توفير المفتاح، وإنشاء مثيل لسياق التشفير المناسب، ثم إجراء التحويلات لاحقًا. أولاً، يقوم التطبيق بإنشاء أو استيراد مادة المفتاح المطلوبة. ولهذا الغرض، يوفر CryptoProvider دوال مثل GenerateSymmetricKey ([SWS_CRYPT_20721])، أو GeneratePrivateKey ([SWS_CRYPT_20722])، أو ImportPublicKey ([SWS_CRYPT_20732])، أو التحميل من فتحة مفتاح موجودة ([SWS_CRYPT_20762]، [SWS_CRYPT_20763]). وبناءً على الخوارزمية، يمكن تحديد الأذونات الافتراضية عبر GetDefaultAllowedUsage ([SWS_CRYPT_20955]). وفي الخطوة التالية، ينشئ التطبيق السياق المعني عبر دوال المصنع، على سبيل المثال AuthCipherCtx ([SWS_CRYPT_20745]) أو SignerPrivateCtx ([SWS_CRYPT_20756]). بالإضافة إلى ذلك، يوفر الموفر بيانات عشوائية عبر GenerateRandomData ([SWS_CRYPT_30098]) أو قيمة عداد متزايدة باطراد عبر GetSecureCounter ([SWS_CRYPT_20098]). وللتبادل الآمن، يمكن تصدير مادة المفتاح بشكل محمي باستخدام ExportSecuredKey ([SWS_CRYPT_20728]).

توليد المفتاح والسياقالتطبيقCryptoProviderAuthCipherCtxGenerateSymmetricKey(algId, allowedUsage)Erzeugt SymmetricKey::SptrResult<SymmetricKey::Sptr>CreateAuthCipherCtx(algId)InstanziierungResult<AuthCipherCtx::Sptr>

مخطط تسلسلي: تسلسل توليد المفاتيح وإنشاء سياق التشفير الموثق. المصادر: [SWS_CRYPT_20721]، [SWS_CRYPT_20745].

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

تُبلغ دوال CryptoProvider عن الأخطاء عبر نوع الإرجاع ara::core::Result بقيم من ara::crypto::CryptoErrc. وتُطبق دلالات التراجع في حالة العمليات الفاشلة. وتتضمن سيناريوهات الخطأ الأساسية ما يلي:

  • معلمات غير صالحة أو غير متوافقة: إذا تم تمرير معرّف خوارزمية غير مدعوم، تُرجع دوال إنشاء السياق والمفاتيح CryptoErrc::kUnknownIdentifier ([SWS_CRYPT_20741]، [SWS_CRYPT_20742]، [SWS_CRYPT_20721]). وإذا لم تتطابق الخوارزمية مع الأوّلية المتوقعة (مثل خوارزمية غير متناظرة عند طلب دالة تلبيد) أو لم تتوافق أعلام الاستخدام مع التكوين، يحدث CryptoErrc::kInvalidArgument أو CryptoErrc::kIncompatibleArguments ([SWS_CRYPT_20747]، [SWS_CRYPT_20722]، [SWS_CRYPT_50132]).
  • أخطاء تخزين المفاتيح وتنسيقها: عند التحميل عبر فتحات المفاتيح، تؤدي الفتحة غير المجهزة إلى CryptoErrc::kEmptyKeySlot، بينما تسبب أنواع المفاتيح الغريبة أو غير الصحيحة CryptoErrc::kIncompatibleObject ([SWS_CRYPT_20762]، [SWS_CRYPT_20764]). وتؤدي تنسيقات التسلسل الخاطئة إلى CryptoErrc::kUnsupportedFormat ([SWS_CRYPT_50014]، [SWS_CRYPT_20732]).
  • اختناقات الموارد والسعة: إذا استُنفد مولد الأرقام العشوائية مؤقتًا أو تم حظر مورد أجهزة، يُعاد CryptoErrc::kBusyResource ([SWS_CRYPT_30098]، [SWS_CRYPT_20721]، [SWS_CRYPT_20098]). وفي حالة المخازن المؤقتة للوجهة ذات الأبعاد غير الكافية لبيانات التعريف أو عمليات تصدير المفاتيح، تُبلغ الواجهة عن CryptoErrc::kInsufficientCapacity ([SWS_CRYPT_50015]، [SWS_CRYPT_20728]).
  • ميزات غير مدعومة: إذا كانت الميزات الاختيارية مثل تحديد هوية الموفر، أو العداد الآمن، أو RNG القياسي غير مدعومة من قِبل تطبيق موفر ملموس، فسيتم الإبلاغ عن الخطأ CryptoErrc::kUnsupported ([SWS_CRYPT_50015]، [SWS_CRYPT_20098]، [SWS_CRYPT_30098]).

يستند هذا الدليل حصريًا إلى تعريف واجهة ara::crypto::cryp::CryptoProvider لـ AUTOSAR R25-11.

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

مخطط الفئة

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

G nara__crypto__cryp__CryptoProvider844 CryptoProvider + CryptoProvider() + operator=() + ~CryptoProvider() + CreateAuthCipherCtx() + CreateDecryptorPrivateCtx() + CreateEncryptorPublicCtx() + CreateHashFunctionCtx() + CreateKeyAgreementPrivateCtx() + CreateKeyDecapsulatorPrivateCtx() + CreateKeyDerivationFunctionCtx() + CreateKeyEncapsulatorPublicCtx() + CreateMessageAuthnCodeCtx() + CreateProtectedKeyImportCtx() + CreateRandomGeneratorCtx() + CreateSignerPrivateCtx() + CreateSymmetricCipherCtx() … 16 weitere

عرض التفاصيل

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

المُنشئات والمُتلف

CryptoProvider دالة 2

Copy-Constructor.

التحميلات الزائدة CryptoProvider 2
CryptoProvider (const CryptoProvider &)=delete; SWS_CRYPT_41005
CryptoProvider (CryptoProvider &&)=delete; SWS_CRYPT_41006

Destructor.

virtual ~CryptoProvider () noexcept=default;

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

Create a symmetric authenticated cipher context.

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create a hash function context.

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

Create a Random Number Generator (RNG) context.

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a signature private key context.

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

Create a signature verification public key context.

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Fill the provided output data buffer randomData with random data.

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Generate a new symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;
GetProviderID دالة

Obtain provider specific identification data.

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Get the required size of the output buffer for ID data used by GetProviderID.

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

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Import a serialized private key.

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Load a private key from the provided KeySlot.

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;
LoadPublicKey دالة

Load a public key from the provided KeySlot.

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

المعاملات

operator= دالة 2

Copy-assign another CryptoProvider to this instance.

التحميلات الزائدة = 2
CryptoProvider & operator= (const CryptoProvider &other)=delete; SWS_CRYPT_30216
CryptoProvider & operator= (CryptoProvider &&other)=delete; SWS_CRYPT_30217

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

Sptr اسم نوع بديل

Shared pointer of the CryptoProvider.

توثيق الدوال

دالة CreateAuthCipherCtx [SWS_CRYPT_20745] Upstream: RS_CRYPTO_02207, RS_AP_00144

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a symmetric authenticated cipher context.

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

تُستخدم الطريقة CreateAuthCipherCtx لإنشاء سياق للتشفير المتماثل الموثق ([SWS_CRYPT_20745]). وهي معرفة كواجهة افتراضية بحتة في الفئة ara::crypto::cryp::CryptoProvider وتُضمَّن عبر ملف الرأس ara/crypto/cryp/crypto_provider.h ([SWS_CRYPT_20745]).

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

يُمرَّر كمعلمة إدخال algId، والذي يحدد الخوارزمية التشفيرية الهدف ([SWS_CRYPT_20745]). تعمل الدالة بشكل متزامن ولا تطلق استثناءات (noexcept) ([SWS_CRYPT_20745]). وعند التنفيذ بنجاح، تُرجع ara::core::Result مع مؤشر ذكي إلى المثيل المنشأ AuthCipherCtx::Sptr ([SWS_CRYPT_20745]).

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

في حالة الخطأ، يُرجع رمز خطأ مطابق في ara::core::Result مع دلالات التراجع ([SWS_CRYPT_20745]):

  • ara::crypto::CryptoErrc::kInvalidArgument: إذا كان algId لا يحدد خوارزمية لتشفير تدفقي متماثل موثق ([SWS_CRYPT_20745]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: إذا مُرِّرت قيمة غير مدعومة لـ algId ([SWS_CRYPT_20745]).

التزامن

استدعاء CreateAuthCipherCtx آمن بالنسبة للخيوط (thread-safe) ومحدد بأنه آمن من الاستثناءات (exception safe) ([SWS_CRYPT_20745]).

أُنشئ هذا النص تلقائياً. جميع العبارات الفنية مدعومة بأدلة من المواصفات.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< AuthCipherCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric authenticated stream cipher
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20745
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20745@rel:R25-11#a385affb
Content hash
a385affb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20745
Status: valid/unmigrated Version: rel:R25-11#39b58f01 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_20745@rel:R25-11#39b58f01
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f26e531e2026-09-30
  • R19-11rel:R19-11#068856e02026-10-14
  • R20-11rel:R20-11#07ae27852026-10-14
  • R21-11rel:R21-11#35bf37702026-10-14
  • R22-11rel:R22-11#69962f862026-10-14
  • R23-11rel:R23-11#ca5aac9e2026-10-14
  • R24-11rel:R24-11#7d9792cd2026-10-14
  • R25-11rel:R25-11#39b58f012026-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

دالة CreateDecryptorPrivateCtx [SWS_CRYPT_20751] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

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

الاستخدام

تُستخدم الطريقة CreateDecryptorPrivateCtx للواجهة ara::crypto::cryp::CryptoProvider لإنشاء سياق لفك التشفير غير المتماثل باستخدام مفتاح خاص وفقاً لـ [SWS_CRYPT_20751]. تتوقع الدالة كمعلمة إدخال algId، والذي يحدد معرف خوارزمية التشفير أو فك التشفير غير المتماثل المطلوبة. التفسير: من المرجح أن يُنفَّذ الاستدعاء بشكل متزامن، لأن التوقيع يُرجع مباشرةً ara::core::Result، والذي يحتوي في حالة النجاح على مؤشر ذكي إلى السياق المُنشأ (DecryptorPrivateCtx::Sptr) [SWS_CRYPT_20751]. سؤال Q-45d1c4a1b2133f4c (مفتوح)

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

إذا تعذر إنشاء السياق، يُنقل الخطأ في ara::core::Result المُعاد. وإذا مُرِّرت قيمة غير مدعومة للمعلمة algId، ينتج عن ذلك على وجه التحديد رمز الخطأ ara::crypto::CryptoErrc::kUnknownIdentifier مع دلالات التراجع [SWS_CRYPT_20751].

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

عُرِّفت الدالة على أنها noexcept وتضمن أمان الاستثناءات (exception safe) [SWS_CRYPT_20751]. وبالنسبة للوصول المتزامن من خيوط متعددة، حُددت الطريقة بأنها آمنة بالنسبة للخيوط (thread-safe) [SWS_CRYPT_20751]. وبما أن التوقيع معلن في الرأس ara/crypto/cryp/crypto_provider.h كطريقة افتراضية بحتة، فإن التجسيد الملموس يقع على عاتق تنفيذ الموفر المعني [SWS_CRYPT_20751].

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

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<DecryptorPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20751
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20751@rel:R25-11#108ae0aa
Content hash
108ae0aa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20751
Status: valid/unmigrated Version: rel:R25-11#9ad4a16f 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_20751@rel:R25-11#9ad4a16f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d0572a212026-09-30
  • R19-11rel:R19-11#958150e62026-10-14
  • R20-11rel:R20-11#db1918e82026-10-14
  • R21-11rel:R21-11#d03527eb2026-10-14
  • R22-11rel:R22-11#19548e8e2026-10-14
  • R23-11rel:R23-11#b4b720e52026-10-14
  • R24-11rel:R24-11#00b7d5452026-10-14
  • R25-11rel:R25-11#9ad4a16f2026-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

دالة CreateEncryptorPublicCtx [SWS_CRYPT_20750] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

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

تنتمي طريقة الواجهة الافتراضية البحتة CreateEncryptorPublicCtx إلى الفئة ara::crypto::cryp::CryptoProvider وتُعلن عبر ملف الرأس ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20750]. وتتمثل مهمتها في إنشاء مثيل لسياق جديد لعمليات التشفير غير المتماثل باستخدام مفتاح عام [SWS_CRYPT_20750].

الاستخدام: يتم الاستدعاء بشكل متزامن مع تحديد المعلمة algId من النوع AlgId، والتي تحدد معرف خوارزمية التشفير أو فك التشفير غير المتماثل المطلوبة [SWS_CRYPT_20750]. تُرجع الطريقة النتيجة في ara::core::Result، والذي يوفر في حالة النجاح مؤشراً ذكياً من النوع EncryptorPublicCtx::Sptr إلى السياق المنشأ [SWS_CRYPT_20750].

معالجة الأخطاء: إذا كانت الوسيطة algId تحتوي على قيمة خوارزمية غير مدعومة، يفشل الاستدعاء ويُرجع في ara::core::Result رمز الخطأ ara::crypto::CryptoErrc::kUnknownIdentifier [SWS_CRYPT_20750]. حُددت دلالات تراجع صريحة لحالة الخطأ هذه [SWS_CRYPT_20750].

التزامن والأمان من الاستثناءات: أُعلنت الواجهة على أنها noexcept، وتُعتبر آمنة من الاستثناءات (exception safe)، وحُددت صراحةً بأنها آمنة بالنسبة للخيوط (thread-safe) [SWS_CRYPT_20750].

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

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<EncryptorPublicCtx::Sptr>Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20750
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20750@rel:R25-11#840e356b
Content hash
840e356b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20750
Status: valid/unmigrated Version: rel:R25-11#645c8167 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_20750@rel:R25-11#645c8167
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8b735d082026-09-30
  • R19-11rel:R19-11#245f8fcf2026-10-14
  • R20-11rel:R20-11#56691f5f2026-10-14
  • R21-11rel:R21-11#f1e172112026-10-14
  • R22-11rel:R22-11#e5ba293e2026-10-14
  • R23-11rel:R23-11#128841ba2026-10-14
  • R24-11rel:R24-11#e48790ba2026-10-14
  • R25-11rel:R25-11#645c81672026-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

دالة CreateHashFunctionCtx [SWS_CRYPT_20747] Upstream: RS_CRYPTO_02205, RS_AP_00144

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a hash function context.

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

تُستخدم الطريقة CreateHashFunctionCtx لإنشاء مثيل لسياق تجزئة تشفيري ([SWS_CRYPT_20747]). وتُوفَّر كواجهة افتراضية بحتة للفئة ara::crypto::cryp::CryptoProvider عبر الرأس ara/crypto/cryp/crypto_provider.h.

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

يتم الاستدعاء بشكل متزامن ويتوقع كمعلمة إدخال algId (من النوع AlgId)، والذي يحدد الخوارزمية التشفيرية المطلوبة ([SWS_CRYPT_20747]). وكقيمة إرجاع، تُرجع الدالة ara::core::Result<HashFunctionCtx::Sptr>، والذي يحتوي في حالة النجاح على مؤشر ذكي إلى السياق المنشأ.

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

إذا فشل الإنشاء، يحتوي ara::core::Result على رمز خطأ مطابق مع دلالات التراجع ([SWS_CRYPT_20747]):

  • ara::crypto::CryptoErrc::kInvalidArgument: يُرجع إذا كان algId الممرر محدداً لنوع خوارزمية آخر غير دالة التجزئة ([SWS_CRYPT_20747]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يحدث إذا مُرِّر معرف غير مدعوم لـ algId ([SWS_CRYPT_20747]).

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

أُعلنت الدالة على أنها noexcept وحُددت بأنها آمنة من الاستثناءات («exception safe») ([SWS_CRYPT_20747]). بالإضافة إلى ذلك، فإن الاستدعاء آمن بالنسبة للخيوط («thread-safe»)، بحيث يُسمح بالاستدعاءات المتزامنة من خيوط متعددة على نفس المثيل من CryptoProvider ([SWS_CRYPT_20747]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< HashFunctionCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from hash function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20747
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20747@rel:R25-11#d3f881d7
Content hash
d3f881d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20747
Status: valid/unmigrated Version: rel:R25-11#a65adf82 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_20747@rel:R25-11#a65adf82
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f2f9f89e2026-09-30
  • R19-11rel:R19-11#27d8bfbe2026-10-14
  • R20-11rel:R20-11#8ae2344a2026-10-14
  • R21-11rel:R21-11#5db0d9fb2026-10-14
  • R22-11rel:R22-11#f8120b092026-10-14
  • R23-11rel:R23-11#cd6826a42026-10-14
  • R24-11rel:R24-11#8ca5ca262026-10-14
  • R25-11rel:R25-11#a65adf822026-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

دالة CreateKeyAgreementPrivateCtx [SWS_CRYPT_20758] Upstream: RS_CRYPTO_02104, RS_AP_00144

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

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

تُستخدم الدالة CreateKeyAgreementPrivateCtx للفئة ara::crypto::cryp::CryptoProvider لإنشاء سياق مفتاح خاص للاتفاق على المفاتيح (KeyAgreementPrivateCtx) وفقاً لـ [SWS_CRYPT_20758]. ويتم توفير التصريح عبر ملف الترويسة #include "ara/crypto/cryp/crypto_provider.h".

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

تتوقع الدالة المتزامنة كمعلمة تمرير المُعرّف algId من النوع AlgId، والذي يحدد خوارزمية التشفير المطلوبة للاتفاق على المفاتيح (Key-Agreement). وكقيمة إرجاع، تُرجع الدالة ara::core::Result<KeyAgreementPrivateCtx::Sptr>، والذي يغلّف في حالة النجاح مؤشراً ذكياً يشير إلى مثيل السياق المُنشأ حديثاً [SWS_CRYPT_20758].

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

إذا فشل إنشاء المثيل، فإن ara::core::Result المُرجع يحتوي على رمز خطأ بدلالات التراجع [SWS_CRYPT_20758]:

  • ara::crypto::CryptoErrc::kInvalidArgument: تحدث إذا حددت الوسيطة algId خوارزمية تشفير تختلف عن إجراءات الاتفاق على المفاتيح.
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يتم إرجاعه في حال تضمن المُعرّف algId قيمة غير مدعومة.

التزامن والأمان

تم التصريح عن الواجهة كـ noexcept وتحديدها على أنها آمنة من الاستثناءات (exception safe). بالإضافة إلى ذلك، تم تحديد الاستدعاء على أنه آمن بالنسبة للخيوط (thread-safe)، بحيث يُسمح بالاستدعاءات المتزامنة على نفس مثيل CryptoProvider [SWS_CRYPT_20758].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target key-agreement crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyAgreementPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key-agreement
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20758
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20758@rel:R25-11#68991e04
Content hash
68991e04
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20758
Status: valid/unmigrated Version: rel:R25-11#768fe78c 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_20758@rel:R25-11#768fe78c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#64be1dbd2026-09-30
  • R19-11rel:R19-11#b377ec0f2026-10-14
  • R20-11rel:R20-11#8e18e3592026-10-14
  • R21-11rel:R21-11#d272fd992026-10-14
  • R22-11rel:R22-11#4a3ac1a22026-10-14
  • R23-11rel:R23-11#ad3845082026-10-14
  • R24-11rel:R24-11#c10793c52026-10-14
  • R25-11rel:R25-11#768fe78c2026-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

دالة CreateKeyDecapsulatorPrivateCtx [SWS_CRYPT_20753] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

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

الاستخدام

تُستخدم الدالة CreateKeyDecapsulatorPrivateCtx للواجهة ara::crypto::cryp::CryptoProvider لإنشاء سياق خاص لفك تغليف المفاتيح لآلية Key Encapsulation Mechanism (KEM) [SWS_CRYPT_20753]. تتوقع كمعلمة إدخال algId من النوع AlgId، والذي يحدد خوارزمية تشفير KEM المطلوبة [SWS_CRYPT_20753]. تعمل الدالة بشكل متزامن وترجع النتيجة في ara::core::Result<KeyDecapsulatorPrivateCtx::Sptr>، والذي يغلف في حالة النجاح مؤشرًا ذكيًا إلى السياق الذي تم إنشاء مثيله حديثًا [SWS_CRYPT_20753].

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

إذا حدث خطأ أثناء إنشاء السياق، يتم الإبلاغ عنه عبر ara::core::Result مع دلالات التراجع [SWS_CRYPT_20753]:

  • ara::crypto::CryptoErrc::kInvalidArgument: تحدد الوسيطة algId خوارزمية تشفيرية ليست آلية KEM غير متماثلة [SWS_CRYPT_20753].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: تحتوي الوسيطة algId على قيمة غير مدعومة [SWS_CRYPT_20753].

التزامن وأمان التنفيذ

تم التصريح عن الواجهة كـ noexcept وتحديدها على أنها آمنة من الاستثناءات (exception safe) [SWS_CRYPT_20753]. بالإضافة إلى ذلك، تم تصميم التنفيذ ليكون آمن مسار المعالجة (thread-safe) [SWS_CRYPT_20753].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20753
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20753@rel:R25-11#1103113b
Content hash
1103113b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20753
Status: valid/unmigrated Version: rel:R25-11#2a254e1e 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_20753@rel:R25-11#2a254e1e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce72d5082026-09-30
  • R19-11rel:R19-11#8ce1bc4c2026-10-14
  • R20-11rel:R20-11#c151a2bd2026-10-14
  • R21-11rel:R21-11#d9e99bf42026-10-14
  • R22-11rel:R22-11#34ef693d2026-10-14
  • R23-11rel:R23-11#fc9a47332026-10-14
  • R24-11rel:R24-11#8a7533962026-10-14
  • R25-11rel:R25-11#2a254e1e2026-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

دالة CreateKeyDerivationFunctionCtx [SWS_CRYPT_20748] Upstream: RS_CRYPTO_02103, RS_AP_00144

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

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

تُستخدم الدالة CreateKeyDerivationFunctionCtx للفئة ara::crypto::cryp::CryptoProvider لإنشاء سياق تنفيذ لدوال اشتقاق المفاتيح ([SWS_CRYPT_20748]). يتم تمرير المُعرّف algId من النوع AlgId كمعلمة إدخال، والذي يحدد الخوارزمية التشفيرية المستهدفة المطلوبة. يرجع الاستدعاء المتزامن ara::core::Result، والذي يوفر عند التنفيذ الناجح مؤشرًا ذكيًا إلى السياق الذي تم إنشاؤه (KeyDerivationFunctionCtx::Sptr) ([SWS_CRYPT_20748]).

إذا حدث خطأ أثناء إنشاء المثيل، يتم إرجاع النتيجة مع رمز خطأ مطابق بموجب دلالات التراجع ([SWS_CRYPT_20748]):

  • ara::crypto::CryptoErrc::kInvalidArgument: تحدد الوسيطة algId خوارزمية تشفيرية لا تمثل دالة اشتقاق مفاتيح ([SWS_CRYPT_20748]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يحتوي المُعرّف المُمرر algId على قيمة غير مدعومة ([SWS_CRYPT_20748]).

تم التصريح عن الواجهة كدالة افتراضية بحتة، وتم تحديدها كـ noexcept وتصنيفها بشكل ملزم كـ thread-safe وكذلك exception safe ([SWS_CRYPT_20748]). يتم التضمين عبر ملف الرأس #include "ara/crypto/cryp/crypto_provider.h". تعالج الدالة المتطلبات ذات الأولوية الأعلى [RS_CRYPTO_02103] و[RS_AP_00144].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyDerivationFunctionCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key derivation function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20748
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20748@rel:R25-11#bf1e3d0a
Content hash
bf1e3d0a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20748
Status: valid/unmigrated Version: rel:R25-11#87a97504 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_20748@rel:R25-11#87a97504
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce0d4c1b2026-09-30
  • R19-11rel:R19-11#529d87c72026-10-14
  • R20-11rel:R20-11#69f8e53c2026-10-14
  • R21-11rel:R21-11#6c13fa4d2026-10-14
  • R22-11rel:R22-11#38efa8462026-10-14
  • R23-11rel:R23-11#bad3069e2026-10-14
  • R24-11rel:R24-11#248bba532026-10-14
  • R25-11rel:R25-11#87a975042026-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

دالة CreateKeyEncapsulatorPublicCtx [SWS_CRYPT_20752] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

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

الاستخدام

تُستخدم الطريقة CreateKeyEncapsulatorPublicCtx للواجهة ara::crypto::cryp::CryptoProvider لإنشاء سياق عام لآلية تغليف المفاتيح (Key Encapsulation Mechanism - KEM) [SWS_CRYPT_20752]. ولهذا الغرض يجب تضمين ملف الرأس #include "ara/crypto/cryp/crypto_provider.h" [SWS_CRYPT_20752]. يتم الاستدعاء بشكل متزامن: يُمرَّر كمعلمة إدخال algId، والذي يحدد الخوارزمية التشفيرية الهدف لـ KEM. وعند التنفيذ بنجاح، تُرجع الطريقة مؤشراً ذكياً إلى السياق المنشأ (KeyEncapsulatorPublicCtx::Sptr)، مغلفاً في ara::core::Result [SWS_CRYPT_20752].

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

إذا حدث خطأ أثناء الإنشاء، تُطبَّق دلالات التراجع ويحتوي ara::core::Result على رمز خطأ محدد من ara::crypto::CryptoErrc [SWS_CRYPT_20752]:

  • ara::crypto::CryptoErrc::kInvalidArgument: يُرجع إذا كانت الوسيطة algId تحدد خوارزمية تشفيرية ليست KEM غير متماثل [SWS_CRYPT_20752].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يُبلَّغ عنه إذا كانت الوسيطة algId تحتوي على قيمة غير مدعومة [SWS_CRYPT_20752].

التزامن والأمان

تم التصريح عن دالة الواجهة باستخدام noexcept وتصنيفها على أنها آمنة من الاستثناءات (exception safe) وآمنة بالنسبة للخيوط (thread-safe) [SWS_CRYPT_20752]. وبالتالي، يمكن استدعاؤها بأمان من سياقات متزامنة دون مزامنة خارجية [SWS_CRYPT_20752].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyEncapsulatorPublicCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20752
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20752@rel:R25-11#9d099624
Content hash
9d099624
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20752
Status: valid/unmigrated Version: rel:R25-11#80eb6ba8 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_20752@rel:R25-11#80eb6ba8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eb9642562026-09-30
  • R19-11rel:R19-11#c59c43e42026-10-14
  • R20-11rel:R20-11#4d2fccee2026-10-14
  • R21-11rel:R21-11#aecc69b32026-10-14
  • R22-11rel:R22-11#9fd887092026-10-14
  • R23-11rel:R23-11#2013b4922026-10-14
  • R24-11rel:R24-11#048a75932026-10-14
  • R25-11rel:R25-11#80eb6ba82026-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

دالة CreateMessageAuthnCodeCtx [SWS_CRYPT_20746] Upstream: RS_CRYPTO_02203, RS_AP_00144

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

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

الاستخدام

تتطلب الطريقة الافتراضية البحتة CreateMessageAuthnCodeCtx للواجهة ara::crypto::cryp::CryptoProvider ملف الرأس ara/crypto/cryp/crypto_provider.h وتُستخدم للإنشاء المتزامن لسياق رموز مصادقة الرسائل المتماثلة (Message Authentication Codes) [SWS_CRYPT_20746]. وتستقبل الدالة كقيمة إدخال المعلمة algId من النوع AlgId، والتي تحدد خوارزمية التشفير الهدف [SWS_CRYPT_20746]. وعند التنفيذ بنجاح، تُرجع الطريقة ara::core::Result<MessageAuthnCodeCtx::Sptr>، والذي يغلف مؤشراً ذكياً إلى مثيل السياق المنشأ حديثاً [SWS_CRYPT_20746].

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

في حالة الخطأ، يوفر كائن النتيجة المُعاد رموز خطأ محددة مع دلالات التراجع [SWS_CRYPT_20746]:

  • ara::crypto::CryptoErrc::kInvalidArgument: تحدد الوسيطة algId خوارزمية تشفيرية ليست رمز مصادقة رسائل متماثلاً [SWS_CRYPT_20746].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: مُرِّر معرف غير معروف أو غير مدعوم للوسيطة algId [SWS_CRYPT_20746].

التزامن وأمان التنفيذ

زوِّدت الواجهة بالمحدد noexcept وتضمن أماناً كاملاً من الاستثناءات (exception safe) [SWS_CRYPT_20746]. علاوة على ذلك، حُددت الدالة صراحةً بأنها آمنة بالنسبة للخيوط (thread-safe)، بحيث يمكن إجراء الاستدعاءات بشكل متوازٍ ودون مزامنة خارجية من خيوط متزامنة [SWS_CRYPT_20746].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<MessageAuthnCodeCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric message authentication code
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20746
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20746@rel:R25-11#ff1de450
Content hash
ff1de450
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20746
Status: valid/unmigrated Version: rel:R25-11#957c6291 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_20746@rel:R25-11#957c6291
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#37f876a32026-09-30
  • R19-11rel:R19-11#e9adf02f2026-10-14
  • R20-11rel:R20-11#d6c0c1ec2026-10-14
  • R21-11rel:R21-11#3670d4772026-10-14
  • R22-11rel:R22-11#178c72202026-10-14
  • R23-11rel:R23-11#2108bb852026-10-14
  • R24-11rel:R24-11#7cfcb5e32026-10-14
  • R25-11rel:R25-11#957c62912026-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

دالة CreateProtectedKeyImportCtx [SWS_CRYPT_50017] Upstream: RS_CRYPTO_02105

virtual ara::core::Result< ProtectedKeyImportCtx::Sptr > Create ProtectedKeyImportCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

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

الاستخدام

تُستخدم الواجهة CreateProtectedKeyImportCtx للفئة ara::crypto::cryp::CryptoProvider (المعرفة في ara/crypto/cryp/crypto_provider.h) للإنشاء المتزامن لسياق استيراد المفاتيح المحمي ([SWS_CRYPT_50017]). يتم تمرير معرف خوارزمية التغليف المطلوبة عبر معلمة الإدخال algId ([SWS_CRYPT_50017]). عند نجاح إنشاء النسخة، تُرجع الطريقة ara::core::Result، يوفر مؤشراً ذكياً ProtectedKeyImportCtx::Sptr إلى السياق المُنشأ ([SWS_CRYPT_50017]).

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

إذا فشل الإنشاء، تُرجع الطريقة رمز خطأ مع دلالات التراجع في ara::core::Result ([SWS_CRYPT_50017]):

  • ara::crypto::CryptoErrc::kInvalidArgument: يحدث عندما تكون خوارزمية التشفير المحددة بواسطة algId غير مدعومة للتغليف من قِبل CryptoProvider ([SWS_CRYPT_50017]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يتم الإبلاغ عنه عندما تحتوي الوسيطة algId على قيمة معرف غير معروفة أو غير مدعومة ([SWS_CRYPT_50017]).

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

تم التصريح عن الطريقة الافتراضية البحتة كـ noexcept، وتوفر أمان الاستثناءات ومحددة صراحةً على أنها آمنة بالنسبة لمؤشرات الترابط (thread-safe) ([SWS_CRYPT_50017]). وبالتالي يمكن استدعاؤها بشكل متوازٍ من عدة مؤشرات ترابط دون مزامنة خارجية ([SWS_CRYPT_50017]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the wrapping algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<ProtectedKeyImportCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm that is not supported by this CryptoProvider for wrapping
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

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

دالة CreateRandomGeneratorCtx [SWS_CRYPT_20741] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a Random Number Generator (RNG) context.

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

تُستخدم الطريقة CreateRandomGeneratorCtx لإنشاء سياق لمولدات الأرقام العشوائية (Random Number Generator, RNG) داخل الفئة ara::crypto::cryp::CryptoProvider [SWS_CRYPT_20741].

الاستخدام وسياق الاستدعاء

تُستدعى الدالة بشكل متزامن وتتطلب ملف الرأس ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20741]:

  • المعلمات: يُمرَّر algId من النوع AlgId، والذي يحدد خوارزمية RNG المطلوبة. وإذا لم يُحدد algId معين، تُرجع الطريقة RNG الافتراضي [SWS_CRYPT_20741].
  • قيمة الإرجاع: ara::core::Result<RandomGeneratorCtx::Sptr> يحتوي في حالة النجاح على مؤشر مشترك إلى المثيل المنشأ من RandomGeneratorCtx [SWS_CRYPT_20741].

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

لا تطلق الطريقة استثناءات (noexcept) وحُددت بأنها آمنة من الاستثناءات [SWS_CRYPT_20741]. وإذا فشلت العملية، يُرجع ara::core::Result رمز خطأ:

  • ara::crypto::CryptoErrc::kUnknownIdentifier: يحدث عندما تحتوي وسيطة algId على قيمة غير مدعومة (مع دلالات التراجع) [SWS_CRYPT_20741].

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

صُنِّفت الطريقة على أنها آمنة بالنسبة للخيوط (thread-safe)، بحيث يُسمح بالاستدعاءات المتوازية عبر نفس المثيل من CryptoProvider [SWS_CRYPT_20741].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of target RNG algorithm. If no algId is given, the default RNG is returned

Rückgabewert

TypBeschreibung
ara::core::Result<RandomGeneratorCtx::Sptr >result containing a shared pointer to the context or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20741
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20741@rel:R25-11#e050073b
Content hash
e050073b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20741
Status: valid/unmigrated Version: rel:R25-11#d4f2c255 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_20741@rel:R25-11#d4f2c255
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a3510ae92026-09-30
  • R19-11rel:R19-11#60ee10c72026-10-14
  • R20-11rel:R20-11#0569ff502026-10-14
  • R21-11rel:R21-11#32b16cb02026-10-14
  • R22-11rel:R22-11#c44c5e5c2026-10-14
  • R23-11rel:R23-11#e3fa37f52026-10-14
  • R24-11rel:R24-11#5e17e1572026-10-14
  • R25-11rel:R25-11#d4f2c2552026-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

دالة CreateSignerPrivateCtx [SWS_CRYPT_20756] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a signature private key context.

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

تُستخدم الدالة CreateSignerPrivateCtx للفئة ara::crypto::cryp::CryptoProvider لإنشاء سياق لعمليات التوقيع باستخدام مفتاح خاص ([SWS_CRYPT_20756]).

الاستخدام والمعلمات: يتطلب الاستدعاء تضمين ملف الترويسة ara/crypto/cryp/crypto_provider.h. وتُحدد خوارزمية التوقيع التشفيرية المستهدفة عبر معلمة الإدخال algId. وفي حالة النجاح، تُرجع الدالة عبر نوع الإرجاع ara::core::Result<SignerPrivateCtx::Sptr> مؤشراً ذكياً يشير إلى مثيل السياق المُنشأ ([SWS_CRYPT_20756]). التفسير: نظراً لأن الدالة تُرجع ara::core::Result مباشرةً، فمن المرجح أن يُنفَّذ الاستدعاء بشكل متزامن. سؤال Q-8480f3cf5cef5f49 (مفتوح)

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

معالجة الأخطاء: في حالة حدوث خطأ، توفر النتيجة رمز خطأ من النوع ara::crypto::CryptoErrc مع دلالات التراجع ([SWS_CRYPT_20756]):

  • ara::crypto::CryptoErrc::kInvalidArgument: تحدث إذا حددت الوسيطة algId خوارزمية تشفيرية تختلف عن التوقيع باستخدام مفتاح خاص ([SWS_CRYPT_20756]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: تحدث إذا احتوت algId على قيمة غير معروفة أو غير مدعومة ([SWS_CRYPT_20756]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< SignerPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from private key signature
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20756
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20756@rel:R25-11#b8ebfabd
Content hash
b8ebfabd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20756
Status: valid/unmigrated Version: rel:R25-11#cc9f565a 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_20756@rel:R25-11#cc9f565a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cd4471752026-09-30
  • R19-11rel:R19-11#1edbf4c72026-10-14
  • R20-11rel:R20-11#a2cfe2c82026-10-14
  • R21-11rel:R21-11#54e185f52026-10-14
  • R22-11rel:R22-11#2a8de2322026-10-14
  • R23-11rel:R23-11#83e55d092026-10-14
  • R24-11rel:R24-11#0df4e6d12026-10-14
  • R25-11rel:R25-11#cc9f565a2026-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

دالة CreateSymmetricCipherCtx [SWS_CRYPT_20742] Upstream: RS_CRYPTO_02201

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

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

الاستخدام

تُستخدم الطريقة الافتراضية CreateSymmetricCipherCtx للواجهة ara::crypto::cryp::CryptoProvider لإنشاء سياق لعمليات التشفير المتماثل ([SWS_CRYPT_20742]). وتُضمَّن عبر ملف الرأس #include "ara/crypto/cryp/crypto_provider.h" ([SWS_CRYPT_20742]).

تتوقع الدالة كمعلمة إدخال algId من النوع AlgId، والذي يحدد معرف خوارزمية التشفير الهدف المطلوبة ([SWS_CRYPT_20742]). يتم الاستدعاء بشكل متزامن ويُرجع كنتيجة ara::core::Result<SymmetricCipherCtx::Sptr>، والذي يوفر في حالة النجاح مؤشراً ذكياً إلى مثيل السياق المُنشأ حديثاً ([SWS_CRYPT_20742]).

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

إذا فشل الإنشاء، يحتوي ara::core::Result المُعاد على رمز خطأ مطابق ([SWS_CRYPT_20742]):

  • ara::crypto::CryptoErrc::kUnknownIdentifier: يُبلَّغ عنه مع دلالات التراجع، إذا كانت القيمة الممررة لـ algId تشير إلى خوارزمية غير مدعومة ([SWS_CRYPT_20742]).

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

أُعلنت الدالة على أنها noexcept وحُددت صراحةً بأنها آمنة من الاستثناءات (exception safe) ([SWS_CRYPT_20742]). بالإضافة إلى ذلك، فإن الاستدعاء آمن بالنسبة للخيوط (thread-safe)، بحيث يُسمح بإنشاء السياقات بشكل متوازٍ عبر نفس مثيل CryptoProvider ([SWS_CRYPT_20742]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricCipherCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20742
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20742@rel:R25-11#84fe8653
Content hash
84fe8653
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20742
Status: valid/unmigrated Version: rel:R25-11#c3456bc2 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_20742@rel:R25-11#c3456bc2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#72dd17572026-09-30
  • R19-11rel:R19-11#abecadca2026-10-14
  • R20-11rel:R20-11#c7ef4de02026-10-14
  • R21-11rel:R21-11#7efa8e4d2026-10-14
  • R22-11rel:R22-11#a4f2f60c2026-10-14
  • R23-11rel:R23-11#8bfbe22a2026-10-14
  • R24-11rel:R24-11#bac03a522026-10-14
  • R25-11rel:R25-11#c3456bc22026-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

دالة CreateSymmetricKeyWrapperCtx [SWS_CRYPT_20743] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02208

virtual ara::core::Result< SymmetricKeyWrapperCtx::Sptr > Create SymmetricKeyWrapperCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

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

الاستخدام

تُستخدم الطريقة CreateSymmetricKeyWrapperCtx للفئة ara::crypto::cryp::CryptoProvider لإنشاء سياق لخوارزميات Key-Wrap المتماثلة ([SWS_CRYPT_20743]). يتم تمرير algId كمعلمة إدخال، والتي تحدد خوارزمية التشفير الهدف بشكل فريد ([SWS_CRYPT_20743]). الاستدعاء متزامن ويُرجع في حالة النجاح ara::core::Result، يغلف مؤشراً ذكياً إلى السياق المُنشأ (SymmetricKeyWrapperCtx::Sptr) ([SWS_CRYPT_20743]).

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

إذا فشل الإنشاء، تُرجع الدالة كائن الخطأ داخل ara::core::Result ([SWS_CRYPT_20743]):

  • ara::crypto::CryptoErrc::kUnknownIdentifier: يتم الإبلاغ عنه عندما تحتوي الوسيطة algId على قيمة غير مدعومة؛ حيث تسري دلالات التراجع ([SWS_CRYPT_20743]).

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

تم التصريح عن الواجهة كـ noexcept، وتُعتبر آمنة من حيث الاستثناءات (exception safe) وآمنة بالنسبة لمؤشرات الترابط (thread-safe) ([SWS_CRYPT_20743]). وبالتالي يمكن استدعاؤها بأمان من سياقات متزامنة، بشرط أن تكون algId المقدمة مدعومة من قِبل CryptoProvider الأساسي ([SWS_CRYPT_20743]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKeyWrapperCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20743
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20743@rel:R25-11#e6e62c72
Content hash
e6e62c72
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20743
Status: valid/unmigrated Version: rel:R25-11#f6ffee2c 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_20743@rel:R25-11#f6ffee2c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e4d7cb12026-09-30
  • R19-11rel:R19-11#88c705562026-10-14
  • R20-11rel:R20-11#59ed5d162026-10-14
  • R21-11rel:R21-11#4c2a43392026-10-14
  • R22-11rel:R22-11#178879012026-10-14
  • R23-11rel:R23-11#2ae2b3f42026-10-14
  • R24-11rel:R24-11#2c2d21382026-10-14
  • R25-11rel:R25-11#f6ffee2c2026-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

دالة CreateVerifierPublicCtx [SWS_CRYPT_20757] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

Create a signature verification public key context.

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

الاستخدام وسياق الاستدعاء

يتم التصريح عن الدالة الافتراضية الصرفة CreateVerifierPublicCtx للفئة ara::crypto::cryp::CryptoProvider عبر ملف الترويسة ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20757]. وتُستخدم لإنشاء سياق للتحقق من التوقيع باستخدام المفاتيح العامة (التحقق من توقيع المفتاح العام) بشكل متزامن [SWS_CRYPT_20757].

يمرر المستدعي عبر المعلمة algId (من النوع AlgId) مُعرّف خوارزمية التوقيع التشفيرية المطلوبة [SWS_CRYPT_20757]. وفي حالة النجاح، تُرجع الدالة ara::core::Result، والذي يحتوي على مؤشر ذكي يشير إلى سياق التحقق المُنشأ (VerifierPublicCtx::Sptr) [SWS_CRYPT_20757].

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

في حالة حدوث خطأ، تسري دلالات التراجع، وينقل ara::core::Result الناتج رمز خطأ ملائماً [SWS_CRYPT_20757]:

  • ara::crypto::CryptoErrc::kInvalidArgument: يتم الإبلاغ عنه إذا حددت الوسيطة algId خوارزمية تشفيرية غير مخصصة للتحقق من التوقيع باستخدام المفاتيح العامة [SWS_CRYPT_20757].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: يتم الإبلاغ عنه إذا تم تمرير مُعرّف غير معروف أو غير مدعوم للمعلمة algId [SWS_CRYPT_20757].

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

تم التصريح عن الدالة كـ noexcept، وهي آمنة تماماً من الاستثناءات (exception safe) ومحددة صراحةً على أنها آمنة بالنسبة للخيوط (thread-safe) [SWS_CRYPT_20757]. وبالتالي، يُسمح بالاستدعاءات المتوازية من سياقات تنفيذ متعددة دون مزامنة خارجية.

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<VerifierPublicCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from public key signature verification
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20757
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20757@rel:R25-11#0160c839
Content hash
0160c839
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20757
Status: valid/unmigrated Version: rel:R25-11#f204fd55 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_20757@rel:R25-11#f204fd55
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8a5c49002026-09-30
  • R19-11rel:R19-11#37697b0f2026-10-14
  • R20-11rel:R20-11#73044a492026-10-14
  • R21-11rel:R21-11#0115fe5b2026-10-14
  • R22-11rel:R22-11#9dc931fa2026-10-14
  • R23-11rel:R23-11#a976f9ff2026-10-14
  • R24-11rel:R24-11#57fb002d2026-10-14
  • R25-11rel:R25-11#f204fd552026-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

دالة CryptoProvider [SWS_CRYPT_41005] Upstream: RS_CRYPTO_02004

CryptoProvider (const CryptoProvider &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41005
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41005@rel:R25-11#9d09de04
Content hash
9d09de04
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41005
Status: valid/unmigrated Version: rel:R25-11#16a35c30 Versionshistorie & Revisions (1 transition, 4 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_41005@rel:R25-11#16a35c30
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#baa0ea722026-09-30
  • R23-11rel:R23-11#aba1f1f92026-10-14
  • R24-11rel:R24-11#16a35c302026-10-14
  • R25-11rel:R25-11#16a35c302026-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

دالة CryptoProvider [SWS_CRYPT_41006] Upstream: RS_CRYPTO_02004

CryptoProvider (CryptoProvider &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41006
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41006@rel:R25-11#d3bacd2e
Content hash
d3bacd2e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41006
Status: valid/unmigrated Version: rel:R25-11#9567ac75 Versionshistorie & Revisions (1 transition, 4 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_41006@rel:R25-11#9567ac75
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b43174f52026-09-30
  • R23-11rel:R23-11#8f1246d92026-10-14
  • R24-11rel:R24-11#9567ac752026-10-14
  • R25-11rel:R25-11#9567ac752026-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

دالة ExportSecuredKey [SWS_CRYPT_20728] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

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

تُصدّر الطريقة ExportSecuredKey للواجهة ara::crypto::cryp::CryptoProvider كائن مفتاح تشفيري إلى تنسيق مؤمّن ومتسلسل [SWS_CRYPT_20728]. يتم إعداد كائن المفتاح الممرر key وفقًا للتنسيق المحدد ضمنيًا بواسطة algId، ويُغلّف تشفيريًا («wrapped») ويُسلسل إلى ذاكرة التخزين المؤقت للإخراج resultBuffer [SWS_CRYPT_20728]. ومن أجل التغليف، يمكن اختياريًا تمرير مفتاح تشفير المفاتيح (kek)؛ وإذا لم يتم توفير kek، تعتمد الطريقة على KEK محدد ضمنيًا بواسطة algId أو على KEK الافتراضي الخاص بـ CryptoProvider [SWS_CRYPT_20728].

صُنِّفت الدالة على أنها thread-safe وexception safe ورُوِّست بـ noexcept [SWS_CRYPT_20728]. التفسير: بما أن التوقيع يرجع مباشرةً ara::core::Result دون أنواع إرجاع غير متزامنة مثل Futures، فمن المرجح أن تُنفَّذ عملية الحزم والتسلسل بأكملها بشكل متزامن في سياق المتصل. سؤال Q-3fb89afcc9300695 (مفتوح)

عند الاكتمال بنجاح، يُرجع ara::core::Result<std::size_t> المُعاد عدد البايتات المكتوبة في resultBuffer [SWS_CRYPT_20728]. وإذا فشلت العملية، تُطبَّق دلالات التراجع (Rollback) ويُبلَّغ عن أحد الأخطاء التالية [SWS_CRYPT_20728]:

  • UnknownIdentifier: قيمة algId الممررة غير مدعومة [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInvalidArgument: يتعذر حزم كائن المفتاح (مثل الحجم غير صالح أو النوع غير مناسب) أو لم يُمرَّر kek متوقع إلزامي [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kUsageViolation: الاستخدام المسموح به لـ key أو kek غير متوافق مع الخوارزمية المحددة [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: kek الممرر غير متوافق مع خوارزمية التصدير [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: المخزن المؤقت للإخراج resultBuffer صغير جداً بالنسبة للنتيجة [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kBusyResource: أحد الموارد المطلوبة للتصدير مشغول [SWS_CRYPT_20728].

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

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

Parameter (in)

ParameterBeschreibung
algIdthe algId of the secure key export algorithm
keythe key to be exported
resultBufferan output buffer the securely exported key is written to
kekan optional key-encryption-key to be be used for wrapping the secured payload. Only used if the used algorithm does not determine the used key (e.g., based on configuration).

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the result written into resultBuffer or an error

Fehler

FehlercodeBeschreibung
UnknownIdentifierif algId has an unsupported value
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the key object cannot be wrapped (e.g., invalid size or type) or if a kek is expected but not provided.
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of key or kek is incompatible to the used algorithm
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the kek is incompatible to the used algorithm

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20728
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20728@rel:R25-11#146a86a2
Content hash
146a86a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20728
Status: valid/unmigrated Version: rel:R25-11#9dfe16b6 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_20728@rel:R25-11#9dfe16b6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#057427ea2026-09-30
  • R19-11rel:R19-11#cd9b1a7b2026-10-14
  • R20-11rel:R20-11#51350c8b2026-10-14
  • R21-11rel:R21-11#5ee1380e2026-10-14
  • R22-11rel:R22-11#72d859b12026-10-14
  • R23-11rel:R23-11#c0a14fe12026-10-14
  • R24-11rel:R24-11#661196972026-10-14
  • R25-11rel:R25-11#9dfe16b62026-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

دالة GeneratePrivateKey [SWS_CRYPT_20722] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

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

تُنشئ الدالة GeneratePrivateKey للفئة ara::crypto::cryp::CryptoProvider (المُعلنة في ara/crypto/cryp/crypto_provider.h) بشكل متزامن زوج مفاتيح غير متماثل جديد وتُرجع المفتاح الخاص المُنشأ كـ PrivateKey::Sptr داخل ara::core::Result [SWS_CRYPT_20722]. ولا يتم إرجاع المفتاح العام المقابل مباشرة، بل يمكن استرداده لاحقًا عبر الدالة PrivateKey::GetPublicKey() للمفتاح الناتج [SWS_CRYPT_20722].

عند الاستدعاء، تُحدد المعلمة algId خوارزمية التشفير، بينما تُحدد privateKeyAllowedUsage أنواع التحويل المسموح بها للمفتاح الخاص [SWS_CRYPT_20722]. ويتم تعيين رايات الاستخدام المسموح بها للمفتاح العام استنادًا إلى أذونات المفتاح الخاص على النحو التالي [SWS_CRYPT_20722]:

  • kAllowDataDecryption يؤدي إلى kAllowDataEncryption
  • kAllowSigGeneration يؤدي إلى kAllowSigVerification
  • kAllowKeyAgreement يؤدي إلى kAllowKeyAgreement
  • kAllowKeyUnwrapping يؤدي إلى kAllowKeyWrapping

بالإضافة إلى ذلك، يتم تعيين رايات الاستخدام kAllowPlaintextExport وkAllowPersist تلقائيًا للمفتاح العام [SWS_CRYPT_20722].

فيما يتعلق بالتزامن والتنفيذ، تم تحديد الدالة على أنها thread-safe وexception-safe [SWS_CRYPT_20722]. وإذا حدث خطأ أثناء إنشاء المفتاح، تتم معالجة النتيجة بدلالات تراجع (Rollback) [SWS_CRYPT_20722]. ويمكن إرجاع أكواد الأخطاء التالية:

  • ara::crypto::CryptoErrc::kUnknownIdentifier، إذا تم تمرير خوارزمية غير مدعومة لـ algId،
  • ara::crypto::CryptoErrc::kIncompatibleArguments، إذا كانت رايات privateKeyAllowedUsage المحددة غير متوافقة مع الخوارزمية أو نوع المفتاح المحدد،
  • ara::crypto::CryptoErrc::kBusyResource، إذا كان التوليد غير ممكن مؤقتًا بسبب انشغال الموارد مؤقتًا [SWS_CRYPT_20722].

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

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm
privateKeyAllowedUsagethe flags that define a list of allowed transformations’ types in which the private key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created private key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20722
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20722@rel:R25-11#1ce16984
Content hash
1ce16984
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20722
Status: valid/unmigrated Version: rel:R25-11#92625666 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_20722@rel:R25-11#92625666
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e76fe7892026-09-30
  • R19-11rel:R19-11#7f33da122026-10-14
  • R20-11rel:R20-11#e6ff089b2026-10-14
  • R21-11rel:R21-11#0cd706bd2026-10-14
  • R22-11rel:R22-11#33a2c8282026-10-14
  • R23-11rel:R23-11#2b3d45172026-10-14
  • R24-11rel:R24-11#b10084042026-10-14
  • R25-11rel:R25-11#926256662026-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

دالة GenerateRandomData [SWS_CRYPT_30098] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Fill the provided output data buffer randomData with random data.

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

تُستخدم الطريقة الافتراضية البحتة GenerateRandomData للواجهة ara::crypto::cryp::CryptoProvider لملء نطاق ذاكرة وفره المستدعي ببيانات عشوائية تشفيرية [SWS_CRYPT_30098]. ويوجد التصريح في ملف الترويسة ara/crypto/cryp/crypto_provider.h.

يتم تمرير randomData من النوع ReadWriteMem Region كمعلمة إخراج، والذي يمثل المخزن المؤقت المراد ملؤه ويحدد حجمه عدد بايتات العشوائية المُولدة [SWS_CRYPT_30098]. تفسير: نظرًا لأن الدالة تستخدم مباشرة ara::core::Result<void> كنوع إرجاع وليس كائن Future، فمن المرجح أن يتم توليد البيانات بشكل متزامن وحاجب (blocking) [SWS_CRYPT_30098]. سؤال Q-315c0492dcf7f37d (مفتوح) وتكون قيمة الإرجاع فارغة في حالة النجاح أو تحتوي على رمز خطأ مطابق في حالة الخطأ [SWS_CRYPT_30098].

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

  • ara::crypto::CryptoErrc::kBusyResource: يمتلك مولد الأرقام العشوائية (RNG) الأساسي حاليًا إنتروبيا غير كافية ولا يمكنه توفير المقدار المطلوب من بايتات العشوائية [SWS_CRYPT_30098].
  • ara::crypto::CryptoErrc::kUnsupported: لا يدعم التنفيذ الفعلي لـ CryptoProvider أي مولد أرقام عشوائية قياسي [SWS_CRYPT_30098].

فيما يتعلق بالتزامن والمتانة، تم تحديد الطريقة كـ thread-safe وexception safe [SWS_CRYPT_30098]. وبذلك يمكن لعدة خيوط استدعاء الدالة بالتوازي، ويضمن تحديد noexcept عدم إطلاق أي استثناءات C++ عبر حدود الواجهة.

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

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

Parameter (out)

ParameterBeschreibung
randomDataoutput data buffer to be filled with random data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the used RNG is currently out-of-entropy and therefore cannot provide the requested number of random bytes
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if no default RNG is supported by the CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30098@rel:R25-11#f410eaec
Content hash
f410eaec
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30098
Status: valid/unmigrated Version: rel:R25-11#480ab415 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_30098@rel:R25-11#480ab415
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#79a025442026-09-30
  • R20-11rel:R20-11#c9d663072026-10-14
  • R21-11rel:R21-11#1481f16f2026-10-14
  • R22-11rel:R22-11#321f73ae2026-10-14
  • R23-11rel:R23-11#f518793a2026-10-14
  • R24-11rel:R24-11#c16096352026-10-14
  • R25-11rel:R25-11#480ab4152026-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

دالة GenerateSymmetricKey [SWS_CRYPT_20721] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Generate a new symmetric key.

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

الاستخدام

تتوفر الدالة الافتراضية الصرفة GenerateSymmetricKey عبر الواجهة ara::crypto::cryp::CryptoProvider (ملف الترويسة #include "ara/crypto/cryp/crypto_provider.h") وتُستخدم لإنشاء مفتاح متماثل جديد [SWS_CRYPT_20721]. ويتوقع الاستدعاء المتزامن كمعامل algId مُعرّف خوارزمية التشفير المتماثل الهدف، وكـ allowedUsage رايات بت تُحدد أنواع التحويل المسموح بها للمفتاح الذي تم إنشاؤه [SWS_CRYPT_20721]. وعند التنفيذ بنجاح، تُرجع الدالة ara::core::Result يحتوي على SymmetricKey::Sptr، أي مؤشر مشترك إلى كائن المفتاح المتماثل المُنشأ حديثًا [SWS_CRYPT_20721].

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

إذا حدث خطأ أثناء إنشاء المفتاح، فإنه يُنقل في ara::core::Result. وتُطبق دلالة التراجع (Rollback) على جميع حالات الخطأ المحددة [SWS_CRYPT_20721]:

  • ara::crypto::CryptoErrc::kUnknownIdentifier: يُبلّغ عنه إذا تم تمرير قيمة غير مدعومة لـ algId [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: يحدث إذا كانت رايات allowedUsage المحددة غير متوافقة مع خوارزمية algId المختارة أو نوع المفتاح [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kBusyResource: يشير إلى أنه لا يمكن إجراء العملية مؤقتًا بسبب انشغال الموارد مؤقتًا [SWS_CRYPT_20721].

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

أُعلنت العملية كـ noexcept وتمتلك خاصيتي الأمان من حيث الاستثناءات (exception safe) والأمان الخيطي (thread-safe) [SWS_CRYPT_20721]. ولذلك يمكن استدعاؤها بشكل متزامن من عدة خيوط، مع إمكانية حدوث الخطأ kBusyResource عند الحمل العالي للنظام للإشارة إلى اختناقات مؤقتة [SWS_CRYPT_20721].

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

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed transformations’ types in which the generated key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created symmetric key object or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20721
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20721@rel:R25-11#46caa2a4
Content hash
46caa2a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20721
Status: valid/unmigrated Version: rel:R25-11#921910dd 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_20721@rel:R25-11#921910dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#635fbe3a2026-09-30
  • R19-11rel:R19-11#ceb7dd0e2026-10-14
  • R20-11rel:R20-11#06044bd12026-10-14
  • R21-11rel:R21-11#b4656e752026-10-14
  • R22-11rel:R22-11#a3fb37fc2026-10-14
  • R23-11rel:R23-11#9d93b9e42026-10-14
  • R24-11rel:R24-11#7d27c8e42026-10-14
  • R25-11rel:R25-11#921910dd2026-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

دالة GetDefaultAllowedUsage [SWS_CRYPT_20955] Upstream: RS_CRYPTO_02003

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<AllowedUsageFlags >result containing a CryptoProvider specific default set of allowed Usages or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value

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

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

دالة GetProviderID [SWS_CRYPT_50015] Upstream: RS_CRYPTO_02305

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Obtain provider specific identification data.

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

Parameter (in)

ParameterBeschreibung
inOptional input data required by some identification protocols (e.g. SHE/CMD_GET_ID)

Parameter (out)

ParameterBeschreibung
idDatathe identification data of the provider

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the provided ReadWriteMemRegion parameter idData is insufficient in size to hold the identification data

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

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

دالة GetProviderIdSize [SWS_CRYPT_50016] Upstream: RS_CRYPTO_02305

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

Get the required size of the output buffer for ID data used by GetProviderID.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required size of ID data in bytes or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification

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

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

دالة GetSecureCounter [SWS_CRYPT_20098] Upstream: RS_CRYPTO_02401

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

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

تستعلم الطريقة GetSecureCounter() للفئة ara::crypto::cryp::CryptoProvider (المصرح عنها في #include "ara/crypto/cryp/crypto_provider.h") عن قيمة العداد الحالية للعداد المؤمّن لنسخة المزود [SWS_CRYPT_20098]. تعمل الدالة بشكل متزامن ولا تتطلب أي معلمات تمرير [SWS_CRYPT_20098]. في حالة النجاح، تُرجع عبر ara::core::Result<SecureCounter> البنية SecureCounter، والتي تتكون من قيمتين غير موقعتين بحجم 64 بت (LSQW للكلمة الرباعية الأقل أهمية وMSQW للكلمة الرباعية الأكثر أهمية) [SWS_CRYPT_20098]. ويضمن ذلك أن تكون كل قيمة عداد مُرجعة أكبر تمامًا وبشكل صارم من جميع القيم المقدمة سابقًا عبر هذه النسخة [SWS_CRYPT_20098].

إذا تعذر تحديد قيمة العداد، يفشل الاستدعاء ويُرجع رمز خطأ مع دلالات التراجع في كائن النتيجة [SWS_CRYPT_20098]:

  • ara::crypto::CryptoErrc::kUnsupported: الـ CryptoProvider المحدد لا يدعم عدادًا مؤمّنًا [SWS_CRYPT_20098].
  • ara::crypto::CryptoErrc::kBusyResource: هناك مورد مطلوب للوصول إلى العداد أو تحديثه مشغول حاليًا [SWS_CRYPT_20098].

فيما يتعلق بالتزامن والمتانة، تم تحديد الدالة على أنها آمنة بالنسبة للخيوط (thread-safe) وتم التصريح عنها على أنها آمنة من الاستثناءات (exception safe) باستخدام noexcept [SWS_CRYPT_20098]. وبالتالي، يُسمح بالاستدعاءات المتوازية من عدة خيوط دون مزامنة خارجية، مع بقاء الرتابة الصارمة لقيم العداد المقدمة مضمونة [SWS_CRYPT_20098].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي وهو بمثابة دليل إرشادي فقط. وتُعتبر المواصفة الرسمية هي الملزمة حصريًا.

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

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

Rückgabewert

TypBeschreibung
ara::core::Result<SecureCounter >a result containing a SecureCounter struct made up of the two unsigned 64 bit values (LSQW and MSQW), or an error:

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the Secure Counter is not supported by the CryptoProvider
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20098@rel:R25-11#e19263b3
Content hash
e19263b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20098
Status: valid/unmigrated Version: rel:R25-11#0c57734d 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_20098@rel:R25-11#0c57734d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#62146ddd2026-09-30
  • R20-11rel:R20-11#31b7c30b2026-10-14
  • R21-11rel:R21-11#450747932026-10-14
  • R22-11rel:R22-11#1e50ce5f2026-10-14
  • R23-11rel:R23-11#76f9cfec2026-10-14
  • R24-11rel:R24-11#267205092026-10-14
  • R25-11rel:R25-11#0c57734d2026-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

دالة ImportPrivateKey [SWS_CRYPT_50132] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized private key.

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

الاستخدام

تُستخدم الطريقة ImportPrivateKey للفئة ara::crypto::cryp::CryptoProvider للاستيراد المتزامن لمفتاح خاص متسلسل [SWS_CRYPT_50132]. عند الاستدعاء، يتم تمرير البيانات المفيدة عبر نطاق الذاكرة serialized (ReadOnlyMemRegion)، بالإضافة إلى قيود الاستخدام المطلوبة (allowedUsage) وتنسيق التسلسل (formatId). المعلمة algId اختيارية (ara::core::Optional<AlgId>) ولا يلزم تعيينها إلا إذا كان التنسيق المحدد لا يحدد خصائص المفتاح المطلوبة بشكل فريد بحد ذاته [SWS_CRYPT_50132]. كقيمة إرجاع، تُرجع الدالة ara::core::Result<PrivateKey::Sptr>، والذي يحتوي في حالة النجاح على مؤشر مشترك (shared pointer) إلى كائن المفتاح المُنشأ.

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

في حالة حدوث خطأ، تضمن الطريقة تطبيق دلالات التراجع [SWS_CRYPT_50132]. يمكن إرجاع رموز الخطأ التالية عبر Result:

  • InvalidArgument: البيانات المتسلسلة في serialized لا تتوافق مع التنسيق المحدد [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: المعلمات allowedUsage الممررة غير متوافقة مع algId [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupported: الدالة غير مدعومة من المزوّد المحدد [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kBusyResource: لا يمكن تنفيذ العملية مؤقتًا بسبب انشغال الموارد [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupportedFormat: لا يتم دعم formatId لنوع الكائن هذا [SWS_CRYPT_50132].

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

تم الإعلان عن الواجهة كـ noexcept وتوفر أمان الاستثناءات (exception safe) وأمان الخيوط (thread-safe) [SWS_CRYPT_50132]. وبالتالي يمكن إجراء الاستدعاءات بالتوازي من خيوط مختلفة.

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

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

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

دالة ImportPublicKey [SWS_CRYPT_20732] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

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

الاستخدام

تُستخدم الطريقة ImportPublicKey لاستيراد مفتاح عام متسلسل إلى ara::crypto::cryp::CryptoProvider المعني [SWS_CRYPT_20732]. يتم الاستدعاء بشكل متزامن ويُرجع ara::core::Result<PublicKey::Sptr>، والذي يحتوي في حالة النجاح على مؤشر ذكي إلى كائن المفتاح المنشأ [SWS_CRYPT_20732].

عند الاستدعاء، تُمرر المعلمات التالية [SWS_CRYPT_20732]:

  • serialized: نطاق ذاكرة ReadOnlyMemRegion يوفر البيانات الأولية للمفتاح المتسلسل.
  • allowedUsage: رايات الاستخدام المسموح بها (AllowedUsageFlags) للمفتاح المستورد.
  • formatId: معرف تنسيق التسلسل (FormatId).
  • algId: معرف خوارزمية اختياري (ara::core::Optional<AlgId>). وهو ليس ضرورياً إذا كان تنسيق التسلسل يحدد بالفعل خصائص المفتاح بشكل فريد.

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

إذا حدث خطأ أثناء المعالجة، فإنه يُغلَّف في ara::core::Result المُعاد. تم تحديد رموز الخطأ التالية [SWS_CRYPT_20732]:

  • InvalidArgument: البيانات الممررة في serialized لا تتوافق مع التنسيق المحدد.
  • ara::crypto::CryptoErrc::kIncompatibleArguments: رايات الاستخدام allowedUsage غير متوافقة مع algId.
  • ara::crypto::CryptoErrc::kUnsupportedFormat: formatId المحدد غير مدعوم لنوع الكائن هذا.
  • ara::crypto::CryptoErrc::kUnsupported: الوظيفة المطلوبة غير مدعومة بواسطة CryptoProvider.
  • ara::crypto::CryptoErrc::kBusyResource: يتعذر تنفيذ العملية مؤقتاً.

التزامن والأمان

أُعلنت الطريقة على أنها noexcept، وتُعتبر آمنة من الاستثناءات (Exception-safe)، وحُددت وفقاً للمواصفات على أنها آمنة بالنسبة للخيوط (Thread-safe) [SWS_CRYPT_20732]. تتبع حالات الخطأ دلالات تراجع محددة [SWS_CRYPT_20732].

أُنشئ هذا النص بواسطة نظام ذكاء اصطناعي ويستند حصرياً إلى بيانات المواصفات من الإصدار R25-11.

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20732
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20732@rel:R25-11#e170cc86
Content hash
e170cc86
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20732
Status: valid/unmigrated Version: rel:R25-11#51a436c4 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_20732@rel:R25-11#51a436c4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2473d8742026-09-30
  • R19-11rel:R19-11#1450fe912026-10-14
  • R20-11rel:R20-11#9c83b88d2026-10-14
  • R21-11rel:R21-11#56c01f3b2026-10-14
  • R22-11rel:R22-11#2ec0aa1f2026-10-14
  • R23-11rel:R23-11#56bf56252026-10-14
  • R24-11rel:R24-11#ada4cfb92026-10-14
  • R25-11rel:R25-11#51a436c42026-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

دالة ImportSymmetricKey [SWS_CRYPT_50014] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

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

الاستخدام

تُستخدم الدالة ImportSymmetricKey للواجهة ara::crypto::cryp::CryptoProvider لاستيراد مفتاح متماثل متسلسل [SWS_CRYPT_50014]. وكنتيجة معادة، فإنها تُرجع ara::core::Result<SymmetricKey::Sptr> يوفر مؤشرًا ذكيًا إلى كائن المفتاح الذي تم إنشاؤه حديثًا في حالة النجاح [SWS_CRYPT_50014]. ونظرًا لعدم استخدام نوع إرجاع غير متزامن مثل Future، فمن المرجح أن يتم التنفيذ بشكل متزامن. سؤال Q-720a495b07c4f31d (مفتوح)

عند الاستدعاء، يجب تمرير المعاملات التالية [SWS_CRYPT_50014]:

  • serialized (ReadOnlyMemRegion): نطاق الذاكرة الذي يحتوي على بيانات المفتاح المتسلسلة.
  • allowedUsage (AllowedUsageFlags): قناع بت (Bitmask) للعمليات والاستخدامات المسموح بها لهذا المفتاح.
  • formatId (FormatId): معرّف تنسيق التسلسل لبيانات المفتاح.
  • algId (ara::core::Optional<AlgId>): معرّف خوارزمية اختياري؛ ولا يُعد مطلوبًا إذا كان تنسيق التسلسل المحدد يحدد بالفعل جميع الخصائص المطلوبة للمفتاح بشكل فريد.

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

تم تحديد الدالة كـ thread-safe وexception safe [SWS_CRYPT_50014]. في حالة حدوث خطأ، يضمن التنفيذ دلالات التراجع ويُرجع كود خطأ مطابقًا في ara::core::Result [SWS_CRYPT_50014]:

  • InvalidArgument: البيانات الثنائية المُمررة في serialized لا تتوافق مع التنسيق المحدد.
  • ara::crypto::CryptoErrc::kIncompatibleArguments: أعلام allowedUsage المحددة غير متوافقة مع algId المحددة.
  • ara::crypto::CryptoErrc::kUnsupported: الدالة غير مدعومة من قِبل المثيل الفعلي لـ CryptoProvider.
  • ara::crypto::CryptoErrc::kUnsupportedFormat: التنسيق المحدد غير مدعوم لنوع المفتاح هذا.
  • ara::crypto::CryptoErrc::kBusyResource: يتعذر تنفيذ العملية في الوقت الحالي بسبب انشغال الموارد مؤقتًا.

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

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

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

دالة LoadPrivateKey [SWS_CRYPT_20764] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;

Load a private key from the provided KeySlot.

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

الاستخدام

تحمل الدالة LoadPrivateKey للواجهة ara::crypto::cryp::CryptoProvider مفتاحًا خاصًا من فتحة مفاتيح مُقدّمة ([SWS_CRYPT_20764]). يتم تنفيذ الاستدعاء بشكل متزامن ويقبل كمعلمة مؤشرًا مشتركًا إلى المورد المصدر (keySlot). في حالة النجاح، توفر الدالة مؤشرًا مشتركًا إلى كائن المفتاح المحمل (PrivateKey::Sptr)، والذي يتم إرجاعه داخل ara::core::Result ([SWS_CRYPT_20764]).

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

إذا حدث خطأ أثناء العملية، تسري دلالات التراجع ويحتوي ara::core::Result على رمز خطأ محدد ([SWS_CRYPT_20764]):

  • ara::crypto::CryptoErrc::kEmptyKeySlot: فتحة المفاتيح المُمررة فارغة ([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kIncompatibleObject: المورد الأساسي ينتمي إلى CryptoProvider آخر غير متوافق أو يحتوي على نوع مفتاح مختلف ([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kBusyResource: لا يمكن تنفيذ العملية مؤقتًا ([SWS_CRYPT_20764]).

التزامن والأمان

تصنف المواصفة الدالة على أنها thread-safe وexception safe؛ وقد صُرح عن التوقيع بأنه noexcept ([SWS_CRYPT_20764]). يمكن لعدة خيوط معالجة (threads) استدعاء الطريقة بشكل متوازٍ، ولكن يتعين عليها في حال حدوث تعارضات مؤقتة على الموارد معالجة إمكانية إرجاع kBusyResource.

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

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20764
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20764@rel:R25-11#9cf0eb1d
Content hash
9cf0eb1d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20764
Status: valid/unmigrated Version: rel:R25-11#619ff9c3 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_20764@rel:R25-11#619ff9c3
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#562267092026-09-30
  • R20-11rel:R20-11#cf85edd52026-10-14
  • R21-11rel:R21-11#7866d75f2026-10-14
  • R22-11rel:R22-11#7ef331982026-10-14
  • R23-11rel:R23-11#9721217a2026-10-14
  • R24-11rel:R24-11#00f5f0232026-10-14
  • R25-11rel:R25-11#619ff9c32026-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

دالة LoadPublicKey [SWS_CRYPT_20763] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a public key from the provided KeySlot.

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

الاستخدام

تحمل الدالة LoadPublicKey للواجهة ara::crypto::cryp::CryptoProvider مفتاحًا عامًا من مساحة تخزين المفاتيح المُقدّمة [SWS_CRYPT_20763]. تتوقع كمعلمة keySlot KeySlot::Sptr، والذي يشير إلى مساحة التخزين التي تحتوي على المفتاح المراد تحميله [SWS_CRYPT_20763]. كقيمة مرجعة، توفر الدالة ara::core::Result<PublicKey::Sptr>، والذي يحتوي في حالة النجاح على مؤشر مشترك إلى كائن المفتاح العام المحمل [SWS_CRYPT_20763]. من المرجح أن يشير التوفير المباشر لقيمة Result إلى سلوك استدعاء متزامن. سؤال Q-e0d2480909b1398a (مفتوح)

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

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

  • ara::crypto::CryptoErrc::kEmptyKeySlot: يحدث عندما يكون KeySlot المُمرر فارغًا [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kIncompatibleObject: يتم إرجاعه إذا كان المورد الأساسي ينتمي إلى CryptoProvider آخر غير متوافق أو يحتوي على نوع مفتاح مختلف [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kBusyResource: يحدث إذا تعذر تنفيذ العملية مؤقتًا، نظرًا لأن المورد مشغول لسبب آخر [SWS_CRYPT_20763].

التزامن والأمان

تم التصريح عن الدالة بـ noexcept وتحديدها كـ Exception-safe [SWS_CRYPT_20763]. فيما يتعلق بالتزامن، تم تصنيف العملية صراحةً على أنها Thread-safe، مما يجعل الاستدعاءات المتوازية من عدة خيوط معالجة مسموحًا بها [SWS_CRYPT_20763].

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

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20763
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20763@rel:R25-11#5d9d8dbf
Content hash
5d9d8dbf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20763
Status: valid/unmigrated Version: rel:R25-11#94997baf 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_20763@rel:R25-11#94997baf
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3b024d4b2026-09-30
  • R20-11rel:R20-11#5ef8747d2026-10-14
  • R21-11rel:R21-11#cecedb902026-10-14
  • R22-11rel:R22-11#3bab55812026-10-14
  • R23-11rel:R23-11#406c01632026-10-14
  • R24-11rel:R24-11#fc5230262026-10-14
  • R25-11rel:R25-11#94997baf2026-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

دالة LoadSymmetricKey [SWS_CRYPT_20762] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

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

تُستخدم الدالة الافتراضية البحتة LoadSymmetricKey للفئة ara::crypto::cryp::CryptoProvider لتحميل مفتاح متماثل من مساحة تخزين مفاتيح مُقدّمة [SWS_CRYPT_20762]. تقبل الدالة كمعلمة مؤشرًا مشتركًا إلى مساحة التخزين المعنية (keySlot) وترجع بشكل متزامن ara::core::Result<SymmetricKey::Sptr>، والذي يوفر عند التنفيذ الناجح مؤشرًا مشتركًا إلى كائن المفتاح المحمل [SWS_CRYPT_20762].

فيما يتعلق بالتزامن وأمان التنفيذ، تم تحديد الدالة كـ thread-safe وكذلك exception safe وتم التصريح عنها بـ noexcept [SWS_CRYPT_20762].

في حالة حدوث خطأ أثناء التحميل، ترجع الدالة عبر كائن النتيجة رموز خطأ محددة من النطاق ara::crypto::CryptoErrc مع دلالات تراجع محددة [SWS_CRYPT_20762]:

  • ara::crypto::CryptoErrc::kEmptyKeySlot: يحدث عندما يكون KeySlot المُمرر فارغًا [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kIncompatibleObject: يتم إرجاعه إذا كان المورد الأساسي ينتمي إلى Crypto-Provider آخر غير متوافق أو يحتوي على نوع مفتاح مختلف [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kBusyResource: يشير إلى أنه لا يمكن تنفيذ العملية مؤقتًا [SWS_CRYPT_20762].

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

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20762
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20762@rel:R25-11#a8458773
Content hash
a8458773
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20762
Status: valid/unmigrated Version: rel:R25-11#f47254ea 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_20762@rel:R25-11#f47254ea
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0e0c91c92026-09-30
  • R20-11rel:R20-11#a2b2b6ca2026-10-14
  • R21-11rel:R21-11#71269d212026-10-14
  • R22-11rel:R22-11#af928a362026-10-14
  • R23-11rel:R23-11#aa4c06512026-10-14
  • R24-11rel:R24-11#d7011cdb2026-10-14
  • R25-11rel:R25-11#f47254ea2026-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

دالة operator= [SWS_CRYPT_30216] Upstream: RS_CRYPTO_02004

CryptoProvider & operator= (const CryptoProvider &other)=delete;

Copy-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30216
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30216@rel:R25-11#001a7e6f
Content hash
001a7e6f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30216
Status: valid/unmigrated Version: rel:R25-11#96e40041 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_30216@rel:R25-11#96e40041
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d4dd587d2026-09-30
  • R20-11rel:R20-11#8f862b702026-10-14
  • R21-11rel:R21-11#8f862b702026-10-14
  • R22-11rel:R22-11#1f0154312026-10-14
  • R23-11rel:R23-11#b6c645d62026-10-14
  • R24-11rel:R24-11#96e400412026-10-14
  • R25-11rel:R25-11#96e400412026-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

دالة operator= [SWS_CRYPT_30217] Upstream: RS_CRYPTO_02004

CryptoProvider & operator= (CryptoProvider &&other)=delete;

Move-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30217
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30217@rel:R25-11#e162277c
Content hash
e162277c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30217
Status: valid/unmigrated Version: rel:R25-11#fcc3d64e 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_30217@rel:R25-11#fcc3d64e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#875b931c2026-09-30
  • R20-11rel:R20-11#ad3659582026-10-14
  • R21-11rel:R21-11#c29463602026-10-14
  • R22-11rel:R22-11#1048bb462026-10-14
  • R23-11rel:R23-11#4eff1ccf2026-10-14
  • R24-11rel:R24-11#53bda24c2026-10-14
  • R25-11rel:R25-11#fcc3d64e2026-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

دالة ~CryptoProvider [SWS_CRYPT_20710] Upstream: RS_CRYPTO_02107

virtual ~CryptoProvider () noexcept=default;

Destructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20710@rel:R25-11#ecbf1495
Content hash
ecbf1495
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20710
Status: valid/unmigrated Version: rel:R25-11#8dc356f1 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_20710@rel:R25-11#8dc356f1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#92a5ae4c2026-09-30
  • R19-11rel:R19-11#262154f72026-10-14
  • R20-11rel:R20-11#01fe77212026-10-14
  • R21-11rel:R21-11#01fe77212026-10-14
  • R22-11rel:R22-11#416497032026-10-14
  • R23-11rel:R23-11#9976743f2026-10-14
  • R24-11rel:R24-11#9c7dc3252026-10-14
  • R25-11rel:R25-11#8dc356f12026-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

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

اسم نوع بديل Sptr [SWS_CRYPT_20701] Upstream: RS_CRYPTO_02109

using Sptr = std::shared_ptr<CryptoProvider>;

Shared pointer of the CryptoProvider.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20701
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20701@rel:R25-11#a5feedfb
Content hash
a5feedfb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20701
Status: valid/unmigrated Version: rel:R25-11#b2ab3ec9 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_20701@rel:R25-11#b2ab3ec9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#374f02562026-09-30
  • R19-11rel:R19-11#c100f8d02026-10-14
  • R20-11rel:R20-11#60b520932026-10-14
  • R21-11rel:R21-11#60b520932026-10-14
  • R22-11rel:R22-11#6cce43132026-10-14
  • R23-11rel:R23-11#35053b082026-10-14
  • R24-11rel:R24-11#90ffb1202026-10-14
  • R25-11rel:R25-11#b2ab3ec92026-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