DEENESPTFRRUARHIKOZHNL

क्लास ara::crypto::cryp::KeyDerivationFunctionCtx

[SWS_CRYPT_21500] Upstream: RS_CRYPTO_02103

class KeyDerivationFunctionCtx :               public CryptoContext {...};

Key Derivation Function interface.

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

उपयोगकर्ता गाइडएआई जनित

आधार कुंजियों और कॉन्फ़िगर करने योग्य संदर्भ मापदंडों से सममित कुंजियों को सुरक्षित रूप से प्राप्त करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 0339805a1afd उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

आधार कुंजियों और कॉन्फ़िगर करने योग्य संदर्भ मापदंडों से सममित कुंजियों को सुरक्षित रूप से प्राप्त करता है।

इंटरफ़ेस ara::crypto::cryp::KeyDerivationFunctionCtx मौजूदा कुंजी सामग्री और साल्ट या काउंटर जैसे कॉन्फ़िगर करने योग्य संदर्भ मापदंडों से नई सममित कुंजियाँ प्राप्त करने के लिए कार्य करता है [SWS_CRYPT_21515]। DeriveKey का उपयोग करके कुंजी निर्माण से पहले, संदर्भ को SetKey के माध्यम से एक कुंजी या KeySlot के साथ इनिशियलाइज़ किया जाना चाहिए और वैकल्पिक रूप से SetParameter के माध्यम से कॉन्फ़िगर किया जाना चाहिए [SWS_CRYPT_21525]। एक आवश्यक सुरक्षा शर्त के रूप में, व्युत्पत्ति केवल तभी हो सकती है जब स्रोत कुंजी सामग्री स्पष्ट रूप से KDF संचालन के लिए अधिकृत हो और लक्षित कुंजी के आवश्यक उपयोग फ़्लैग संगत हों।

संदर्भ

वर्ग ara::crypto::cryp::KeyDerivationFunctionCtx AUTOSAR Adaptive के क्रिप्टो मॉड्यूल में कुंजी व्युत्पत्ति फ़ंक्शंस (Key Derivation Functions, KDF) के लिए इंटरफ़ेस प्रदान करता है। इसका मुख्य कार्य निर्दिष्ट कुंजी सामग्री और कॉन्फ़िगर करने योग्य संदर्भ मापदंडों से नई सममित कुंजियाँ प्राप्त करना है [SWS_CRYPT_21515]।

विशिष्ट इंटरैक्शन भागीदार कॉलिंग एप्लिकेशन सेवाएँ, SymmetricKey [SWS_CRYPT_21525] या KeySlot [SWS_CRYPT_50010] के रूप में अंतर्निहित स्रोत सामग्री, और एक नए SymmetricKey::Sptr [SWS_CRYPT_21515] के रूप में व्युत्पत्ति का परिणाम हैं। अतिरिक्त क्रिप्टोग्राफ़िक पैरामीटर मेमोरी क्षेत्रों, पूर्णांकों या सहायक कुंजियों के रूप में पारित किए जा सकते हैं [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009]।

जीवनचक्र

दृष्टांतों का जीवनकाल और स्वामित्व टाइप किए गए स्मार्ट पॉइंटर ara::crypto::cryp::KeyDerivationFunctionCtx::Sptr के माध्यम से नियंत्रित किया जाता है [SWS_CRYPT_21501]। एक ठोस कार्यान्वयन इंस्टेंस का निर्माण एक विशेष फ़ैक्टरी या सक्षम CryptoProvider के माध्यम से होने की संभावना है, क्योंकि वर्ग विशुद्ध रूप से वर्चुअल इंटरफ़ेस को परिभाषित करता है। प्रश्न Q-8ba3d498c9921ab1 (खुला)

एक नव निर्मित संदर्भ प्रारंभ में अपूर्ण स्थिति में होता है। केवल SetKey [SWS_CRYPT_21525] [SWS_CRYPT_50010] के माध्यम से एक कुंजी के सफल असाइनमेंट और SetParameter [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009] के माध्यम से आवश्यक KDF पैरामीटर सेट करने के बाद ही संदर्भ गणना के लिए तैयार होता है। संगामिति के संबंध में, इंटरफ़ेस विधियों को थ्रेड-सुरक्षित और अपवाद-सुरक्षित घोषित किया गया है ([SWS_CRYPT_21515], [SWS_CRYPT_21525], [SWS_CRYPT_50007])।

उपयोग पथ

कुंजी व्युत्पत्ति के लिए विशिष्ट कॉल अनुक्रम में लगातार तीन चरण शामिल हैं:

  1. आधार कुंजी असाइन करें: स्रोत कुंजी सामग्री को SetKey के माध्यम से कॉन्फ़िगर किया जाता है। यहाँ या तो एक मौजूदा कुंजी ऑब्जेक्ट (SymmetricKey::Sptr) [SWS_CRYPT_21525] या एक स्थायी कुंजी भंडारण स्लॉट (KeySlot::Sptr) [SWS_CRYPT_50010] पारित किया जा सकता है।
  2. संदर्भ पैरामीटर कॉन्फ़िगर करें: साल्ट, इनिशियलाइज़ेशन वैक्टर या पुनरावृत्ति काउंटर जैसे KDF-विशिष्ट मान SetParameter के माध्यम से परिभाषित किए जाते हैं। मेमोरी बफ़र्स (ReadOnlyMemRegion) [SWS_CRYPT_50007], 64-बिट पूर्णांक (std::uint64_t) [SWS_CRYPT_50008] और अतिरिक्त सममित कुंजियाँ (SymmetricKey::Sptr) [SWS_CRYPT_50009] समर्थित हैं।
  3. लक्षित कुंजी प्राप्त करें: DeriveKey का कॉल क्रिप्टोग्राफ़िक गणना करता है [SWS_CRYPT_21515]। विधि लक्षित एल्गोरिदम पहचानकर्ता (AlgId) के साथ-साथ अनुमत उपयोग फ़्लैग (AllowedUsageFlags) की अपेक्षा करती है और सफलता पर एक SymmetricKey::Sptr लौटाती है।
KeyDerivationFunctionCtx के साथ कुंजी व्युत्पत्ति का अनुक्रमएप्लिकेशनKeyDerivationFunctionCtxSymmetricKeySetKey(key)Result<void>SetParameter("salt", saltValue)Result<void>DeriveKey(targetAlgId, allowedUsage)व्युत्पन्न कुंजी उत्पन्न करेंResult<SymmetricKey::Sptr>

अनुक्रम आरेख: KeyDerivationFunctionCtx के माध्यम से सममित कुंजी प्राप्त करने के लिए विशिष्ट कॉल क्रम। स्रोत: [SWS_CRYPT_21525], [SWS_CRYPT_50007], [SWS_CRYPT_21515]।

त्रुटि परिदृश्य

इंटरफ़ेस विधियाँ परिभाषित त्रुटि कोड का उपयोग करके ara::core::Result के माध्यम से त्रुटि स्थितियों का संकेत देती हैं:

  • अपूर्ण आरंभीकरण: यदि DeriveKey को पर्याप्त कॉन्फ़िगरेशन के बिना कॉल किया जाता है, तो कॉल ara::crypto::CryptoErrc::kUninitializedContext के साथ विफल हो जाती है [SWS_CRYPT_21515]। यदि असाइन किया गया KeySlot निष्पादन के समय खाली है, तो ara::crypto::CryptoErrc::kEmptyKeySlot की रिपोर्ट की जाती है [SWS_CRYPT_21515]।
  • उपयोग अधिकारों का उल्लंघन: स्रोत कुंजी को ऑपरेशन kAllowKeyDerivation की अनुमति देनी चाहिए, अन्यथा ara::crypto::CryptoErrc::kUsageViolation ट्रिगर होता है ([SWS_CRYPT_21525], [SWS_CRYPT_21515], [SWS_CRYPT_50009])। यदि लक्ष्य में kAllowPlaintextExport शामिल है, तो स्रोत कुंजी में अतिरिक्त रूप से kAllowDerivedPlaintextExport होना चाहिए, अन्यथा परिणाम भी kUsageViolation [SWS_CRYPT_21515] होता है।
  • असंगतता और अमान्य तर्क: एक असमर्थित लक्षित एल्गोरिदम UnknownIdentifier उत्पन्न करता है, और पारस्परिक रूप से असंगत उपयोग फ़्लैग ara::crypto::CryptoErrc::kIncompatibleArguments [SWS_CRYPT_21515] उत्पन्न करते हैं। संदर्भ के लिए अनुपयुक्त कुंजी ऑब्जेक्ट या KeySlots के लिए SetKey ara::crypto::CryptoErrc::kIncompatibleObject लौटाता है ([SWS_CRYPT_21525], [SWS_CRYPT_50010])। अमान्य पैरामीटर मान ara::crypto::CryptoErrc::kInvalidArgument की ओर ले जाते हैं ([SWS_CRYPT_50007], [SWS_CRYPT_50008])।
  • असमर्थित इंटरफ़ेस फ़ंक्शंस: यदि कोई ठोस कार्यान्वयन विशेष रूप से केवल KeySlot या विशेष रूप से केवल SymmetricKey का समर्थन करता है, तो संबंधित अन्य SetKey कॉल ara::crypto::CryptoErrc::kUnsupported का परिणाम देती है ([SWS_CRYPT_21525], [SWS_CRYPT_50010])। SetParameter के साथ अज्ञात पैरामीटर नाम भी kUnsupported उत्पन्न करते हैं ([SWS_CRYPT_50007], [SWS_CRYPT_50008], [SWS_CRYPT_50009])।
  • संसाधन विरोध: यदि गणना के लिए आवश्यक क्रिप्टो संसाधन अवरुद्ध है, तो DeriveKey त्रुटि कोड ara::crypto::CryptoErrc::kBusyResource का संकेत देता है [SWS_CRYPT_21515]।

यह गाइड एक AI द्वारा संकलित किया गया था। सभी तकनीकी विवरण पूरी तरह से AUTOSAR Adaptive (रिलीज़ R25-11) के विनिर्देश पर आधारित हैं।

सदस्य मानचित्र

टाइप उपनाम

1

क्लास आरेख

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

G nara__crypto__cryp__KeyDerivationFunctionCtx485 KeyDerivationFunctionCtx + DeriveKey() + SetKey() + SetParameter() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__KeyDerivationFunctionCtx485->nara__crypto__cryp__CryptoContext85

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

मेथड

DeriveKey फ़ंक्शन

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) const noexcept=0;
SetKey फ़ंक्शन 2

Configure the context to use the provided key.

ओवरलोड SetKey 2
virtual ara::core::Result< void > SetKey (SymmetricKey::Sptr key) noexcept=0; SWS_CRYPT_21525
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50010
SetParameter फ़ंक्शन 3

Set a parameter of the KDF identified by parameterName.

ओवरलोड SetParameter 3
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0; SWS_CRYPT_50007
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0; SWS_CRYPT_50008
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, SymmetricKey::Sptr value) noexcept=0; SWS_CRYPT_50009

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

मेथड का प्रलेखन

फ़ंक्शन DeriveKey [SWS_CRYPT_21515] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) const noexcept=0;

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: ad7de7f8f0b6 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास ara::crypto::cryp::KeyDerivationFunctionCtx की विधि DeriveKey उपलब्ध कुंजी सामग्री के साथ-साथ संदर्भ में संग्रहीत पैरामीटर जैसे सॉल्ट, इनिशियलाइज़ेशन वेक्टर (IV) या पुनरावृत्ति काउंटर (iteration counter) से एक नई सममित कुंजी को सिंक्रोनस रूप से प्राप्त करती है [SWS_CRYPT_21515]।

उपयोग

कॉल करते समय, वांछित क्रिप्टो एल्गोरिदम का पहचानकर्ता targetAlgId के माध्यम से और अनुमत उपयोग फ़्लैग allowedUsage के माध्यम से पास किए जाते हैं [SWS_CRYPT_21515]। रिटर्न मान के रूप में, फ़ंक्शन सिंक्रोनस रूप से एक ara::core::Result<SymmetricKey::Sptr> प्रदान करता है, जो सफल निष्पादन पर उत्पन्न सममित कुंजी ऑब्जेक्ट के लिए एक स्मार्ट पॉइंटर उपलब्ध कराता है [SWS_CRYPT_21515]।

त्रुटि प्रबंधन

यदि कुंजी निर्माण विफल हो जाता है, तो फ़ंक्शन रोलबैक सिमेंटिक्स की गारंटी देता है और ara::core::Result में एक संगत त्रुटि कोड लौटाता है [SWS_CRYPT_21515]:

  • UnknownIdentifier: तब रिपोर्ट किया जाता है यदि targetAlgId के लिए पास किया गया मान समर्थित नहीं है [SWS_CRYPT_21515]।
  • ara::crypto::CryptoErrc::kIncompatibleArguments: तब घटित होता है जब allowedUsage में परिभाषित उपयोग फ़्लैग लक्ष्य एल्गोरिदम के साथ संगत नहीं होते हैं [SWS_CRYPT_21515]।
  • ara::crypto::CryptoErrc::kUninitializedContext: कुंजी व्युत्पत्ति (key derivation) से पहले संदर्भ को पर्याप्त रूप से प्रारंभ नहीं किया गया था [SWS_CRYPT_21515]।
  • ara::crypto::CryptoErrc::kBusyResource: कुंजी व्युत्पत्ति के लिए आवश्यक संसाधन व्यस्त है [SWS_CRYPT_21515]।
  • ara::crypto::CryptoErrc::kEmptyKeySlot: ऑपरेशन के लिए कॉन्फ़िगर किया गया KeySlot वर्तमान में रिक्त है [SWS_CRYPT_21515]।
  • ara::crypto::CryptoErrc::kUsageViolation: तब घटित होता है जब स्रोत कुंजी के उपयोग अधिकार में kAllowKeyDerivation शामिल नहीं होता है या जब लक्ष्य kAllowPlaintextExport की मांग करता है, लेकिन स्रोत kAllowDerivedPlaintextExport की अनुमति नहीं देता है [SWS_CRYPT_21515]।

समवर्तीता और निष्पादन संदर्भ

विधि को noexcept के रूप में निर्दिष्ट किया गया है, यह अपवाद सुरक्षा (exception safe) प्रदान करती है और समवर्ती कॉल के लिए थ्रेड-सुरक्षित डिज़ाइन की गई है [SWS_CRYPT_21515]।

यह उपयोग नोट स्वचालित रूप से तैयार किया गया था और विशेष रूप से AUTOSAR R25-11 के विनिर्देश डेटा पर आधारित है।

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

Parameter (in)

ParameterBeschreibung
targetAlgIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed usages in which the target 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
UnknownIdentifierif targetAlgId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage of the derived key is incompatible with the targetAlgId.
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context has not been sufficiently initialized
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the source key does not include kAllowKey Derivation
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowedUsage of the target key includes kAllowPlaintext Export but the allowed usage of the source key does not include k AllowDerivedPlaintextExport

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21515
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21515@rel:R25-11#bdb40f7a
Content hash
bdb40f7a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21515
Status: valid/unmigrated Version: rel:R25-11#9b38f620 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_21515@rel:R25-11#9b38f620
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4792442a2026-09-30
  • R19-11rel:R19-11#d747dcdf2026-10-14
  • R20-11rel:R20-11#20ca9f5b2026-10-14
  • R21-11rel:R21-11#4e7c875e2026-10-14
  • R22-11rel:R22-11#1edafd582026-10-14
  • R23-11rel:R23-11#09e184cc2026-10-14
  • R24-11rel:R24-11#f4962bb42026-10-14
  • R25-11rel:R25-11#9b38f6202026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन SetKey [SWS_CRYPT_21525] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

Configure the context to use the provided key.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 3738ec7c9403 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

मेथड SetKey, key के रूप में प्रदान की गई सिमेट्रिक की सामग्री [SWS_CRYPT_21525] के साथ एक KeyDerivationFunctionCtx को कॉन्फ़िगर करने का काम करती है। फंक्शन सिंक्रोनस रूप से निष्पादित होता है और रिटर्न प्रकार ara::core::Result<void> [SWS_CRYPT_21525] के माध्यम से ऑपरेशन के परिणाम का संकेत देता है।

समवर्तीता और निष्पादन सुरक्षा

इंटरफ़ेस विनिर्देशक noexcept से सुसज्जित है और इसे exception-safe के रूप में वर्गीकृत किया गया है [SWS_CRYPT_21525]। इसके अलावा, निष्पादन को thread-safe के रूप में निर्दिष्ट किया गया है, ताकि समवर्ती परिवेशों में भी कॉल सुरक्षित रूप से हो सके [SWS_CRYPT_21525]।

त्रुटि प्रबंधन

त्रुटि की स्थिति में, खाली सफलता स्थिति के बजाय एक संबंधित एरर कोड लौटाया जाता है, जिसमें सभी एरर स्थितियों के लिए रोलबैक सिमेंटिक्स परिभाषित हैं [SWS_CRYPT_21525]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: पास किया गया कुंजी ऑब्जेक्ट सममित संदर्भ के साथ असंगत है [SWS_CRYPT_21525]।
  • ara::crypto::CryptoErrc::kUsageViolation: की के लिए अनुमेय उपयोग में अनुमति kAllowKey Derivation शामिल नहीं है [SWS_CRYPT_21525]।
  • ara::crypto::CryptoErrc::kUnsupported: विशिष्ट संदर्भ विशेष रूप से एक KeySlot [SWS_CRYPT_21525] के माध्यम से असाइनमेंट का समर्थन करता है।

इंटरैक्शन

यदि अंतर्निहित संदर्भ कार्यान्वयन एक SymmetricKey::Sptr के सीधे असाइनमेंट का समर्थन नहीं करता है या की को इसके बजाय केवल की डेरिवेशन के समय किसी स्टोरेज स्थान से प्राप्त किया जाना है, तो एक KeySlot::Sptr के साथ SetKey का वैकल्पिक ओवरलोड उपलब्ध है [SWS_CRYPT_50010]।

यह उपयोग नोट AUTOSAR विनिर्देश R25-11 के आधार पर स्वचालित रूप से उत्पन्न किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)

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

Parameter (in)

ParameterBeschreibung
keythe source key-material

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21525
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21525@rel:R25-11#1d92951a
Content hash
1d92951a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21525
Status: valid/unmigrated Version: rel:R25-11#eca8e8d8 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_21525@rel:R25-11#eca8e8d8
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a05f5b632026-09-30
  • R20-11rel:R20-11#33ea902d2026-10-14
  • R21-11rel:R21-11#46a880c32026-10-14
  • R22-11rel:R22-11#fed116fd2026-10-14
  • R23-11rel:R23-11#3143ac902026-10-14
  • R24-11rel:R24-11#db6fdd502026-10-14
  • R25-11rel:R25-11#eca8e8d82026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन SetKey [SWS_CRYPT_50010] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

Configure the context to use the key stored in the provided KeySlot at the time the key derivation is performed.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: aa74de7c29b5 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

वर्चुअल मेथड SetKey संदर्भ KeyDerivationFunctionCtx को पास किए गए KeySlot में संग्रहीत कुंजी का उपयोग करने के लिए कॉन्फ़िगर करता है, जैसे ही कुंजी व्युत्पत्ति निष्पादित की जाती है [SWS_CRYPT_50010]। एक पैरामीटर के रूप में, फ़ंक्शन एक स्मार्ट पॉइंटर KeySlot::Sptr प्राप्त करता है, जो सममित कुंजी वाले स्लॉट को संदर्भित करता है [SWS_CRYPT_50010]।

कॉल समकालिक रूप से होता है और अपवाद-सुरक्षित (exception safe) तथा नॉन-थ्रोइंग (noexcept) के रूप में निर्दिष्ट है [SWS_CRYPT_50010]। फ़ंक्शन एक ara::core::Result<void> लौटाता है, जो सफलता के मामले में खाली होता है या विफलता के मामले में संबंधित त्रुटि कोड को समाहित करता है [SWS_CRYPT_50010]। यदि कोई त्रुटि होती है, तो रोलबैक सिमेंटिक्स के माध्यम से पिछली स्थिति को संरक्षित किया जाता है [SWS_CRYPT_50010]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: तब लौटाया जाता है जब प्रदान किया गया keySlot वर्तमान संदर्भ के साथ असंगत हो [SWS_CRYPT_50010]।
  • ara::crypto::CryptoErrc::kUnsupported: तब होता है जब ठोस संदर्भ विशेष रूप से SymmetricKey सेट करने का समर्थन करता है [SWS_CRYPT_50010]।

एकाधिक थ्रेड्स से समवर्ती पहुँच के लिए, मेथड को थ्रेड-सुरक्षित (thread-safe) निर्दिष्ट किया गया है [SWS_CRYPT_50010]। परस्पर क्रिया के संबंध में, ऑपरेशन स्लॉट संदर्भ के बजाय सीधे कुंजी सामग्री को स्वीकार करने वाले SymmetricKey::Sptr के साथ SetKey के ओवरलोड के विकल्प के रूप में कार्य करता है [SWS_CRYPT_21525]।

यह उपयोग संबंधी नोट AUTOSAR विनिर्देश के आधार पर स्वचालित रूप से तैयार किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a symmetric key

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50010@rel:R25-11#17c2db51
Content hash
17c2db51
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50010
Status: valid/unmigrated Version: rel:R25-11#8eb8c6c4 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_50010@rel:R25-11#8eb8c6c4
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

फ़ंक्शन SetParameter [SWS_CRYPT_50007] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean input buffer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50007
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50007@rel:R25-11#5a7d43c3
Content hash
5a7d43c3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50007
Status: valid/unmigrated Version: rel:R25-11#4c314faf 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_50007@rel:R25-11#4c314faf
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

फ़ंक्शन SetParameter [SWS_CRYPT_50008] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean unsigned integer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50008
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50008@rel:R25-11#2588cd29
Content hash
2588cd29
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50008
Status: valid/unmigrated Version: rel:R25-11#26b90c19 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_50008@rel:R25-11#26b90c19
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

फ़ंक्शन SetParameter [SWS_CRYPT_50009] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, SymmetricKey::Sptr value) noexcept=0;

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valueSymmetricKey being used as the input parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowKey Derivation

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

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

टाइप उपनामों का प्रलेखन

टाइप उपनाम Sptr [SWS_CRYPT_21501] Upstream: RS_CRYPTO_02103

using Sptr = std::shared_ptr<KeyDerivationFunctionCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21501
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21501@rel:R25-11#a57e6e6c
Content hash
a57e6e6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21501
Status: valid/unmigrated Version: rel:R25-11#6ebb94e3 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_21501@rel:R25-11#6ebb94e3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4fb24cfc2026-09-30
  • R19-11rel:R19-11#e5d0fc6d2026-10-14
  • R20-11rel:R20-11#c13472492026-10-14
  • R21-11rel:R21-11#c13472492026-10-14
  • R22-11rel:R22-11#461242d92026-10-14
  • R23-11rel:R23-11#aa4dc94a2026-10-14
  • R24-11rel:R24-11#aa4dc94a2026-10-14
  • R25-11rel:R25-11#6ebb94e32026-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