DEENESPTFRRUARHIKOZHNL

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

[SWS_CRYPT_20100] Upstream: RS_CRYPTO_02207

class AuthCipherCtx :           public CryptoContext {...};

Authenticated Cipher Context interface.

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

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

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

अखंडता सुरक्षा के साथ प्रमाणित सममित एन्क्रिप्शन और डिक्रिप्शन के लिए एक इंटरफ़ेस प्रदान करता है।

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx गोपनीयता और अखंडता बनाए रखते हुए डेटा के प्रमाणित एन्क्रिप्शन और डिक्रिप्शन के लिए कार्य करता है [SWS_CRYPT_23911]। कुंजी को कॉन्फ़िगर करने के बाद, प्रसंस्करण या तो एक परमाणु एकल कॉल के रूप में या इनिशियलाइज़ेशन, वैकल्पिक प्रमाणीकरण डेटा, पेलोड अपडेट और अंतिम रूप देने के एक स्ट्रीम किए गए अनुक्रम के रूप में होता है। एक महत्वपूर्ण सुरक्षा शर्त के रूप में, अमान्य प्रमाणीकरण टैग होने पर डिक्रिप्शन विफल हो जाता है, ताकि डिक्रिप्ट किए गए पेलोड को केवल सफल सत्यापन के बाद ही संसाधित किया जा सके [SWS_CRYPT_50075]।

संदर्भ

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx AUTOSAR Adaptive Platform के भीतर प्रमाणित सिफर संचालन (Authenticated Encryption with Associated Data, AEAD) के लिए मानकीकृत प्रोग्रामिंग इंटरफ़ेस को परिभाषित करता है। यह पेलोड डेटा के वास्तविक एन्क्रिप्शन या डिक्रिप्शन के अलावा हमेशा एक क्रिप्टोग्राफ़िक प्रमाणीकरण टैग उत्पन्न या सत्यापित करके गोपनीयता को अखंडता सुरक्षा के साथ जोड़ता है। कॉलिंग एप्लिकेशन और कुंजी ऑब्जेक्ट केंद्रीय इंटरैक्शन पार्टनर के रूप में कार्य करते हैं: उपयोग से पहले संदर्भ या तो SymmetricKey के एक ठोस इंस्टेंस से बंधा होता है [SWS_CRYPT_23911] या एक पर्सिस्टेंट या प्रदान किए गए KeySlot के साथ कॉन्फ़िगर किया जाता है [SWS_CRYPT_50072]। चरण-दर-चरण स्ट्रीमिंग प्रसंस्करण के अलावा, क्लास एक ही चरण में पूर्ण संदेशों को संसाधित करने के लिए आत्मनिर्भर एकल कॉल का भी समर्थन करती है [SWS_CRYPT_50078]।

जीवनचक्र

संदर्भ एप्लिकेशन क्षेत्र में साझा पॉइंटर प्रकार ara::crypto::cryp::AuthCipherCtx::Sptr के माध्यम से प्रबंधित किए जाते हैं [SWS_CRYPT_20101]। (व्याख्या: ऑब्जेक्ट निर्माण आमतौर पर एक उच्च-स्तरीय प्रदाता फ़ैक्टरी के माध्यम से होता है, क्योंकि AuthCipherCtx एक शुद्ध इंटरफ़ेस के रूप में निर्दिष्ट है)। प्रश्न Q-23125789874cf2f3 (खुला) सभी सदस्य फ़ंक्शंस को अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है [SWS_CRYPT_23911], [SWS_CRYPT_24715]। कार्यात्मक जीवनचक्र स्पष्ट रूप से परिभाषित स्थितियों से गुजरता है:

  • अनिारंभीकृत: इंस्टेंटिएशन के तुरंत बाद। डेटा प्रोसेसिंग के लिए कॉल अस्वीकार कर दिए जाते हैं, क्योंकि अभी तक कोई कुंजी असाइन नहीं की गई है [SWS_CRYPT_50081]।
  • कुंजी कॉन्फ़िगर की गई: एक SymmetricKey [SWS_CRYPT_23911] या KeySlot [SWS_CRYPT_50072] के साथ SetKey के सफल कॉल के माध्यम से संदर्भ उपयोग के लिए तैयार स्थिति में बदल जाता है। इस स्थिति से, सिंगल-शॉट ऑपरेशन्स सीधे निष्पादित किए जा सकते हैं।
  • स्ट्रीमिंग सक्रिय: इनिशियलाइज़ेशन वेक्टर (IV) [SWS_CRYPT_24715] के साथ या स्पष्ट IV [SWS_CRYPT_50073] के बिना परिवर्तन दिशा निर्दिष्ट करके Start को कॉल करके दर्ज किया जाता है।
  • समापन / रीसेट: एक चल रहा स्ट्रीमिंग ऑपरेशन नियमित रूप से Finish [SWS_CRYPT_50075] या FinishEncrypt [SWS_CRYPT_50076] द्वारा पूरा किया जाता है या Cancel के माध्यम से समय से पहले निरस्त कर दिया जाता है [SWS_CRYPT_50077]। उसके बाद, संदर्भ नए प्रसंस्करण अनुक्रमों के लिए फिर से तैयार हो जाता है।
Lebenszyklus Uninitialized Uninitialized KeyConfigured KeyConfigured Uninitialized->KeyConfigured SetKey() KeyConfigured->KeyConfigured ProcessSingleCall() StreamingActive StreamingActive KeyConfigured->StreamingActive Start() StreamingActive->KeyConfigured Finish() / Cancel() StreamingActive->StreamingActive UpdateAuthenticatedData() UpdateConfidentialData()

स्थिति आरेख: कुंजी बाइंडिंग से स्ट्रीमिंग प्रसंस्करण के माध्यम से समापन तक संदर्भ के स्थिति चरण। स्रोत: [SWS_CRYPT_23911], [SWS_CRYPT_50072], [SWS_CRYPT_24715], [SWS_CRYPT_50075], [SWS_CRYPT_50077]।

उपयोग पथ

निरंतर डेटा स्ट्रीम प्रसंस्करण के लिए, इंटरफ़ेस को कॉल के एक व्यवस्थित क्रम की आवश्यकता होती है:

  1. कॉन्फ़िगरेशन: SetKey [SWS_CRYPT_23911] या KeySlot [SWS_CRYPT_50072] के साथ SetKey के माध्यम से कुंजी का असाइनमेंट।
  2. पैरामीटर क्वेरी: GetMinimumChunkSize [SWS_CRYPT_50162], GetMaximumChunkSize [SWS_CRYPT_50082], GetMinimumInputIvSize [SWS_CRYPT_50163], GetMaximumInputIvSize [SWS_CRYPT_50164], GetTagSize [SWS_CRYPT_50161] और GetRequiredOutputBufferSize [SWS_CRYPT_50081] के माध्यम से सीमा मानों और बफ़र आकारों का वैकल्पिक निर्धारण।
  3. ऑपरेशन का प्रारंभ: दिशा (एन्क्रिप्शन या डिक्रिप्शन) निर्दिष्ट करने के साथ-साथ IV [SWS_CRYPT_24715] प्रदान करके या संदर्भ-विशिष्ट IV [SWS_CRYPT_50073] का अनुरोध करते हुए Start को कॉल करना।
  4. एसोसिएटेड डेटा (AAD): यदि अतिरिक्त प्लेनटेक्स्ट डेटा को अखंडता गणना में शामिल किया जाना है, तो इसे UpdateAuthenticatedData के माध्यम से पास किया जाता है [SWS_CRYPT_20313]। अधिकतम अनुमेय AAD आकार को GetMaxAssociatedDataSize के माध्यम से क्वेरी किया जा सकता है [SWS_CRYPT_20103]। महत्वपूर्ण: AAD ब्लॉक्स को अनिवार्य रूप से वास्तविक पेलोड डेटा से पहले प्रेषित किया जाना चाहिए।
  5. पेलोड डेटा प्रोसेसिंग: UpdateConfidentialData [SWS_CRYPT_50074] के माध्यम से डेटा ब्लॉक्स का क्रमिक स्थानांतरण। डिक्रिप्शन के दौरान, प्लेनटेक्स्ट को उसकी प्रामाणिकता स्थापित होने से पहले वापस कर दिया जाता है; एप्लिकेशन केवल सफल समापन के बाद ही इस डेटा का उपयोग कर सकता है।
  6. समापन (Finalization): Finish [SWS_CRYPT_50075] या FinishEncrypt [SWS_CRYPT_50076] का उपयोग करके ऑपरेशन को समाप्त करना, जिससे अंतिम ब्लॉक संसाधित होता है और प्रमाणीकरण टैग की गणना या सत्यापन किया जाता है।

कॉम्पैक्ट पेलोड के लिए सिंगल-कॉल विकल्प मौजूद हैं: ProcessSingleCall बिना IV पास किए डेटा को संसाधित करता है [SWS_CRYPT_50078], ProcessSingleCallWithInputIv एक बाहरी IV स्वीकार करता है [SWS_CRYPT_50079], और EncryptSingleCallWithOutputIv संदर्भ द्वारा जनरेट किए गए IV को कॉलर को लौटाता है [SWS_CRYPT_50080]।

स्ट्रीम किए गए प्रमाणित एन्क्रिप्शन का प्रवाहएप्लिकेशनAuthCipherCtxSetKey(key)Result<void>Start(kEncrypt, iv)Result<void>optZusatzdaten vorhandenUpdateAuthenticatedData(aad)Result<void>loopfuer jeden DatenblockUpdateConfidentialData(in, out)Result<size_t>Finish(in, out, tag)Result<size_t>

अनुक्रम आरेख: एक स्ट्रीम किए गए प्रमाणीकृत एन्क्रिप्शन का कॉल क्रम। स्रोत: [SWS_CRYPT_23911], [SWS_CRYPT_24715], [SWS_CRYPT_20313], [SWS_CRYPT_50074], [SWS_CRYPT_50075]।

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

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

  • kUninitializedContext: तब घटित होता है जब Start [SWS_CRYPT_24715], ProcessSingleCall [SWS_CRYPT_50078] या बफ़र गणनाओं [SWS_CRYPT_50081] को कॉल किया जाता है, यदि SetKey के माध्यम से अभी तक कोई कुंजी कॉन्फ़िगर नहीं की गई है।
  • kProcessingNotStarted: तब रिपोर्ट किया जाता है जब पूर्ववर्ती Start के बिना UpdateAuthenticatedData [SWS_CRYPT_20313], UpdateConfidentialData [SWS_CRYPT_50074], Finish [SWS_CRYPT_50075] या Cancel [SWS_CRYPT_50077] को कॉल किया जाता है।
  • kInvalidUsageOrder: एक गलत कॉल क्रम का संकेत देता है यदि UpdateAuthenticatedData को तब कॉल किया जाता है जब UpdateConfidentialData के माध्यम से पेलोड डेटा पहले ही संसाधित किया जा चुका हो [SWS_CRYPT_20313]।
  • kAuthTagNotValid: Finish [SWS_CRYPT_50075] या सिंगल-शॉट विधियों [SWS_CRYPT_50078] में डिक्रिप्शन के दौरान यह दर्शाता है कि परिकलित टैग पास किए गए टैग से मेल नहीं खाता है और प्रामाणिकता जाँच विफल हो गई है।
  • kUsageViolation: तब घटित होता है जब कुंजी के उपयोग विशेषताएँ अनुरोधित ऑपरेशन से मेल नहीं खाती हैं (उदा. अनुपलब्ध kAllowDataEncrypt या kAllowDataDecrypt) [SWS_CRYPT_23911], [SWS_CRYPT_50078]।
  • kInsufficientCapacity / kInvalidInputSize: अपर्याप्त आकार वाले आउटपुट बफ़र या अमान्य इनपुट, IV या टैग लंबाई की ओर संकेत करते हैं [SWS_CRYPT_24715], [SWS_CRYPT_50074], [SWS_CRYPT_50075]।
  • kEmptyKeySlot / kBusyResource: कॉन्फ़िगर किए गए कुंजी संग्रहण स्थानों का उपयोग करते समय त्रुटि स्थितियों से संबंधित हैं [SWS_CRYPT_24715], [SWS_CRYPT_50078]।

यह गाइड पूरी तरह से AUTOSAR Adaptive मानक (रिलीज़ R25-11) पर आधारित है और इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx की आवश्यकताओं को सारांशित करता है।

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

क्लास आरेख

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

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

विवरण दृश्य

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

मेथड

Cancel फ़ंक्शन

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

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

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

virtual ara::core::Result< std::size_t > EncryptSingleCallWithOutputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, ReadWriteMemRegion ivOut, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;
Finish फ़ंक्शन

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

FinishEncrypt फ़ंक्शन

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

virtual ara::core::Result< std::size_t > FinishEncrypt (ReadOnlyMem Region in, ReadWriteMemRegion out, ReadWriteMemRegion tag, ReadWrite MemRegion ivOut) noexcept=0;
GetMaxAssociatedDataSize फ़ंक्शन

Get maximum supported size of associated public data.

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

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

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

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

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

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

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

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

virtual ara::core::Result< std::size_t > GetMinimumInputIvSize (Crypto Transform transformDirection) const noexcept=0;
GetOutputIvSize फ़ंक्शन

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

virtual ara::core::Result< std::size_t > GetOutputIvSize () const noexcept=0;
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;
GetTagSize फ़ंक्शन

Get the output tag size.

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

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

virtual ara::core::Result< std::size_t > ProcessSingleCall (ReadOnly MemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMemRegion tag, CryptoTransform transformDirection, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;
ProcessSingleCallWithInputIv फ़ंक्शन

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

virtual ara::core::Result< std::size_t > ProcessSingleCallWithInputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, CryptoTransform transformDirection, ReadOnlyMemRegion iv, ara::core::Optional< ReadOnlyMemRegion > authenticatedData) noexcept=0;
SetKey फ़ंक्शन 2

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

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

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

ओवरलोड Start 2
virtual ara::core::Result< void > Start (CryptoTransform transform Direction, ReadOnlyMemRegion iv) noexcept=0; SWS_CRYPT_24715
virtual ara::core::Result< void > Start (CryptoTransform transform Direction) noexcept=0; SWS_CRYPT_50073
UpdateAuthenticatedData फ़ंक्शन

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

virtual ara::core::Result< void > UpdateAuthenticatedData (ReadOnlyMem Region authenticatedData) noexcept=0;
UpdateConfidentialData फ़ंक्शन

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

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

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

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

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

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

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

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

उपयोग

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx की विधि Cancel() एक सक्रिय स्ट्रीमिंग ऑपरेशन को निरस्त करती है, जिसे पहले Start() के माध्यम से शुरू किया गया था और अभी तक पूरा नहीं हुआ था [SWS_CRYPT_50077]। यह फ़ंक्शन हेडर ara/crypto/cryp/auth_cipher_ctx.h के माध्यम से प्रदान किया जाता है और बिना इनपुट पैरामीटर के सिंक्रोनस रूप से काम करता है [SWS_CRYPT_50077]। यह ara::core::Result<void> लौटाता है, जो सफलता के मामले में खाली होता है।

त्रुटि प्रबंधन और सीमा शर्तें

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

संगामिति

ऑपरेशन को noexcept के रूप में घोषित किया गया है और विनिर्देश के अनुसार इसे thread-safe और exception safe दोनों के रूप में वर्गीकृत किया गया है [SWS_CRYPT_50077]।

इंटरैक्शन

Cancel() द्वारा कार्यान्वित निरस्तीकरण पैटर्न मॉड्यूल crypt में मानकीकृत है। एक समान इंटरफ़ेस सिमेंटिक्स और वही त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted संबंधित स्ट्रीमिंग संदर्भों के लिए परिभाषित हैं:

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

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

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन EncryptSingleCallWithOutputIv [SWS_CRYPT_50080] Upstream: RS_CRYPTO_02302

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

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

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

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx की सिंक्रोनस विधि EncryptSingleCallWithOutputIv एकल चरण में प्रमाणित सिफ़रिंग निष्पादित करती है और स्वतंत्र रूप से एक इनिशियलाइज़ेशन वेक्टर उत्पन्न करती है [SWS_CRYPT_50080]। यह dataIn से इनपुट डेटा के साथ-साथ वैकल्पिक अतिरिक्त डेटा authenticatedData को संसाधित करती है और सिफ़रटेक्स्ट को बफ़र dataOut में लिखती है। जनरेट किया गया इनिशियलाइज़ेशन वेक्टर बफ़र ivOut में संग्रहीत किया जाता है, जबकि प्रमाणीकरण टैग tag के माध्यम से आउटपुट किया जाता है [SWS_CRYPT_50080]। ivOut के लिए बफ़र आकार पहले से विधि GetOutputIvSize के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50165]। नाम घटक Encrypt के बावजूद, संभवतः विधि का उपयोग डिक्रिप्शन के लिए भी किया जा सकता है, क्योंकि त्रुटि विशिष्टता स्पष्ट रूप से transformDirection == kDecrypt के लिए व्यवहार को सूचीबद्ध करती है [SWS_CRYPT_50080]। प्रश्न Q-66618567b20f99b9 (खुला)

कॉल के लिए आवश्यक पूर्व-शर्तें और प्रतिबंध लागू होते हैं:

  • संदर्भ को पहले SetKey के साथ सफलतापूर्वक इनिशियलाइज़ किया गया होना चाहिए; अन्यथा kUninitializedContext की सूचना दी जाती है [SWS_CRYPT_50080]।
  • कॉन्फ़िगर किए गए Key-Slot में कुंजी संगत होनी चाहिए और उपयुक्त अनुमति (जैसे kAllowDataEncrypt) होनी चाहिए, अन्यथा kUsageViolation या kIncompatibleObject लौटाया जाता है [SWS_CRYPT_50080]।
  • यदि आउटपुट बफ़र्स dataOut या ivOut पर्याप्त नहीं हैं, तो कॉल kInsufficientCapacity के साथ विफल हो जाती है [SWS_CRYPT_50080]।
  • यदि संदर्भ एकल-चरण प्रोसेसिंग का समर्थन नहीं करता है या इसे बाहरी IV विनिर्देश की आवश्यकता होती है, तो kUnsupported लौटाया जाता है [SWS_CRYPT_50080]।

ऑपरेशन को thread-safe के साथ-साथ अपवाद-सुरक्षित निर्दिष्ट किया गया है और यह त्रुटि की स्थिति में रोलबैक सेमेंटिक्स की गारंटी देता है [SWS_CRYPT_50080]। टैग प्रोसेसिंग के बिना शुद्ध सममित सिफ़रिंग के लिए, SymmetricCipherCtx [SWS_CRYPT_50049] में एक अलग समकक्ष मौजूद है।

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

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

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

Parameter (in)

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

Parameter (out)

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

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

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

Fehler

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

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

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

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

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

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

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

उपयोग और सिमेंटिक्स

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

प्रक्रिया और इंटरैक्शन

कॉल से पहले, डेटा प्रोसेसिंग को अनिवार्य रूप से Start() द्वारा आरंभ किया गया होना चाहिए [SWS_CRYPT_50075]। यदि डेटा ब्लॉक पहले UpdateConfidentialData का उपयोग करके संसाधित किए गए थे, तो कोई एप्लिकेशन डिक्रिप्शन के समय परिणामी प्लेनटेक्स्ट का उपयोग Finish द्वारा सफल प्रमाणीकरण के बाद ही कर सकता है [SWS_CRYPT_50074]। out के लिए अधिकतम आवश्यक बफ़र आकार पहले से ही isFinal = true निर्दिष्ट करते हुए GetRequiredOutputBufferSize के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50081]।

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

विधि थ्रेड-सुरक्षित और अपवाद-सुरक्षित निर्दिष्ट है [SWS_CRYPT_50075]। त्रुटियों की सूचना ara::core::Result के माध्यम से रोलबैक सेमेंटिक्स के साथ दी जाती है [SWS_CRYPT_50075]:

  • ProcessingNotStarted: डेटा प्रोसेसिंग पहले Start() के साथ शुरू नहीं की गई थी [SWS_CRYPT_50075]।
  • ara::crypto::CryptoErrc::kInsufficientCapacity: आउटपुट बफ़र out बहुत छोटा है [SWS_CRYPT_50075]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: in या tag का बफ़र आकार अमान्य है [SWS_CRYPT_50075]।
  • ara::crypto::CryptoErrc::kAuthTagNotValid: डिक्रिप्शन के दौरान डेटा प्रामाणिकता की पुष्टि नहीं की जा सकती है [SWS_CRYPT_50075]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ द्वारा स्ट्रीमिंग प्रोसेसिंग समर्थित नहीं है [SWS_CRYPT_50075]।

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

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

Parameter (in)

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

Parameter (out)

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

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag is written to

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif data processing has not been started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or

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

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

फ़ंक्शन FinishEncrypt [SWS_CRYPT_50076] Upstream: RS_CRYPTO_02302

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

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

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

उपयोग

विधि FinishEncrypt ara::crypto::cryp::AuthCipherCtx में एक प्रमाणीकृत एन्क्रिप्शन ऑपरेशन को सिंक्रोनस रूप से पूरा करती है, प्रमाणीकरण टैग की गणना करती है और ivOut के माध्यम से संदर्भ द्वारा उत्पन्न इनिशियलाइज़ेशन वेक्टर लौटाती है [SWS_CRYPT_50076]। कॉल को थ्रेड-सुरक्षित और साथ ही अपवाद-सुरक्षित (exception safe) निर्दिष्ट किया गया है [SWS_CRYPT_50076]। परिणाम के रूप में, फ़ंक्शन आउटपुट बफर out में वास्तव में लिखे गए बाइट्स की संख्या के साथ एक ara::core::Result<std::size_t> प्रदान करता है, जहां आउटपुट आकार बफर क्षमता से छोटा हो सकता है [SWS_CRYPT_50076]। व्याख्या: यद्यपि नाम एन्क्रिप्शन को इंगित करता है, पैरामीटर tag का विनिर्देश और त्रुटि कोड ara::crypto::CryptoErrc::kAuthTagNotValid यह दर्शाते हैं कि संदर्भ में हस्ताक्षर का उपयोग सममित रूप से डिक्रिप्शन ऑपरेशनों के लिए भी किया जा सकता है। प्रश्न Q-6b924f12c32e0f33 (खुला)

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

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

  • त्रुटि ara::crypto::CryptoErrc::kInsufficientCapacity से बचने के लिए out के लिए अधिकतम आवश्यक क्षमता की गणना पैरामीटर isFinal = true के साथ [SWS_CRYPT_50081] के माध्यम से पहले से की जा सकती है [SWS_CRYPT_50076]।
  • इनपुट डेटा in के लिए न्यूनतम और अधिकतम बफर आकार [SWS_CRYPT_50162] और साथ ही [SWS_CRYPT_50082] द्वारा निर्धारित किया जाता है।
  • ivOut में उत्पन्न इनिशियलाइज़ेशन वेक्टर को प्राप्त करने के लिए आवश्यक बफर आकार [SWS_CRYPT_50165] के माध्यम से क्वेरी किया जा सकता है।

त्रुटि प्रबंधन और सीमा शर्तें

त्रुटि के मामले में, सभी प्रतिक्रियाओं में एक परिभाषित रोलबैक सिमेंटिक्स होता है [SWS_CRYPT_50076]। इनपुट डेटा या प्रमाणीकरण टैग के लिए अमान्य बफर आकारों के मामले में ara::crypto::CryptoErrc::kInvalidInputSize लौटाया जाता है [SWS_CRYPT_50076]। इसके अलावा, फ़ंक्शन ara::crypto::CryptoErrc::kUnsupported लौटाता है यदि स्ट्रीम प्रोसेसिंग समर्थित नहीं है, कोई IV उपयोग नहीं किया जाता है या IV एप्लिकेशन द्वारा पहले से ही प्रारंभ में निर्दिष्ट किया गया था [SWS_CRYPT_50076]।

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

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

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

Parameter (in)

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

Parameter (out)

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

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag is written to

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif data processing has not been started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or if this context does not use an IV or if the IV has been provided by the application in the Start() function

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

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

फ़ंक्शन GetMaxAssociatedDataSize [SWS_CRYPT_20103] Upstream: RS_CRYPTO_02309

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

Get maximum supported size of associated public data.

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20103@rel:R25-11#3ae0a764
Content hash
3ae0a764
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20103
Status: valid/unmigrated Version: rel:R25-11#7d3e4b66 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_20103@rel:R25-11#7d3e4b66
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#91aa2c602026-09-30
  • R20-11rel:R20-11#91749f732026-10-14
  • R21-11rel:R21-11#c88a3b9a2026-10-14
  • R22-11rel:R22-11#e871a6a52026-10-14
  • R23-11rel:R23-11#84dddf6c2026-10-14
  • R24-11rel:R24-11#c2f0c3512026-10-14
  • R25-11rel:R25-11#7d3e4b662026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

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

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

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन GetMaximumInputIvSize [SWS_CRYPT_50164] Upstream: RS_CRYPTO_02309

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

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

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

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

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

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन GetMinimumInputIvSize [SWS_CRYPT_50163] Upstream: RS_CRYPTO_02309

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन GetOutputIvSize [SWS_CRYPT_50165] Upstream: RS_CRYPTO_02309

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

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

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

Rückgabewert

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

Fehler

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

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

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

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

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन GetTagSize [SWS_CRYPT_50161] Upstream: RS_CRYPTO_02309

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

Get the output tag size.

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन ProcessSingleCall [SWS_CRYPT_50078] Upstream: RS_CRYPTO_02302

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

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

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

ara::crypto::cryp::AuthCipherCtx की सिंक्रोनस और थ्रेड-सुरक्षित परिभाषित विधि ProcessSingleCall आरंभीकरण वेक्टर (IV) के बिना एकल ऑपरेशन में पेलोड के एन्क्रिप्शन या डिक्रिप्शन और ऑथेंटिकेशन टैग की एक साथ गणना अथवा सत्यापन को निष्पादित करती है [SWS_CRYPT_50078]। वैकल्पिक बफ़र authenticatedData के माध्यम से अतिरिक्त प्रमाणित डेटा प्रदान किया जा सकता है [SWS_CRYPT_50078]। बफ़र tag डिक्रिप्शन के दौरान सत्यापन के लिए इनपुट के रूप में और एन्क्रिप्शन के दौरान उत्पन्न ऑथेंटिकेशन टैग को संग्रहीत करने के लिए आउटपुट के रूप में कार्य करता है [SWS_CRYPT_50078]। सफल प्रसंस्करण पर, ara::core::Result<std::size_t> वास्तव में dataOut में लिखे गए बाइट्स की संख्या लौटाता है, जो लक्ष्य बफ़र की क्षमता से कम हो सकती है [SWS_CRYPT_50078]।

कॉल करने से पहले, क्रिप्टोग्राफ़िक संदर्भ को SetKey के एक सफल कॉल के माध्यम से इनिशियलाइज़ किया जाना चाहिए; अन्यथा फ़ंक्शन ara::crypto::CryptoErrc::kUninitializedContext के साथ विफल हो जाता है [SWS_CRYPT_50078]। इसके अतिरिक्त, उपयोग की गई कुंजी को अनुरोधित रूपांतरण दिशा के लिए सक्षम होना चाहिए (क्रमशः kAllowDataEncrypt या kAllowDataDecrypt), अन्यथा ara::crypto::CryptoErrc::kUsageViolation की सूचना दी जाती है [SWS_CRYPT_50078]। यदि एकल-चरणीय प्रसंस्करण समर्थित नहीं है या संदर्भ को IV की आवश्यकता है, तो फ़ंक्शन ara::crypto::CryptoErrc::kUnsupported लौटाता है [SWS_CRYPT_50078]। यदि डिक्रिप्शन के दौरान प्रमाणीकरण विफल हो जाता है, तो ara::crypto::CryptoErrc::kAuthTagNotValid ट्रिगर होता है [SWS_CRYPT_50078]। असाइन किए गए कुंजी स्लॉट में त्रुटियों को EmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource या ara::crypto::CryptoErrc::kIncompatibleObject के माध्यम से संकेतित किया जाता है [SWS_CRYPT_50078]।

बफ़र प्रबंधन के लिए, dataOut के लिए आवश्यक अधिकतम आउटपुट आकार की गणना isFinal = true फ़्लैग सेट करके GetRequiredOutputBufferSize के माध्यम से पहले से की जा सकती है [SWS_CRYPT_50081]; बहुत छोटा आउटपुट बफ़र ara::crypto::CryptoErrc::kInsufficientCapacity का कारण बनता है [SWS_CRYPT_50078]। इसके अतिरिक्त, ara::crypto::CryptoErrc::kInvalidInputSize से बचने के लिए dataIn का आकार GetMinimumChunkSize [SWS_CRYPT_50162] और GetMaximumChunkSize [SWS_CRYPT_50082] की सीमाओं के अनुरूप होना चाहिए [SWS_CRYPT_50078]।

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

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

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

Parameter (in)

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

Parameter (out)

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

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन ProcessSingleCallWithInputIv [SWS_CRYPT_50079] Upstream: RS_CRYPTO_02302

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

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

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

वर्ग ara::crypto::cryp::AuthCipherCtx की विधि [SWS_CRYPT_50079] प्रमाणीकरण टैग की एक साथ गणना या सत्यापन के साथ डेटा के एन्क्रिप्शन या डिक्रिप्शन के लिए सिंक्रोनस सिंगल-स्टेप प्रोसेसिंग (Single-Call) निष्पादित करती है।

कॉल के दौरान, इनपुट डेटा dataIn के माध्यम से और दिशा transformDirection के माध्यम से निर्दिष्ट की जाती है। इनिशियलाइज़ेशन वेक्टर को iv के माध्यम से पास किया जाता है, और वैकल्पिक प्रमाणीकरण डेटा authenticatedData के माध्यम से प्रदान किया जा सकता है [SWS_CRYPT_50079]। बफ़र tag एन्क्रिप्शन के मामले में परिकलित टैग के लिए आउटपुट के रूप में और डिक्रिप्शन के मामले में सत्यापन के लिए इनपुट के रूप में कार्य करता है [SWS_CRYPT_50079]। रिटर्न मान ara::core::Result<std::size_t> सफलता पर dataOut में लिखे गए बाइट्स की संख्या प्रदान करता है, जो बफ़र क्षमता से कम हो सकती है [SWS_CRYPT_50079]।

त्रुटि के मामले में, सभी त्रुटि कोड्स में रोलबैक सेमेंटिक्स होते हैं [SWS_CRYPT_50079]:

  • ara::crypto::CryptoErrc::kUninitializedContext: पहले से SetKey के माध्यम से कोई कुंजी कॉन्फ़िगर नहीं की गई थी [SWS_CRYPT_50079]।
  • ara::crypto::CryptoErrc::kUsageViolation: कुंजी के पास आवश्यक अधिकार kAllowDataEncrypt या kAllowDataDecrypt नहीं है [SWS_CRYPT_50079]।
  • ara::crypto::CryptoErrc::kEmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource या ara::crypto::CryptoErrc::kIncompatibleObject: एक कॉन्फ़िगर किया गया KeySlot खाली है, व्यस्त है या इसमें कोई संगत SymmetricKey नहीं है [SWS_CRYPT_50079]।
  • ara::crypto::CryptoErrc::kInvalidInputSize या ara::crypto::CryptoErrc::kInsufficientCapacity: इनपुट, टैग या IV के लिए बफ़र्स अमान्य रूप से आयामयुक्त हैं या dataOut अपर्याप्त क्षमता प्रदान करता है [SWS_CRYPT_50079]।
  • ara::crypto::CryptoErrc::kAuthTagNotValid: डिक्रिप्शन के दौरान प्रमाणीकरण विफल हो जाता है [SWS_CRYPT_50079]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ द्वारा सिंगल-शॉट प्रोसेसिंग समर्थित नहीं है या संदर्भ के लिए IV सेट करने या आउटपुट करने की आवश्यकता होती है [SWS_CRYPT_50079]।

ऑपरेशन को thread-safe और exception safe के रूप में परिभाषित किया गया है [SWS_CRYPT_50079]। iv के लिए अनुमत लंबाइयों को गतिशील रूप से GetMinimumInputIvSize [SWS_CRYPT_50163] और GetMaximumInputIvSize [SWS_CRYPT_50164] के माध्यम से पूछा जा सकता है। SymmetricCipherCtx [SWS_CRYPT_50048] में शुद्ध ब्लॉक सिफ़र की तुलना में, यह इंटरफ़ेस एक ही कॉल में क्रिप्टोग्राफ़िक रूपांतरण और अखंडता जाँच को जोड़ता है।

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

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

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

Parameter (in)

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

Parameter (out)

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

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

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

Fehler

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

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

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

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

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

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

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

विधि SetKey पास की गई सममित कुंजी [SWS_CRYPT_23911] के उपयोग के लिए ara::crypto::cryp::AuthCipherCtx के इंस्टेंस को कॉन्फ़िगर करती है। पैरामीटर के रूप में एक साझा सूचक (shared pointer) key (प्रकार SymmetricKey::Sptr का) पास किया जाता है, जिसका उपयोग प्रमाणित एन्क्रिप्शन या डिक्रिप्शन के लिए किया जाता है [SWS_CRYPT_23911]। कॉल समकालिक रूप से होती है, noexcept के रूप में घोषित की जाती है और एक ara::core::Result<void> लौटाती है [SWS_CRYPT_23911]।

त्रुटि के मामले में, परिणाम को रोलबैक शब्दार्थ के साथ रीसेट कर दिया जाता है और यह विशिष्ट त्रुटि कोड प्रदान करता है [SWS_CRYPT_23911]:

  • ara::crypto::CryptoErrc::kUnsupported: यदि संदर्भ विशेष रूप से केवल एक KeySlot के माध्यम से कॉन्फ़िगरेशन का समर्थन करता है [SWS_CRYPT_23911]।
  • ara::crypto::CryptoErrc::kIncompatibleObject: यदि पास किया गया कुंजी प्रकार वर्तमान संदर्भ के साथ संगत नहीं है [SWS_CRYPT_23911]।
  • ara::crypto::CryptoErrc::kUsageViolation: यदि कुंजी के अनुमत उपयोग फ़्लैग में एन्क्रिप्शन के लिए kAllowDataEncrypt या डिक्रिप्शन के लिए kAllowDataDecrypt शामिल नहीं है [SWS_CRYPT_23911]।

विनिर्देश के अनुसार, इंटरफ़ेस को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) के रूप में वर्गीकृत किया गया है [SWS_CRYPT_23911]। मॉड्यूल संदर्भ के साथ परस्पर क्रिया में, कुंजी संभवतः Start [SWS_CRYPT_24715] के माध्यम से एक नए ट्रांसफ़ॉर्मेशन के आरंभीकरण से पहले सेट की जानी चाहिए। प्रश्न Q-11f7daa370f5d438 (खुला)

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

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

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

Parameter (in)

ParameterBeschreibung
keysymmetric key object used for authenticated en-/decryption

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided SymmetricKey is incompatible with this AuthCipher Ctx
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the provided SymmetricKey does not include kAllowDataEncrypt for encryption, or kAllowDataDecrypt for decryption, respectively

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23911
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23911@rel:R25-11#c5118922
Content hash
c5118922
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23911
Status: valid/unmigrated Version: rel:R25-11#205c09dd Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_23911@rel:R25-11#205c09dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7fa81c372026-09-30
  • R19-11rel:R19-11#fcb0604e2026-10-14
  • R20-11rel:R20-11#43c209ac2026-10-14
  • R21-11rel:R21-11#9babec8c2026-10-14
  • R22-11rel:R22-11#a5a2e9812026-10-14
  • R23-11rel:R23-11#1982ebed2026-10-14
  • R24-11rel:R24-11#3524b4832026-10-14
  • R25-11rel:R25-11#205c09dd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

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

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

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

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx में फ़ंक्शन SetKey क्रिप्टोग्राफ़िक ऑपरेशनों के लिए संदर्भ को इस प्रकार कॉन्फ़िगर करता है कि प्रदान किए गए कुंजी-स्लॉट में संग्रहीत सममित कुंजी का उपयोग प्रमाणीकृत एन्क्रिप्शन या डिक्रिप्शन निष्पादित होते ही किया जाए [SWS_CRYPT_50072]।

उपयोग: सिंक्रोनस कॉल ara/crypto/cryp/auth_cipher_ctx.h के इंटरफ़ेस के माध्यम से की जाती है। पैरामीटर keySlot के रूप में, KeySlot::Sptr का एक इंस्टेंस पास किया जाता है, जो एक सममित कुंजी को समाहित करता है [SWS_CRYPT_50072]। फ़ंक्शन एक ara::core::Result<void> लौटाता है, जो सफलता की पुष्टि करता है या इसमें एक त्रुटि कोड शामिल होता है [SWS_CRYPT_50072]।

त्रुटि प्रबंधन: यदि संदर्भ का विशिष्ट कार्यान्वयन विशेष रूप से SymmetricKey ऑब्जेक्ट के माध्यम से प्रत्यक्ष कॉन्फ़िगरेशन का समर्थन करता है और KeySlot के माध्यम से सेटिंग की पेशकश नहीं करता है, तो कॉल विफल हो जाती है। इस मामले में, रोलबैक सिमेंटिक्स के साथ त्रुटि ara::crypto::CryptoErrc::kUnsupported लौटाई जाती है [SWS_CRYPT_50072]।

समवर्तीता और सीमाएं: फ़ंक्शन को thread-safe और exception safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50072]। इसे समवर्ती रूप से कॉल किया जा सकता है और यह सुनिश्चित करता है कि अपवाद स्थितियों में कोई असंगत स्थिति न रहे।

इंटरेक्शन: एक कार्यात्मक विकल्प के रूप में, प्रत्यक्ष SymmetricKey::Sptr के साथ ओवरलोड SetKey उपलब्ध है [SWS_CRYPT_23911]। सफल कुंजी बाइंडिंग के बाद, संदर्भ को ऑपरेशन दिशा और इनिशियलाइज़ेशन वेक्टर के साथ Start के माध्यम से प्रारंभ किया जाता है [SWS_CRYPT_24715]। KeySlot::Sptr के साथ समरूप हस्ताक्षर MessageAuthnCodeCtx [SWS_CRYPT_50026] और SymmetricKeyWrapperCtx [SWS_CRYPT_50034] में भी मौजूद हैं।

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

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a symmetric key

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a SymmetricKey

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

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

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

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

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

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

विधि Start नए एन्क्रिप्शन या डिक्रिप्शन के लिए संदर्भ ara::crypto::cryp::AuthCipherCtx को आरंभ करती है और उपयोग किए जाने वाले आरंभीकरण वेक्टर (IV) अथवा नॉनस (nonce) मान को सेट करती है [SWS_CRYPT_24715]। पैरामीटर transformDirection के माध्यम से रूपांतरण की दिशा निर्धारित की जाती है, जबकि iv वेक्टर को ReadOnlyMemRegion के रूप में पास करता है [SWS_CRYPT_24715]। अनुमत IV आकार को GetMinimumInputIvSize() तथा GetMaximumInputIvSize() के माध्यम से निर्धारित किया जा सकता है; भिन्न लंबाई होने पर फ़ंक्शन त्रुटि ara::crypto::CryptoErrc::kInvalidInputSize की रिपोर्ट करता है [SWS_CRYPT_24715]।

कॉल करने से पहले SetKey का सफलतापूर्वक निष्पादित होना आवश्यक है, अन्यथा ara::crypto::CryptoErrc::kUninitializedContext लौटाया जाता है [SWS_CRYPT_24715]। एक कॉन्फ़िगर किया गया KeySlot न तो रिक्त (EmptyKeySlot) होना चाहिए और न ही व्यस्त (ara::crypto::CryptoErrc::kBusyResource) होना चाहिए [SWS_CRYPT_24715]। इसके अतिरिक्त, संग्रहीत कुंजी एक उपयुक्त SymmetricKey होनी चाहिए (अन्यथा ara::crypto::CryptoErrc::kIncompatibleObject) और वांछित दिशा के लिए अधिकृत होनी चाहिए (kAllowDataEncrypt अथवा kAllowDataDecrypt, अन्यथा ara::crypto::CryptoErrc::kUsageViolation) [SWS_CRYPT_24715]। यदि स्ट्रीम प्रोसेसिंग या चयनित दिशा में IV सेट करने के लिए समर्थन का अभाव है, तो कॉल ara::crypto::CryptoErrc::kUnsupported के साथ विफल हो जाती है [SWS_CRYPT_24715]। सभी त्रुटियाँ रोलबैक सिमेंटिक्स प्रदर्शित करती हैं [SWS_CRYPT_24715]।

ऑपरेशन को thread-safe तथा exception-safe (noexcept) घोषित किया गया है [SWS_CRYPT_24715]। क्रिप्टोग्राफ़िक प्रक्रियाओं के अंतःक्रिया में, सफल आरंभीकरण के बाद सामान्यतः UpdateAuthenticatedData के माध्यम से अतिरिक्त प्रमाणीकृत डेटा पास किया जाना चाहिए [SWS_CRYPT_20313]। प्रश्न Q-e023e27f1cd24507 (खुला)

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24715
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24715@rel:R25-11#5c808e5f
Content hash
5c808e5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24715
Status: valid/unmigrated Version: rel:R25-11#dacbb482 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_24715@rel:R25-11#dacbb482
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#85d3f6962026-09-30
  • R19-11rel:R19-11#ea0e49642026-10-14
  • R20-11rel:R20-11#e9fc84162026-10-14
  • R21-11rel:R21-11#a59d78ec2026-10-14
  • R22-11rel:R22-11#dca7e5782026-10-14
  • R23-11rel:R23-11#640bb79c2026-10-14
  • R24-11rel:R24-11#f389a1072026-10-14
  • R25-11rel:R25-11#dacbb4822026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

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

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

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

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

उपयोग

वर्ग ara::crypto::cryp::AuthCipherCtx की शुद्ध आभासी (प्योर वर्चुअल) विधि Start आगामी एन्क्रिप्शन या डिक्रिप्शन के लिए संदर्भ को सिंक्रोनस रूप से प्रारंभ करती है [SWS_CRYPT_50073]। पैरामीटर transformDirection के माध्यम से यह निर्दिष्ट किया जाता है कि संदर्भ एन्क्रिप्शन या डिक्रिप्शन के लिए तैयार किया जा रहा है या नहीं। इनिशियलाइज़ेशन वेक्टर (IV) के बिना यह ओवरलोड केवल तभी उपयोग किया जा सकता है जब क्रिप्टोग्राफ़िक संदर्भ चुनी गई ट्रांसफ़ॉर्मेशन दिशा में किसी IV की आवश्यकता न रखता हो या इसे स्वयं निर्धारित करता हो [SWS_CRYPT_50073]। रिटर्न मान सफलता के मामले में एक खाली ara::core::Result<void> या संबंधित त्रुटि कोड होता है।

त्रुटि प्रबंधन और पूर्व-शर्तें

कॉल से पहले, संदर्भ को SetKey के माध्यम से एक कुंजी के साथ सफलतापूर्वक कॉन्फ़िगर किया जाना चाहिए; अन्यथा फ़ंक्शन ara::crypto::CryptoErrc::kUninitializedContext के साथ विफल हो जाता है [SWS_CRYPT_50073]। इसके अतिरिक्त, त्रुटि के मामले में निम्नलिखित रिटर्न मान होते हैं:

  • ara::crypto::CryptoErrc::kUnsupported, यदि स्ट्रीम प्रोसेसिंग संदर्भ द्वारा समर्थित नहीं है या यदि संदर्भ को चुनी गई ट्रांसफ़ॉर्मेशन दिशा में अनिवार्य रूप से एक IV के स्पष्ट विनिर्देश की आवश्यकता है [SWS_CRYPT_50073]।
  • ara::crypto::CryptoErrc::kUsageViolation, यदि कॉल के समय कॉन्फ़िगर किए गए KeySlot में अनुमत कुंजी उपयोग में एन्क्रिप्शन के लिए आवश्यक अनुमति kAllowDataEncrypt या डिक्रिप्शन के लिए kAllowDataDecrypt शामिल नहीं है [SWS_CRYPT_50073]।
  • क्रमशः EmptyKeySlot या ara::crypto::CryptoErrc::kBusyResource, यदि कॉन्फ़िगर किया गया KeySlot वर्तमान में खाली या अवरुद्ध है [SWS_CRYPT_50073]।
  • ara::crypto::CryptoErrc::kIncompatibleObject, यदि कॉन्फ़िगर किए गए KeySlot में कोई SymmetricKey नहीं है या यह कुंजी प्रकार संदर्भ द्वारा समर्थित नहीं है [SWS_CRYPT_50073]।

यदि कोई त्रुटि होती है, तो निर्दिष्ट रोलबैक सिमेंटिक्स (rollback_semantics) लागू होता है [SWS_CRYPT_50073]।

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

फ़ंक्शन को noexcept=0 के साथ घोषित किया गया है, अपवाद सुरक्षा सुनिश्चित करता है और इसे थ्रेड-सुरक्षित डिज़ाइन किया गया है [SWS_CRYPT_50073]। यदि एल्गोरिदम को बाहरी इनिशियलाइज़ेशन वेक्टर के प्रावधान की आवश्यकता होती है, तो इसके बजाय ओवरलोड Start(CryptoTransform, ReadOnlyMemRegion) का उपयोग किया जाना चाहिए [SWS_CRYPT_24715]। सफल आरंभीकरण के बाद, अतिरिक्त प्रमाणीकृत डेटा को प्रमाणीकरण टैग की गणना में UpdateAuthenticatedData के माध्यम से शामिल किया जा सकता है [SWS_CRYPT_20313]।

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

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

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

Parameter (in)

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

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन UpdateAuthenticatedData [SWS_CRYPT_20313] Upstream: RS_CRYPTO_02302

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

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

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

इंटरफ़ेस ara::crypto::cryp::AuthCipherCtx की विधि UpdateAuthenticatedData प्रमाणीकरण टैग की गणना को अतिरिक्त प्रमाणीकृत डेटा (Additional Authenticated Data) के एक अन्य भाग के साथ क्रमिक रूप से अपडेट करने का कार्य करती है [SWS_CRYPT_20313]। पैरामीटर authenticatedData के माध्यम से संबंधित बफ़र को ReadOnlyMemRegion के रूप में पास किया जाता है [SWS_CRYPT_20313]।

कॉल संदर्भ और कनकंरेंसी के संबंध में, ऑपरेशन को thread-safe और exception safe के रूप में परिभाषित किया गया है [SWS_CRYPT_20313]। कॉल के लिए सख्त अनुक्रम शर्तें लागू होती हैं:

  • रूपांतरण पहले विधि Start() के माध्यम से आरंभ किया गया होना चाहिए, अन्यथा ara::crypto::CryptoErrc::kProcessingNotStarted की सूचना दी जाती है [SWS_CRYPT_20313]।
  • यदि UpdateConfidentialData पहले ही निष्पादित हो चुका है, तो फ़ंक्शन को फिर से कॉल नहीं किया जाना चाहिए; गैर-अनुपालन की स्थिति में त्रुटि ara::crypto::CryptoErrc::kInvalidUsageOrder लौटाई जाती है [SWS_CRYPT_20313]।

रिटर्न मान के रूप में, फ़ंक्शन एक ara::core::Result<void> प्रदान करता है, जो सफलता की स्थिति में खाली होता है या उत्पन्न हुए त्रुटि कोड को समाहित करता है [SWS_CRYPT_20313]। सभी त्रुटियों में रोलबैक सिमेंटिक्स होते हैं [SWS_CRYPT_20313]:

  • ara::crypto::CryptoErrc::kInvalidInputSize: पास किए गए इनपुट बफ़र का आकार अमान्य है [SWS_CRYPT_20313]।
  • ara::crypto::CryptoErrc::kUnsupported: वर्तमान संदर्भ द्वारा स्ट्रीम प्रोसेसिंग समर्थित नहीं है [SWS_CRYPT_20313]।

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

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

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

Parameter (in)

ParameterBeschreibung
authenticatedDataa part of the additional authenticated data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the processing was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidUsageOrderrollback_semantics if UpdateConfidentialData has already been called
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20313@rel:R25-11#920b5a0f
Content hash
920b5a0f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20313
Status: valid/unmigrated Version: rel:R25-11#fcb70f91 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_20313@rel:R25-11#fcb70f91
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e6b736912026-09-30
  • R19-11rel:R19-11#f75b41ea2026-10-14
  • R20-11rel:R20-11#4c46c8f42026-10-14
  • R21-11rel:R21-11#50979c0c2026-10-14
  • R22-11rel:R22-11#f4a00d3a2026-10-14
  • R23-11rel:R23-11#a528f60f2026-10-14
  • R24-11rel:R24-11#7dfc69482026-10-14
  • R25-11rel:R25-11#fcb70f912026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन UpdateConfidentialData [SWS_CRYPT_50074] Upstream: RS_CRYPTO_02302

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

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

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

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

प्रक्रिया और समवर्तीता (concurrency) के संबंध में निम्नलिखित शर्तें लागू होती हैं:

  • निष्पादन क्रम और अखंडता: प्रसंस्करण से पहले, प्रक्रिया को Start() के माध्यम से आरंभ किया जाना चाहिए [SWS_CRYPT_50074]। यदि इस विधि का उपयोग डिक्रिप्शन के लिए किया जाता है, तो प्लेनटेक्स्ट बिना किसी पूर्व प्रामाणिकता सत्यापन के आउटपुट किया जाता है; एप्लिकेशन को Finish() के माध्यम से अंतिम सत्यापन से पहले इस डेटा का किसी भी स्थिति में उपयोग नहीं करना चाहिए [SWS_CRYPT_50074]। अतिरिक्त प्रमाणित डेटा को समानांतर में UpdateAuthenticatedData के माध्यम से टैग गणना में शामिल किया जा सकता है [SWS_CRYPT_20313]।
  • थ्रेड- और अपवाद-सुरक्षा: ऑपरेशन को थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception-safe) घोषित किया गया है और यह कोई अपवाद नहीं फेंकता है (noexcept) [SWS_CRYPT_50074]।

यदि प्रसंस्करण विफल रहता है, तो ara::core::Result में एक संगत त्रुटि कोड लौटाते हुए रोलबैक सिमेंटिक्स लागू होता है [SWS_CRYPT_50074]:

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

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

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

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

Parameter (in)

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

Parameter (out)

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

Rückgabewert

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

Fehler

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

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

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

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

टाइप उपनाम Sptr [SWS_CRYPT_20101] Upstream: RS_CRYPTO_02207

using Sptr = std::shared_ptr<AuthCipherCtx>;

Smart pointer of the interface.

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20101@rel:R25-11#b4ad02c7
Content hash
b4ad02c7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20101
Status: valid/unmigrated Version: rel:R25-11#56d76308 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_CRYPT_20101@rel:R25-11#56d76308
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6cded4ce2026-09-30
  • R19-11rel:R19-11#d499b7852026-10-14
  • R20-11rel:R20-11#38ae99fd2026-10-14
  • R21-11rel:R21-11#15df77a52026-10-14
  • R22-11rel:R22-11#22ad2b2d2026-10-14
  • R23-11rel:R23-11#d20afa502026-10-14
  • R24-11rel:R24-11#d20afa502026-10-14
  • R25-11rel:R25-11#56d763082026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill