DEENESPTFRRUARHIKOZHNL

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

[SWS_CRYPT_50155] Upstream: RS_CRYPTO_02201

class DecryptorPrivateCtx :             public CryptoContext {...};

Interface for asymmetric decryption.

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

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

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

निजी कुंजी का उपयोग करके वन-टाइम कॉल या डेटा स्ट्रीम के रूप में डेटा के असममित डिक्रिप्शन को सक्षम बनाता है।

इंटरफ़ेस ara::crypto::cryp::DecryptorPrivateCtx AUTOSAR Adaptive Platform ([SWS_CRYPT_50070]) में सिफरटेक्स्ट के असममित डिक्रिप्शन के लिए कार्य करता है। निष्पादन से पहले, संदर्भ को अनिवार्य रूप से एक निजी कुंजी सौंपी जानी चाहिए जिसके पास डिक्रिप्शन का उपयोग अधिकार हो ([SWS_CRYPT_50157])। प्रोसेसिंग को वैकल्पिक रूप से एकल कॉल में या स्टार्ट, अपडेट और फ़िनिश चरणों के माध्यम से एक बहु-भाग डेटा स्ट्रीम के रूप में निष्पादित किया जा सकता है। इंटरफ़ेस की सभी विधियाँ थ्रेड-सुरक्षित और अपवाद-सुरक्षित लागू की गई हैं।

संदर्भ

इंटरफ़ेस ara::crypto::cryp::DecryptorPrivateCtx AUTOSAR Adaptive Platform के क्रिप्टोग्राफ़ी मॉड्यूल में सिफरटेक्स्ट के असममित डिक्रिप्शन के लिए कार्य करता है। CryptoContext के विशेषज्ञता के रूप में, यह क्रिप्टोग्राफ़िक परिवर्तन फ़ंक्शन प्रदान करता है जिनका उपयोग निजी कुंजियों का उपयोग करके सिफरटेक्स्ट को वापस प्लेनटेक्स्ट में बदलने के लिए किया जाता है। आवश्यक इंटरैक्शन पार्टनर्स में कॉलिंग एप्लिकेशन के साथ-साथ की ऑब्जेक्ट शामिल हैं जो PrivateKey के रूप में या KeySlot के माध्यम से प्रदान किए जाते हैं। इस इंटरफ़ेस के इंस्टेंस आमतौर पर टाइप्ड स्मार्ट पॉइंटर Sptr ([SWS_CRYPT_50156]) के माध्यम से प्रबंधित किए जाते हैं।

जीवनचक्र

DecryptorPrivateCtx का प्रबंधन उपनाम ara::crypto::cryp::DecryptorPrivateCtx::Sptr के माध्यम से किया जाता है, जो std::shared_ptr<DecryptorPrivateCtx> पर मैप किया गया है ([SWS_CRYPT_50156])। व्याख्या: चूँकि यह क्लास विशुद्ध वर्चुअल विधियों वाला एक इंटरफ़ेस है, इसलिए ठोस निर्माण आमतौर पर क्रिप्टो ड्राइवर की फ़ैक्टरी द्वारा किया जाना चाहिए। प्रश्न Q-6130603fcaf29ef9 (खुला)

इंस्टैंशिएशन के तुरंत बाद, संदर्भ एक अन-आरंभीकृत अवस्था में होता है। इस अवस्था में, परिचालन परिवर्तन कॉल त्रुटियों का कारण बनते हैं। सक्रियण के लिए, एक निजी कुंजी निर्दिष्ट की जानी चाहिए। यह या तो SetKey() ([SWS_CRYPT_50157]) के माध्यम से एक PrivateKey::Sptr पास करके या एक KeySlot::Sptr ([SWS_CRYPT_50066]) के माध्यम से किया जाता है, जो कुंजी को एनकैप्सुलेट करता है।

जैसे ही संदर्भ एक मान्य कुंजी के साथ कॉन्फ़िगर किया जाता है, यह Initialized स्थिति में परिवर्तित हो जाता है। इस स्थिति में, संदर्भ का उपयोग या तो सीधे वन-टाइम डिक्रिप्शन के लिए किया जा सकता है या Start() ([SWS_CRYPT_50067]) के माध्यम से Streaming प्रोसेसिंग स्थिति में स्थानांतरित किया जा सकता है। स्ट्रीमिंग के दौरान, Update() ([SWS_CRYPT_50158]) सिफरटेक्स्ट अंशों को स्वीकार करता है। अनुक्रम Finish() ([SWS_CRYPT_50068]) द्वारा पूरा किया जाता है या Cancel() ([SWS_CRYPT_50069]) के माध्यम से निरस्त कर दिया जाता है, जिसके बाद संदर्भ नए परिचालनों के लिए फिर से तैयार हो जाता है। सभी इंटरफ़ेस विधियों को थ्रेड-सुरक्षित और अपवाद-सुरक्षित के रूप में निर्दिष्ट किया गया है ([SWS_CRYPT_50066], [SWS_CRYPT_50067], [SWS_CRYPT_50070])।

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

स्थिति आरेख: की बाइंडिंग से लेकर स्ट्रीमिंग और समाप्ति तक संदर्भ के जीवनचक्र की स्थितियाँ। स्रोत: [SWS_CRYPT_50066], [SWS_CRYPT_50157], [SWS_CRYPT_50067], [SWS_CRYPT_50158], [SWS_CRYPT_50068], [SWS_CRYPT_50069], [SWS_CRYPT_50070]।

उपयोग पथ

डिक्रिप्शन के लिए दो अलग-अलग प्रक्रियाएं उपलब्ध हैं: स्टेटलेस वन-टाइम डिक्रिप्शन और बहु-चरणीय स्ट्रीमिंग प्रोसेसिंग। डेटा ट्रांसफर से पहले, कॉलिंग एप्लिकेशन GetMinimumChunkSize() ([SWS_CRYPT_50160]) और GetMaximumChunkSize() ([SWS_CRYPT_50071]) के साथ सिफरटेक्स्ट के लिए स्वीकार्य इनपुट सीमाओं की जांच कर सकता है। GetRequiredOutputBufferSize() ([SWS_CRYPT_50159]) के माध्यम से, Update(), Finish() या Decrypt() के लिए आउटपुट बफ़र का आवश्यक आकार पहले से निर्धारित किया जा सकता है।

कॉम्पैक्ट डेटा मात्राओं के लिए, कुंजी कॉन्फ़िगरेशन के बाद डिक्रिप्शन सीधे Decrypt() ([SWS_CRYPT_50070]) के माध्यम से होता है। सिफरटेक्स्ट एक ही चरण में रूपांतरित होता है और डिक्रिप्ट किए गए बाइट्स की वास्तविक संख्या वापस कर दी जाती है।

बड़े या खंडित रूप से आने वाले सिफरटेक्स्ट को स्ट्रीमिंग पाथ के माध्यम से संसाधित किया जाता है:

  1. कुंजी असाइनमेंट: PrivateKey ([SWS_CRYPT_50157]) या KeySlot ([SWS_CRYPT_50066]) के साथ SetKey() के माध्यम से संदर्भ का कॉन्फ़िगरेशन।
  2. आरंभीकरण: आंतरिक प्रोसेसिंग स्थिति तैयार करने के लिए Start() ([SWS_CRYPT_50067]) को कॉल करना।
  3. ब्लॉक-वार प्रोसेसिंग: क्रमिक सिफरटेक्स्ट ब्लॉकों के लिए Update() ([SWS_CRYPT_50158]) को बार-बार कॉल करना।
  4. अंतिम रूप देना: अंतिम ब्लॉक को संसाधित करने और स्ट्रीम को समाप्त करने के लिए Finish() ([SWS_CRYPT_50068]) को कॉल करना। वैकल्पिक रूप से, ऑपरेशन को Cancel() ([SWS_CRYPT_50069]) का उपयोग करके समय से पहले निरस्त किया जा सकता है।
स्ट्रीमिंग डिक्रिप्शन का प्रवाहएप्लिकेशनDecryptorPrivateCtxSetKey(key)Result<void>Start()Result<void>loopSolange Chunks vorhandenUpdate(in, out)Result<std::size_t>Finish(in, out)Result<std::size_t>

अनुक्रम आरेख: बहु-भाग स्ट्रीमिंग डिक्रिप्शन का विशिष्ट कॉल अनुक्रम। स्रोत: [SWS_CRYPT_50157], [SWS_CRYPT_50067], [SWS_CRYPT_50158], [SWS_CRYPT_50068]।

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

DecryptorPrivateCtx की विधियाँ ara::crypto::CryptoErrc से कोड के साथ ara::core::Result के माध्यम से त्रुटियाँ लौटाती हैं और रोलबैक सेमांटिक्स का पालन करती हैं:

  • ara::crypto::CryptoErrc::kUninitializedContext: तब होता है जब कुंजी कॉन्फ़िगर होने से पहले रूपांतरण संचालन जैसे Decrypt() ([SWS_CRYPT_50070]) या Start() ([SWS_CRYPT_50067]) के साथ-साथ GetRequiredOutputBufferSize() ([SWS_CRYPT_50159]) के माध्यम से बफ़र गणना को कॉल किया जाता है।
  • ara::crypto::CryptoErrc::kProcessingNotStarted: Update() ([SWS_CRYPT_50158]), Finish() ([SWS_CRYPT_50068]) या Cancel() ([SWS_CRYPT_50069]) द्वारा रिपोर्ट किया जाता है यदि Start() का कोई पूर्व कॉल नहीं हुआ था।
  • ara::crypto::CryptoErrc::kUsageViolation: संकेत देता है कि कुंजी के उपयोग नियमों में अनुमति kAllowDataDecryption शामिल नहीं है ([SWS_CRYPT_50157], [SWS_CRYPT_50067], [SWS_CRYPT_50070])।
  • ara::crypto::CryptoErrc::kIncompatibleObject: तब होता है जब असाइन किया गया की ऑब्जेक्ट या स्लॉट संदर्भ के एल्गोरिदम से मेल नहीं खाता है ([SWS_CRYPT_50066], [SWS_CRYPT_50157], [SWS_CRYPT_50067], [SWS_CRYPT_50070])।
  • ara::crypto::CryptoErrc::kInsufficientCapacity और ara::crypto::CryptoErrc::kInvalidInputSize: आउटपुट बफ़र पर्याप्त क्षमता प्रदान नहीं करता है या इनपुट आकार संदर्भ की सीमाओं का उल्लंघन करता है ([SWS_CRYPT_50070], [SWS_CRYPT_50158], [SWS_CRYPT_50068])।
  • ara::crypto::CryptoErrc::kUnsupported: इंगित करता है कि स्ट्रीमिंग, वन-टाइम कॉल या की बाइंडिंग का चुना गया प्रकार ठोस कार्यान्वयन द्वारा समर्थित नहीं है ([SWS_CRYPT_50066], [SWS_CRYPT_50157], [SWS_CRYPT_50067], [SWS_CRYPT_50070])।
  • ara::crypto::CryptoErrc::kEmptyKeySlot और ara::crypto::CryptoErrc::kBusyResource: संकेत देते हैं कि एक कॉन्फ़िगर किया गया KeySlot वर्तमान में खाली है या कोई आवश्यक संसाधन व्यस्त है ([SWS_CRYPT_50067], [SWS_CRYPT_50070])।

यह गाइड AUTOSAR विनिर्देश R25-11 के आधार पर एक AI द्वारा जनरेट किया गया था।

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

क्लास आरेख

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

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

विवरण दृश्य

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

मेथड

Cancel फ़ंक्शन

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

virtual ara::core::Result< void > Cancel () noexcept=0;
Decrypt फ़ंक्शन

Decrypt data in a single-call.

virtual ara::core::Result< std::size_t > Decrypt (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;
Finish फ़ंक्शन

Finalize the decryption.

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;
GetMaximumChunkSize फ़ंक्शन

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

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;
GetMinimumChunkSize फ़ंक्शन

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

virtual ara::core::Result< std::size_t > GetMinimumChunkSize () const noexcept=0;
GetRequiredOutputBufferSize फ़ंक्शन

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

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;
SetKey फ़ंक्शन 2

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

ओवरलोड SetKey 2
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50066
virtual ara::core::Result< void > SetKey (PrivateKey::Sptr key) noexcept=0; SWS_CRYPT_50157
Start फ़ंक्शन

Initialize the context for a new decryption.

virtual ara::core::Result< void > Start () noexcept=0;
Update फ़ंक्शन

Decrypt a data buffer.

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

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

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

फ़ंक्शन Cancel [SWS_CRYPT_50069] Upstream: RS_CRYPTO_02302

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

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

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

ara/crypto/cryp/decryptor_private_ctx.h में परिभाषित क्लास ara::crypto::cryp::DecryptorPrivateCtx की विधि Cancel एक चालू स्ट्रीमिंग ऑपरेशन को निरस्त करती है, जिसे पहले Start() के माध्यम से आरंभ किया गया था और अभी तक पूरा नहीं हुआ था [SWS_CRYPT_50069]। यह कॉल कोई इनपुट पैरामीटर स्वीकार नहीं करता है और रिटर्न मान के रूप में ara::core::Result<void> [SWS_CRYPT_50069] प्रदान करता है। यदि स्ट्रीमिंग प्रसंस्करण का निरस्तीकरण सफल रहा, तो ऑब्जेक्ट में एक खाली परिणाम होता है; अन्यथा यह उत्पन्न हुई त्रुटि को ले जाता है [SWS_CRYPT_50069]। शुद्ध वर्चुअल इंटरफ़ेस को noexcept के रूप में घोषित किया गया है, यह पूर्ण अपवाद-सुरक्षा प्रदर्शित करता है और समवर्ती पहुँच के लिए thread-safe के रूप में निर्दिष्ट है [SWS_CRYPT_50069]।

त्रुटि प्रबंधन और निष्पादन शर्तों में, सटीक क्रम का ध्यान रखा जाना चाहिए: यदि डेटा प्रसंस्करण पहले विधि Start() के कॉल द्वारा शुरू नहीं किया गया था, तो ऑपरेशन विफल हो जाता है और रोलबैक सिमेंटिक्स के साथ विशिष्ट त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted लौटाता है [SWS_CRYPT_50069]। इस त्रुटि स्थिति से बचने के लिए, कॉलर को यह सुनिश्चित करना चाहिए कि निरस्तीकरण से पहले एक सक्रिय ऑपरेशन पहले से मौजूद हो [SWS_CRYPT_50069]।

crypt के समग्र मॉड्यूल आर्किटेक्चर के साथ संयोजन में, Cancel स्टेटफुल स्ट्रीमिंग प्रक्रियाओं के लिए एक मानकीकृत डिज़ाइन पैटर्न का पालन करता है। समान हस्ताक्षर, रिटर्न सिमेंटिक्स और त्रुटि प्रबंधन संबंधित क्रिप्टोग्राफ़िक संदर्भों ara::crypto::cryp::VerifierPublicCtx [SWS_CRYPT_50023], ara::crypto::cryp::MessageAuthnCodeCtx [SWS_CRYPT_50027], ara::crypto::cryp::SignerPrivateCtx [SWS_CRYPT_50041], ara::crypto::cryp::SymmetricCipherCtx [SWS_CRYPT_50046], ara::crypto::cryp::HashFunctionCtx [SWS_CRYPT_50058], ara::crypto::cryp::AuthCipherCtx [SWS_CRYPT_50077] और साथ ही ara::crypto::cryp::EncryptorPublicCtx [SWS_CRYPT_50089] द्वारा साझा किए जाते हैं।

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50069
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50069@rel:R25-11#0a4ba2a9
Content hash
0a4ba2a9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50069
Status: valid/unmigrated Version: rel:R25-11#2a0972af Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50069@rel:R25-11#2a0972af
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Decrypt [SWS_CRYPT_50070] Upstream: RS_CRYPTO_02302

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

Decrypt data in a single-call.

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

सिंक्रोनस विधि Decrypt एकल चरण में सिफरटेक्स्ट डेटा को डिक्रिप्ट करती है ([SWS_CRYPT_50070])। इनपुट बफर in सिफरटेक्स्ट को ReadOnlyMemRegion के रूप में पास करता है, जबकि ReadWriteMemRegion प्रकार का आउटपुट बफर out प्लेनटेक्स्ट प्राप्त करता है ([SWS_CRYPT_50070])। सफल डिक्रिप्शन पर, फ़ंक्शन ara::core::Result<std::size_t> के माध्यम से लिखे गए बाइट्स की वास्तविक संख्या लौटाता है, जो out की कुल क्षमता से कम हो सकती है ([SWS_CRYPT_50070])।

इंटरफ़ेस को thread-safe और साथ ही exception safe के रूप में निर्दिष्ट किया गया है ([SWS_CRYPT_50070])। कॉल करने से पहले, संदर्भ को एक कुंजी निर्दिष्ट करके प्रारंभ किया जाना चाहिए; अन्यथा फ़ंक्शन UninitializedContext के साथ या KeySlot खाली होने पर ara::crypto::CryptoErrc::kEmptyKeySlot के साथ विफल हो जाता है ([SWS_CRYPT_50070])। कुंजी ट्रांसफ़ॉर्मेशन एल्गोरिदम के साथ संगत होनी चाहिए (अन्यथा kIncompatibleObject) और इसमें अनुमति kAllowDataDecryption शामिल होनी चाहिए (अन्यथा kUsageViolation) ([SWS_CRYPT_50070])।

बफ़र ओवरफ़्लो को रोकने के लिए, आउटपुट बफ़र की अधिकतम आवश्यक क्षमता को isFinal = true निर्दिष्ट करके GetRequiredOutputBufferSize के साथ पहले से क्वेरी किया जा सकता है ([SWS_CRYPT_50159])। यदि out की क्षमता पर्याप्त नहीं है, तो विधि ara::crypto::CryptoErrc::kInsufficientCapacity के साथ समाप्त हो जाती है ([SWS_CRYPT_50070])। इसके अतिरिक्त, इनपुट बफर in का आकार GetMinimumChunkSize ([SWS_CRYPT_50160]) और GetMaximumChunkSize ([SWS_CRYPT_50071]) के बीच की सीमा में होना चाहिए, अन्यथा ara::crypto::CryptoErrc::kInvalidInputSize लौटाया जाता है ([SWS_CRYPT_50070])। रोलबैक सिमेंटिक्स के साथ अन्य निर्दिष्ट त्रुटियां kUnsupported, kInvalidArgument और साथ ही kBusyResource हैं ([SWS_CRYPT_50070])।

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

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

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing the ciphertext

Parameter (out)

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50070
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50070@rel:R25-11#3b565647
Content hash
3b565647
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50070
Status: valid/unmigrated Version: rel:R25-11#42aea752 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50070@rel:R25-11#42aea752
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Finish [SWS_CRYPT_50068] Upstream: RS_CRYPTO_02302

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

Finalize the decryption.

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

विधि Finish ara::crypto::cryp::DecryptorPrivateCtx के संदर्भ में डिक्रिप्शन प्रक्रिया को सिंक्रोनस रूप से पूरा करती है [SWS_CRYPT_50068]। यह इनपुट बफ़र in (ReadOnlyMemRegion) के माध्यम से अंतिम सिफ़रटेक्स्ट सेगमेंट को संसाधित करती है और परिणामी प्लेनटेक्स्ट डेटा को आउटपुट बफ़र out (ReadWriteMemRegion) में लिखती है [SWS_CRYPT_50068]। वास्तव में लिखे गए बाइट्स की संख्या ara::core::Result<std::size_t> के रूप में लौटाई जाती है और यह लक्ष्य बफ़र out की कुल क्षमता से कम हो सकती है [SWS_CRYPT_50068]।

कॉल से पहले, डेटा प्रोसेसिंग को अनिवार्य रूप से Start() के साथ शुरू किया गया होना चाहिए, अन्यथा त्रुटि CryptoErrc::kProcessingNotStarted की सूचना दी जाती है [SWS_CRYPT_50068]। in के लिए अधिकतम अनुमत ब्लॉक आकार GetMaximumChunkSize() के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50071]; अनुपयुक्त इनपुट लंबाई के मामले में कॉल CryptoErrc::kInvalidInputSize के साथ विफल हो जाती है [SWS_CRYPT_50068]। यदि out बहुत छोटा है, तो परिणाम CryptoErrc::kInsufficientCapacity होता है, जिसके तहत आवश्यक बफ़र आकार GetRequiredOutputBufferSize() के माध्यम से पूछा जा सकता है [SWS_CRYPT_50068]। अन्य संभावित त्रुटियों में अमान्य सिफ़रटेक्स्ट डेटा के मामले में CryptoErrc::kInvalidArgument, साथ ही CryptoErrc::kUnsupported शामिल हैं यदि संदर्भ में स्ट्रीम प्रोसेसिंग समर्थित नहीं है [SWS_CRYPT_50068]।

ऑपरेशन को thread-safe और exception safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50068]। निर्दिष्ट रोलबैक सेमेंटिक्स के कारण, बफ़र त्रुटियों की स्थिति में प्रोसेसिंग स्थिति अपरिवर्तित रहनी चाहिए, ताकि बफ़र को बड़ा करने के बाद पुनरावृत्ति संभव होनी चाहिए। प्रश्न Q-e2562509449aa32c (खुला)

यह उपयोग नोट विशिष्टता ara::crypto (AUTOSAR R25-11) के आधार पर स्वचालित रूप से जनरेट किया गया था।

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext

Parameter (out)

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50068
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50068@rel:R25-11#9d152441
Content hash
9d152441
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50068
Status: valid/unmigrated Version: rel:R25-11#4e88e7ba Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50068@rel:R25-11#4e88e7ba
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन GetMaximumChunkSize [SWS_CRYPT_50071] Upstream: RS_CRYPTO_02309

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50071
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50071@rel:R25-11#9a38f7de
Content hash
9a38f7de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50071
Status: valid/unmigrated Version: rel:R25-11#363f8dce Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50071@rel:R25-11#363f8dce
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन GetMinimumChunkSize [SWS_CRYPT_50160] Upstream: RS_CRYPTO_02309

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50160
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50160@rel:R25-11#f41d094c
Content hash
f41d094c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50160
Status: valid/unmigrated Version: rel:R25-11#840ff3d7 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50160@rel:R25-11#840ff3d7
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन GetRequiredOutputBufferSize [SWS_CRYPT_50159] Upstream: RS_CRYPTO_02302

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50159
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50159@rel:R25-11#0805c881
Content hash
0805c881
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50159
Status: valid/unmigrated Version: rel:R25-11#34d4f358 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50159@rel:R25-11#34d4f358
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

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

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

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

उपयोग

विधि SetKey, पास किए गए KeySlot में संग्रहीत कुंजी के उपयोग के लिए ara::crypto::cryp::DecryptorPrivateCtx के एक इंस्टेंस को कॉन्फ़िगर करती है [SWS_CRYPT_50066]। एक पैरामीटर के रूप में KeySlot::Sptr पास किया जाता है, जिसमें एक PrivateKey होना आवश्यक है [SWS_CRYPT_50066]। वास्तविक कुंजी का उपयोग केवल उसी समय किया जाता है जब डिक्रिप्शन ऑपरेशन शुरू किया जाता है [SWS_CRYPT_50066]। यह फ़ंक्शन सिंक्रोनस रूप से कार्य करता है और ara::core::Result<void> के माध्यम से परिणाम की रिपोर्ट करता है [SWS_CRYPT_50066]।

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

त्रुटि के मामले में, ara::core::Result में एक संबंधित त्रुटि कोड लौटाया जाता है, जिसमें रोलबैक सिमेंटिक्स प्रभावी होता है [SWS_CRYPT_50066]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: प्रदान किया गया KeySlot संदर्भ के साथ संगत नहीं है [SWS_CRYPT_50066]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ केवल PrivateKey की प्रत्यक्ष सेटिंग का समर्थन करता है और KeySlots का नहीं [SWS_CRYPT_50066]।

समवर्तीता और परस्पर क्रिया

इंटरफ़ेस को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) घोषित किया गया है [SWS_CRYPT_50066]। चूंकि कुंजी का मूल्यांकन डिक्रिप्शन की शुरुआत में ही होता है, इसलिए इस प्रारंभ समय से पहले स्लॉट सामग्री का अपडेट प्रभावी होना चाहिए। प्रश्न Q-ec258ea8b5a1d1c2 (खुला) जबकि अन्य क्रिप्टोग्राफ़िक संदर्भ कभी-कभी कुंजियों को सीधे एक इंस्टेंस के रूप में स्वीकार करते हैं (उदाहरण के लिए SignerPrivateCtx [SWS_CRYPT_23515]), यह विधि कुंजी-स्लॉट के माध्यम से विलंबित बाइंडिंग (डिफर्ड बाइंडिंग) के पैटर्न का पालन करती है, जैसा कि अन्य के अलावा VerifierPublicCtx [SWS_CRYPT_50018] और KeyDerivationFunctionCtx [SWS_CRYPT_50010] में भी उपयोग किया जाता है।

यह पाठ एक AI द्वारा जनरेट किया गया था और AUTOSAR मानक में एक मार्गदर्शन के रूप में कार्य करता है।

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a PrivateKey.

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50066
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50066@rel:R25-11#22a0aa0b
Content hash
22a0aa0b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50066
Status: valid/unmigrated Version: rel:R25-11#a48ca2e4 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50066@rel:R25-11#a48ca2e4
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

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

Configure the context to use the provided key.

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

उपयोग

विधि SetKey डेटा डिक्रिप्शन के लिए एक विशिष्ट निजी कुंजी के उपयोग हेतु ara::crypto::cryp::DecryptorPrivateCtx के एक इंस्टेंस को कॉन्फ़िगर करती है [SWS_CRYPT_50157]। PrivateKey::Sptr key के माध्यम से एक इंस्टेंस को पैरामीटर के रूप में पास किया जाता है। रिटर्न मान ara::core::Result<void> है, जिससे सफल असाइनमेंट की पुष्टि होती है या कोई त्रुटि लौटाई जाती है। कॉल संभवतः सिंक्रोनस रूप से निष्पादित होता है (व्याख्या: इंटरफ़ेस कुंजी के अधिग्रहण तक ब्लॉक रहता है और कोई एसिंक्रोनस Future ऑब्जेक्ट नहीं लौटाता है)। प्रश्न Q-b8e9b5cb4174e2b2 (खुला)

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

त्रुटि के मामले में, कार्यान्वयन रोलबैक सिमेंटिक्स सुनिश्चित करता है, ताकि त्रुटि होने पर संदर्भ स्थिति अपरिवर्तित रहे [SWS_CRYPT_50157]। निम्नलिखित त्रुटि कोड हो सकते हैं:

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

समवर्तीता और प्रतिबंध

इंटरफ़ेस को स्पष्ट रूप से thread-safe और exception safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50157]। यह समवर्ती परिवेशों में सुरक्षित निष्पादन की गारंटी देता है और कोई C++ अपवाद नहीं फेंकता है (noexcept=0)।

इंटरैक्शन

SetKey के माध्यम से कुंजी असाइनमेंट की प्रक्रिया Adaptive Platform में विभिन्न क्रिप्टोग्राफ़िक संदर्भों में समान रूप से लागू की जाती है: जबकि संबंधित असममित संदर्भ जैसे KeyAgreementPrivateCtx [SWS_CRYPT_21313], KeyDecapsulatorPrivateCtx [SWS_CRYPT_21413] और SignerPrivateCtx [SWS_CRYPT_23515] भी PrivateKey::Sptr का उपयोग करते हैं, KeyDerivationFunctionCtx [SWS_CRYPT_50010] या VerifierPublicCtx [SWS_CRYPT_50018] जैसे अन्य संदर्भों में KeySlot::Sptr के साथ वैकल्पिक वेरिएंट मौजूद हैं।

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

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

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

Parameter (in)

ParameterBeschreibung
keythe PrivateKey to be used for decryption

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50157
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50157@rel:R25-11#ec3805cc
Content hash
ec3805cc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50157
Status: valid/unmigrated Version: rel:R25-11#05a94de8 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50157@rel:R25-11#05a94de8
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Start [SWS_CRYPT_50067] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new decryption.

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

वर्ग ara::crypto::cryp::DecryptorPrivateCtx ([SWS_CRYPT_50067]) का सदस्य फ़ंक्शन Start एक नए डिक्रिप्शन के लिए संदर्भ को सिंक्रोनस रूप से प्रारंभ करता है। यह कॉल कोई पैरामीटर स्वीकार नहीं करता है, कोई अपवाद नहीं फेंकता है (noexcept) और एक ara::core::Result<void> लौटाता है, जो सफलता के मामले में खाली होता है ([SWS_CRYPT_50067])। समवर्ती एक्सेस के लिए विधि को thread-safe के रूप में निर्दिष्ट किया गया है ([SWS_CRYPT_50067])।

निष्पादन से पहले, एक संगत कुंजी संग्रहीत होनी चाहिए, क्योंकि Start इसकी स्थिति और अनुमतियों की जांच करता है ([SWS_CRYPT_50067])। यदि ऑपरेशन विफल हो जाता है, तो रोलबैक सिमेंटिक्स लागू होता है ([SWS_CRYPT_50067])। प्रासंगिक त्रुटि कोड हैं:

  • ara::crypto::CryptoErrc::kUninitializedContext: संदर्भ को अभी तक कोई कुंजी निर्दिष्ट नहीं की गई है ([SWS_CRYPT_50067])।
  • ara::crypto::CryptoErrc::kEmptyKeySlot: एक कॉन्फ़िगर किया गया KeySlot वर्तमान में खाली है ([SWS_CRYPT_50067])।
  • ara::crypto::CryptoErrc::kUsageViolation: कुंजी की अनुमतियाँ डेटा डिक्रिप्शन की अनुमति नहीं देती हैं ([SWS_CRYPT_50067])।
  • ara::crypto::CryptoErrc::kIncompatibleObject: कुंजी का प्रकार परिवर्तन (ट्रांसफ़ॉर्मेशन) के साथ असंगत है ([SWS_CRYPT_50067])।
  • ara::crypto::CryptoErrc::kBusyResource: एक आवश्यक संसाधन व्यस्त है ([SWS_CRYPT_50067])।
  • ara::crypto::CryptoErrc::kUnsupported: स्ट्रीम प्रोसेसिंग संदर्भ द्वारा समर्थित नहीं है ([SWS_CRYPT_50067])।

समग्र प्रणाली में, यह विधि अनुकूली क्रिप्टो संदर्भों के मानकीकृत जीवनचक्र से मेल खाती है, जैसा कि हस्ताक्षर सत्यापन ([SWS_CRYPT_50019]), हस्ताक्षर निर्माण ([SWS_CRYPT_50037]) या MAC गणना ([SWS_CRYPT_22111]) में तुलनात्मक रूप से उपयोग किया जाता है। व्याख्या: डिक्रिप्टर को एक परिभाषित प्रारंभिक स्थिति में लाने के लिए आगे के प्रसंस्करण चरणों से पहले Start की कॉल अनिवार्य रूप से आवश्यक होनी चाहिए। प्रश्न Q-7d5a95305eb4626a (खुला)

यह पाठ AUTOSAR R25-11 विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

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

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50067
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50067@rel:R25-11#8eaf874e
Content hash
8eaf874e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50067
Status: valid/unmigrated Version: rel:R25-11#0df0233a Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50067@rel:R25-11#0df0233a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन Update [SWS_CRYPT_50158] Upstream: RS_CRYPTO_02302

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

Decrypt a data buffer.

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

उपयोग

विधि Update ara::crypto::cryp::DecryptorPrivateCtx के संदर्भ में डेटा बफ़र को डिक्रिप्ट करने के लिए कार्य करती है [SWS_CRYPT_50158]। सिंक्रोनस कॉल पैरामीटर in (ReadOnlyMemRegion) में एक सिफ़रटेक्स्ट उपखंड स्वीकार करता है और डिक्रिप्ट किए गए डेटा को बफ़र out (ReadWriteMemRegion) में लिखता है [SWS_CRYPT_50158]। परिणाम के रूप में एक ara::core::Result<std::size_t> लौटाया जाता है, जिसमें लिखे गए बाइट्स की वास्तविक संख्या होती है; यह मान out की कुल क्षमता से कम हो सकता है [SWS_CRYPT_50158]।

पारस्परिक क्रिया और बफ़र का आकार निर्धारण

Update के निष्पादन से पहले, डेटा प्रोसेसिंग को अनिवार्य रूप से Start() के कॉल द्वारा शुरू किया जाना चाहिए [SWS_CRYPT_50158]। out के लिए आवश्यक न्यूनतम आकार को GetRequiredOutputBufferSize() के माध्यम से क्वेरी किया जा सकता है [SWS_CRYPT_50158]। इसके अतिरिक्त, एकल Update कॉलों के लिए अधिकतम प्रोसेस करने योग्य इनपुट आकार को GetMaximumChunkSize() के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50071]।

त्रुटि हैंडलिंग और समवर्तीता

इंटरफ़ेस को थ्रेड-सुरक्षित और अपवाद-सुरक्षित के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50158]। सभी त्रुटि मामलों में रोलबैक सिमेंटिक्स होते हैं और वे ara::core::Result में विशिष्ट त्रुटि कोड लौटाते हैं [SWS_CRYPT_50158]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: प्रोसेसिंग पहले Start() के माध्यम से प्रारंभ नहीं की गई थी [SWS_CRYPT_50158]।
  • ara::crypto::CryptoErrc::kInsufficientCapacity: आउटपुट बफ़र out बहुत छोटा है [SWS_CRYPT_50158]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: पास किए गए इनपुट बफ़र का आकार अमान्य है [SWS_CRYPT_50158]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ द्वारा स्ट्रीम प्रोसेसिंग समर्थित नहीं है [SWS_CRYPT_50158]।

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

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext

Parameter (out)

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50158
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50158@rel:R25-11#704477ba
Content hash
704477ba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50158
Status: valid/unmigrated Version: rel:R25-11#ad98aa1d Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50158@rel:R25-11#ad98aa1d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

टाइप उपनाम Sptr [SWS_CRYPT_50156] Upstream: RS_CRYPTO_02201

using Sptr = std::shared_ptr<DecryptorPrivateCtx>;

Smart pointer of the interface.

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50156
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50156@rel:R25-11#16d076b6
Content hash
16d076b6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50156
Status: valid/unmigrated Version: rel:R25-11#8ad9c2a0 Versionshistorie & Revisions (1 transition)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_50156@rel:R25-11#8ad9c2a0
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill