DEENESPTFRRUARHIKOZHNL

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

[SWS_CRYPT_21100] Upstream: RS_CRYPTO_02205

class HashFunctionCtx :           public CryptoContext {...};

Hash function interface.

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

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

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

निरंतर डेटा स्ट्रीम या अलग-अलग मेमोरी ब्लॉक पर क्रिप्टोग्राफ़िक हैश मानों की गणना करता है।

क्लास ara::crypto::cryp::HashFunctionCtx मेमोरी ब्लॉक और डेटा स्ट्रीम पर क्रिप्टोग्राफ़िक हैश मानों की गणना के लिए इंटरफ़ेस प्रदान करती है ([SWS_CRYPT_50060])। स्ट्रीमिंग ऑपरेशनों के लिए Start() द्वारा आरंभीकरण, Update() के माध्यम से चरणबद्ध डेटा पासिंग, Finish() द्वारा फ़ाइनलाइज़ेशन और बाद में GetDigest() ([SWS_CRYPT_21116]) के माध्यम से पढ़ने से युक्त प्रसंस्करण चक्र का अनुपालन आवश्यक है। सभी विधियों को थ्रेड-सुरक्षित निर्दिष्ट किया गया है, वे रोलबैक सिमेंटिक्स की गारंटी देती हैं और परिणाम ऑब्जेक्ट्स के माध्यम से अनुक्रम या बफर त्रुटियों की नियतात्मक रूप से रिपोर्ट करती हैं।

संदर्भ

क्लास ara::crypto::cryp::HashFunctionCtx AUTOSAR Adaptive Platform के मॉड्यूल crypto में क्रिप्टोग्राफ़िक हैश मानों और चेकसम की गणना के लिए इंटरफ़ेस को परिभाषित करती है। CryptoContext के विशेषज्ञता के रूप में, यह स्टेटलेस एकल कॉलों के साथ-साथ स्टेटफुल स्ट्रीमिंग प्रक्रियाओं के लिए विधियाँ प्रदान करती है। जीवनचक्र और स्वामित्व प्रबंधन आमतौर पर स्मार्ट-पॉइंटर प्रकार के उपनाम Sptr ([SWS_CRYPT_21101]) के माध्यम से किया जाता है, जिसे std::shared_ptr<HashFunctionCtx> के रूप में परिभाषित किया गया है।

आवश्यक इंटरैक्शन भागीदारों में शामिल हैं:

  • कॉल करने वाला एप्लिकेशन: गणना के जीवनचक्र को नियंत्रित करता है और इनपुट डेटा को ब्लॉकवार या संपूर्ण संदेश के रूप में पास करता है।
  • मेमोरी क्षेत्र: इनपुट डेटा, आरंभीकरण वैक्टर (IV) तथा आउटपुट और स्थिति बफ़र्स को ReadOnlyMemRegion और ReadWriteMemRegion के माध्यम से स्थानांतरित किया जाता है।
  • कुंजी ऑब्जेक्ट्स: CryptoObject::Sptr के माध्यम से, क्रिप्टोग्राफ़िक कुंजियों को सीधे हैश गणना में डेटा स्रोत के रूप में शामिल किया जा सकता है ([SWS_CRYPT_50057])।
  • Crypto Provider: व्याख्या: HashFunctionCtx के इंस्टेंस आमतौर पर किसी संबंधित Crypto Provider के माध्यम से बनाए जा सकते हैं; निर्यात की गई संदर्भ स्थितियों के आदान-प्रदान के लिए अनिवार्य रूप से वही Crypto Provider और वही एल्गोरिदम ID होना आवश्यक है ([SWS_CRYPT_50065])। प्रश्न Q-8365d4bee96bbf67 (खुला)

जीवनचक्र

HashFunctionCtx का एक इंस्टेंस स्ट्रीमिंग प्रसंस्करण के दौरान कई असतत स्थितियों से होकर गुजरता है:

hash_states Bereit Bereit InVerarbeitung InVerarbeitung Bereit->InVerarbeitung Start() / Start(iv) Bereit->InVerarbeitung ImportContextState() InVerarbeitung->Bereit Cancel() / Start() InVerarbeitung->InVerarbeitung Update() / GetIntermediateDigest() Abgeschlossen Abgeschlossen InVerarbeitung->Abgeschlossen Finish() Unterbrochen Unterbrochen InVerarbeitung->Unterbrochen ExportContextState() Abgeschlossen->Bereit Start()

स्थिति आरेख: आरंभीकरण, प्रसंस्करण और समापन के समय हैश संदर्भ के स्थिति संक्रमण। स्रोत: [SWS_CRYPT_50152], [SWS_CRYPT_50153], [SWS_CRYPT_21113], [SWS_CRYPT_50058], [SWS_CRYPT_21115], [SWS_CRYPT_50064], [SWS_CRYPT_50065]

निर्माण के बाद संदर्भ अप्रारंभित स्थिति में होता है। बिना IV के Start() ([SWS_CRYPT_50152]) या आरंभीकरण वेक्टर के साथ Start(iv) ([SWS_CRYPT_50153]) को कॉल करके, संदर्भ सक्रिय प्रसंस्करण चरण में स्थानांतरित हो जाता है। पहले से चल रही गणनाएं एक नए स्टार्ट कॉल द्वारा अंतर्निहित रूप से खारिज कर दी जाती हैं।

प्रसंस्करण स्थिति में, रॉ आंशिक डेटा ([SWS_CRYPT_21113]) या कुंजियों ([SWS_CRYPT_50057]) के साथ Update() के बार-बार कॉल के माध्यम से इनपुट डेटा संचित किया जाता है। संदर्भ को समाप्त किए बिना या डेटा स्ट्रीम को बाधित किए बिना GetIntermediateDigest() के माध्यम से एक मध्यवर्ती परिणाम की गणना की जा सकती है ([SWS_CRYPT_50059])। एक चल रहे स्ट्रीमिंग ऑपरेशन को Cancel() का उपयोग करके किसी भी समय निरस्त किया जा सकता है ([SWS_CRYPT_50058]), जिससे संदर्भ अप्रारंभित स्थिति में वापस आ जाता है।

Finish() को कॉल करने से संदर्भ "समाप्त" स्थिति में स्थानांतरित हो जाता है ([SWS_CRYPT_21115])। केवल इसी स्थिति में परिणामी हैश मान को GetDigest() ([SWS_CRYPT_21116]) के माध्यम से निकाला जा सकता है या Compare() ([SWS_CRYPT_50154]) के माध्यम से सीधे किसी अपेक्षित मान के विरुद्ध जाँचा जा सकता है।

गणनाओं को रोकने और बाद में फिर से शुरू करने के लिए, आवश्यक बफ़र आकार को GetContextStateSize() ([SWS_CRYPT_50063]) का उपयोग करके पूछा जा सकता है और आंतरिक स्थिति को ExportContextState() ([SWS_CRYPT_50064]) के माध्यम से सहेजा जा सकता है। पुनर्प्रारंभ ImportContextState() ([SWS_CRYPT_50065]) के माध्यम से किया जाता है। सभी इंटरफ़ेस विधियों को अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है।

उपयोग पथ

क्लास दो प्रसंस्करण मोड का समर्थन करती है: प्रत्यक्ष एकल-चरण गणना और खंडित स्ट्रीमिंग प्रसंस्करण।

एकल-चरण गणना CalculateHashDigest() ([SWS_CRYPT_50060]) के माध्यम से की जाती है। इसमें इनपुट डेटा, एक वैकल्पिक IV और लक्ष्य मेमोरी क्षेत्र पास किया जाता है और हैश मान की गणना एक परमाणु ऑपरेशन में की जाती है।

बड़ी मात्रा में डेटा या निरंतर डेटा स्ट्रीम के लिए स्ट्रीमिंग पथ का उपयोग किया जाता है:

किसी हैश मान का स्ट्रीमिंग प्रसंस्करणएप्लिकेशनHashFunctionCtxStart()Result<void>loopप्रत्येक डेटा ब्लॉक के लिएUpdate(data)Result<void>Finish()Result<void>GetDigest(digest)Result<std::size_t>

अनुक्रम आरेख: Start, Update, Finish और GetDigest के माध्यम से स्ट्रीमिंग गणना का विशिष्ट प्रवाह। स्रोत: [SWS_CRYPT_50152], [SWS_CRYPT_21113], [SWS_CRYPT_21115], [SWS_CRYPT_21116]

  1. क्षमता जाँच: GetDigestSize() ([SWS_CRYPT_50061]) के माध्यम से आउटपुट आकार और GetMaximumChunkSize() ([SWS_CRYPT_50062]) के माध्यम से अधिकतम ब्लॉक आकार के बारे में पूछताछ।
  2. आरंभीकरण: Start() ([SWS_CRYPT_50152]) या Start(iv) ([SWS_CRYPT_50153]) को कॉल करके संदर्भ की तैयारी।
  3. डेटा स्थानांतरण: Update(data) ([SWS_CRYPT_21113]) के माध्यम से डेटा ब्लॉकों या Update(key) ([SWS_CRYPT_50057]) के माध्यम से कुंजियों का क्रमिक स्थानांतरण।
  4. फ़ाइनलाइज़ेशन: Finish() ([SWS_CRYPT_21115]) द्वारा हैश मान संचय को समाप्त करना।
  5. परिणाम मूल्यांकन: GetDigest() ([SWS_CRYPT_21116]) का उपयोग करके परिकलित हैश मान को पढ़ना या Compare() ([SWS_CRYPT_50154]) के माध्यम से किसी संदर्भ मान के साथ इन-प्लेस तुलना करना।

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

HashFunctionCtx की विधियाँ ara::core::Result के माध्यम से त्रुटियों का संकेत देती हैं और त्रुटियों के मामले में रोलबैक सिमेंटिक्स की गारंटी देती हैं। विशिष्ट त्रुटि कारण हैं:

  • अनुक्रम उल्लंघन:\nयदि पूर्व सफल Start() कॉल के बिना Update() ([SWS_CRYPT_21113], [SWS_CRYPT_50057]) या Cancel() ([SWS_CRYPT_50058]) को कॉल किया जाता है, तो CryptoErrc::kProcessingNotStarted लौटाया जाता है।\nयदि पूर्व आरंभीकरण के बिना Finish() ([SWS_CRYPT_21115]) या GetIntermediateDigest() ([SWS_CRYPT_50059]) को कॉल किया जाता है, तो संदर्भ CryptoErrc::kInvalidUsageOrder की रिपोर्ट करता है।\nFinish() के निष्पादन से पहले GetDigest() ([SWS_CRYPT_21116]) या Compare() ([SWS_CRYPT_50154]) के माध्यम से परिणामों को प्राप्त करना CryptoErrc::kProcessingNotFinished के साथ विफल हो जाता है।
  • बफ़र और आकार संबंधी समस्याएँ:\nयदि आउटपुट बफ़र अपर्याप्त है, तो CalculateHashDigest() ([SWS_CRYPT_50060]), GetDigest() ([SWS_CRYPT_21116]), GetIntermediateDigest() ([SWS_CRYPT_50059]) और ExportContextState() ([SWS_CRYPT_50064]) त्रुटि CryptoErrc::kInsufficientCapacity लौटाते हैं।\nअसमर्थित इनपुट या IV लंबाई के कारण CalculateHashDigest(), Start(iv) ([SWS_CRYPT_50153]) और Update() में CryptoErrc::kInvalidInputSize होता है।
  • असंगतता और अनुपलब्ध फ़ंक्शन समर्थन:\nCryptoErrc::kUnsupported यह संकेत देता है कि एकल कॉल समर्थित नहीं हैं ([SWS_CRYPT_50060]), IV की उपस्थिति हैश फ़ंक्शन से मेल नहीं खाती है ([SWS_CRYPT_50152], [SWS_CRYPT_50153]), मध्यवर्ती परिणाम प्रदान नहीं किए जाते हैं ([SWS_CRYPT_50059]), संदर्भ निर्यात/आयात समर्थित नहीं है ([SWS_CRYPT_50063], [SWS_CRYPT_50064], [SWS_CRYPT_50065]) या कुंजियों का हैशिंग अनुमत नहीं है ([SWS_CRYPT_50057])।
  • ऑब्जेक्ट सत्यापन और अनुमतियाँ:\nUpdate(key) के माध्यम से कुंजी स्थानांतरण के मामले में, एक असंगत कुंजी CryptoErrc::kIncompatibleObject की ओर ले जाती है और kAllowHashCalculation के लिए अनुमति का अभाव CryptoErrc::kUsageViolation ([SWS_CRYPT_50057]) की ओर ले जाता है।\nImportContextState() पर अमान्य बफ़र सामग्री CryptoErrc::kInvalidArgument ([SWS_CRYPT_50065]) उत्पन्न करती है।
  • संसाधन की कमी:\nयदि कोई आवश्यक क्रिप्टो संसाधन व्यस्त है, तो Start() इस प्रयास को CryptoErrc::kBusyResource ([SWS_CRYPT_50152], [SWS_CRYPT_50153]) के साथ स्वीकार करता है।

यह मार्गदर्शिका AUTOSAR Adaptive Platform R25-11 विनिर्देश पर आधारित है।

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

क्लास आरेख

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

G nara__crypto__cryp__HashFunctionCtx412 HashFunctionCtx + CalculateHashDigest() + Cancel() + Compare() + ExportContextState() + Finish() + GetContextStateSize() + GetDigest() + GetDigestSize() + GetIntermediateDigest() + GetMaximumChunkSize() + ImportContextState() + Start() + Update() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__HashFunctionCtx412->nara__crypto__cryp__CryptoContext85

विवरण दृश्य

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

मेथड

CalculateHashDigest फ़ंक्शन

Calculate the hash digest and write the the calculated digest into the provided output buffer.

virtual ara::core::Result< std::size_t > CalculateHashDigest (ReadOnly MemRegion data, ReadWriteMemRegion digest, ara::core::Optional< Read OnlyMemRegion > iv) const noexcept=0;
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;
Compare फ़ंक्शन

Compare the size and content of the calculated digest against an expected value.

virtual ara::core::Result< bool > Compare (ReadOnlyMemRegion expected) const noexcept=0;
ExportContextState फ़ंक्शन

Write the current state of this hash context into the provided output buffer contextState. This function can be used to suspend an ongoing hash operation and resume it at a later point in time.

virtual ara::core::Result< void > ExportContextState (ReadWriteMem Region contextState) const noexcept=0;
Finish फ़ंक्शन

Finish the digest calculation.

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

Get the buffer size required to store the state of this context using ExportContextState()

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

Write the calculated hash digest into the provided output buffer.

virtual ara::core::Result< std::size_t > GetDigest (ReadWriteMemRegion digest) const noexcept=0;
GetDigestSize फ़ंक्शन

Get the output digest size.

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

Calculate the hash digest with the data provided to the hash context and write the calculated hash digest into the provided output buffer. The hash digest is equal to the hash digest returned when calling Finish() and GetDigest(), however, after calling GetIntermediateDigest(), this context can still be updated with additional data.

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

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

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

Set the current state of this hash context to the state provided by contextState. This function can be used to resume a previously suspended hash operation. The contextState must have been exported from a HashFunctionCtx with the same AlgorithmId provided by the same Crypto Provider as the current context using the function ExportContextState(). The current state of this context (e.g., any ongoing hash calculation) will be replaced by the state provided to this function.

virtual ara::core::Result< void > ImportContextState (ReadOnlyMem Region contextState) noexcept=0;
Start फ़ंक्शन 2

Initialize the context for processing of a hash digest without an IV. Will cancel any ongoing hash calculation.

ओवरलोड Start 2
virtual ara::core::Result< void > Start () noexcept=0; SWS_CRYPT_50152
virtual ara::core::Result< void > Start (ReadOnlyMemRegion iv) noexcept=0; SWS_CRYPT_50153
Update फ़ंक्शन 2

Update the digest calculation context by a new part of the message.

ओवरलोड Update 2
virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0; SWS_CRYPT_21113
virtual ara::core::Result< void > Update (CryptoObject::Sptr key) noexcept=0; SWS_CRYPT_50057

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

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

फ़ंक्शन CalculateHashDigest [SWS_CRYPT_50060] Upstream: RS_CRYPTO_02205

virtual ara::core::Result< std::size_t > CalculateHashDigest (ReadOnly MemRegion data, ReadWriteMemRegion digest, ara::core::Optional< Read OnlyMemRegion > iv) const noexcept=0;

Calculate the hash digest and write the the calculated digest into the provided output buffer.

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

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

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

यदि गणना विफल हो जाती है, तो इंटरफ़ेस रोलबैक सेमांटिक्स [SWS_CRYPT_50060] की गारंटी देता है। परिणाम में निम्नलिखित त्रुटि कोड शामिल हो सकते हैं:

  • ara::crypto::CryptoErrc::kInvalidInputSize: पास किए गए डेटा या इनिशियलाइज़ेशन वेक्टर का आकार समर्थित नहीं है [SWS_CRYPT_50060]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ द्वारा सिंगल-कॉल गणना समर्थित नहीं है, या इनिशियलाइज़ेशन वेक्टर का पास किया जाना संदर्भ के कॉन्फ़िगरेशन से मेल नहीं खाता है (IV आवश्यक है, लेकिन गायब है, या IV पास किया गया है, हालांकि समर्थित नहीं है) [SWS_CRYPT_50060]।
  • ara::crypto::CryptoErrc::kInsufficientCapacity: आउटपुट बफ़र digest की क्षमता परिकलित डाइजेस्ट के लिए पर्याप्त नहीं है [SWS_CRYPT_50060]।

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

फ़ंक्शन को अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है [SWS_CRYPT_50060]। अमान्य इनपुट लंबाई से संबंधित त्रुटियों से पहले से बचने के लिए, एकल कॉल के लिए संदर्भ के अधिकतम अनुमत बफ़र आकार को GetMaximumChunkSize के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50062]।

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

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

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

Parameter (in)

ParameterBeschreibung
datathe input message that should be processed
ivan optional initialization vector

Parameter (out)

ParameterBeschreibung
digestan output data buffer that the digest will be written into.

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the digest or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data or IV is not supported
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call operation is not supported, or if the context requires setting an IV but no IV is provided, or if the context does not support setting an IV but an IV is provided
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50060
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50060@rel:R25-11#2856892b
Content hash
2856892b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50060
Status: valid/unmigrated Version: rel:R25-11#29fd4c6d 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_50060@rel:R25-11#29fd4c6d
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

फ़ंक्शन Cancel [SWS_CRYPT_50058] 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 · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 5c8d759c011a उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

उपयोग

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

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

यदि निष्पादन के दौरान कोई समस्या आती है, तो लौटाए गए ara::core::Result में संबंधित त्रुटि मान शामिल होता है [SWS_CRYPT_50058]। यदि Cancel() के कॉल से पहले प्रसंस्करण Start() द्वारा आरंभ नहीं किया गया था, तो निरस्तीकरण विफल हो जाता है और रोलबैक सिमेंटिक्स के साथ विशिष्ट त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted लौटाता है [SWS_CRYPT_50058]।

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

इंटरफ़ेस को thread-safe और exception safe के रूप में परिभाषित किया गया है और noexcept के साथ घोषित किया गया है [SWS_CRYPT_50058]। एक अनिवार्य कार्यात्मक पूर्व-शर्त यह है कि डेटा प्रसंस्करण एक सक्रिय स्थिति में होना चाहिए, जो पिछले Start() कॉल द्वारा उत्पन्न की गई थी [SWS_CRYPT_50058]।

इंटरैक्शन

Cancel() द्वारा कार्यान्वित पैटर्न क्रिप्टो स्टैक के विभिन्न स्ट्रीमिंग संदर्भों में मानकीकृत है। VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SignerPrivateCtx [SWS_CRYPT_50041], SymmetricCipherCtx [SWS_CRYPT_50046], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] और EncryptorPublicCtx [SWS_CRYPT_50089] संदर्भ भी सटीक रूप से मेल खाने वाले सिमेंटिक्स और त्रुटि संकेतन प्रदर्शित करते हैं।

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

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

Header-Datei#include "ara/crypto/cryp/hash_function_ctx.h"
Scopeclass ara::crypto::cryp::HashFunctionCtx
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_50058
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50058@rel:R25-11#1c0ebc61
Content hash
1c0ebc61
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50058
Status: valid/unmigrated Version: rel:R25-11#69ced25c 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_50058@rel:R25-11#69ced25c
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

फ़ंक्शन Compare [SWS_CRYPT_50154] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< bool > Compare (ReadOnlyMemRegion expected) const noexcept=0;

Compare the size and content of the calculated digest against an expected value.

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

क्लास ara::crypto::cryp::HashFunctionCtx ([SWS_CRYPT_50154]) की मेथड Compare पहले से परिकलित हैश डाइजेस्ट के आकार और सामग्री की अपेक्षित संदर्भ मान के साथ सिंक्रोनस रूप से तुलना करती है। अपेक्षित मान ReadOnlyMemRegion प्रकार के पैरामीटर expected के माध्यम से पास किया जाता है। सफलता के मामले में, फ़ंक्शन एक ara::core::Result<bool> लौटाता है, जिसमें केवल और केवल तभी true शामिल होता है जब अपेक्षित बाइट अनुक्रम परिकलित डाइजेस्ट के समान हो।

कॉल के लिए पूर्वापेक्षा यह है कि डाइजेस्ट की गणना पहले मेथड Finish() के साथ पूरी कर ली गई हो। यदि ऐसा नहीं है, तो कॉल विफल हो जाती है और रोलबैक सिमेंटिक्स ([SWS_CRYPT_50154]) के साथ त्रुटि ara::crypto::CryptoErrc::kProcessingNotFinished लौटाती है। व्याख्या: expected की भिन्न लंबाई या असमान सामग्री संभवतः किसी त्रुटि कोड की ओर नहीं ले जाती है, बल्कि परिणाम ऑब्जेक्ट में एक नियमित false की ओर ले जाती है। प्रश्न Q-fdd0ecaec22f6985 (खुला)

समवर्तीता के संबंध में, मेथड को thread-safe और exception safe के रूप में निर्दिष्ट किया गया है ([SWS_CRYPT_50154])। noexcept के रूप में घोषित होने के कारण यह कोई C++ अपवाद नहीं फेंकती है।

संबंधित क्रिप्टोग्राफ़िक संदर्भों में समान सत्यापन पैटर्न का उपयोग किया जाता है: Message Authentication Codes के लिए ara::crypto::cryp::MessageAuthnCodeCtx::Compare ([SWS_CRYPT_50133]) परिकलित MAC मान के आकार और सामग्री की तुलना करता है, जबकि CompareSubspan ([SWS_CRYPT_50028]) सबसे महत्वपूर्ण बिट्स की जाँच करता है। दोनों मेथड समान रूप से पहले से पूर्ण की गई गणना की आवश्यकता रखती हैं।

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

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

Parameter (in)

ParameterBeschreibung
expectedthe memory region containing an expected digest value

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the expected byte sequence is identical to the calculated digest

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotFinishedrollback_semantics if the digest calculation was not finished by a call of the Finish() method

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

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

फ़ंक्शन ExportContextState [SWS_CRYPT_50064] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< void > ExportContextState (ReadWriteMem Region contextState) const noexcept=0;

Write the current state of this hash context into the provided output buffer contextState. This function can be used to suspend an ongoing hash operation and resume it at a later point in time.

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

क्लास ara::crypto::cryp::HashFunctionCtx की विधि [SWS_CRYPT_50064] एक हैश संदर्भ की वर्तमान स्थिति को प्रकार ReadWriteMem Region के पास किए गए आउटपुट बफ़र contextState में समकालिक रूप से लिखती है। यह अनुप्रयोगों को चल रहे क्रिप्टोग्राफ़िक हैश ऑपरेशन को बाधित करने और बाद के समय में इसे फिर से शुरू करने में सक्षम बनाता है। सफल निष्पादन पर, कॉल एक खाली ara::core::Result<void> लौटाता है।

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

मेमोरी त्रुटियों से बचने के लिए, आवश्यक बफर आकार (बाइट्स में) फ़ंक्शन [SWS_CRYPT_50063] के माध्यम से पहले से क्वेरी किया जाना चाहिए। निर्यात की गई स्थिति को बाद में [SWS_CRYPT_50065] का उपयोग करके फिर से हैश संदर्भ में आयात किया जा सकता है। इसके लिए पूर्वापेक्षा यह है कि लक्ष्य संदर्भ में समान AlgorithmId हो और यह उसी Crypto Provider द्वारा प्रदान किया गया हो जिससे मूल संदर्भ प्रदान किया गया है। आयात के समय, कोई भी मौजूदा गणना स्थिति पूरी तरह से अधिलेखित (ओवरराइट) हो जाती है।

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

यदि ऑपरेशन विफल हो जाता है, तो ara::core::Result में एक त्रुटि लौटाई जाती है। ara::crypto::CryptoErrc से निम्नलिखित त्रुटि कोड निर्दिष्ट हैं:

  • ara::crypto::CryptoErrc::kUnsupported: विशिष्ट संदर्भ स्थितियों के निर्यात या आयात का समर्थन नहीं करता है।
  • ara::crypto::CryptoErrc::kInsufficientCapacity: स्थिति को समाहित करने के लिए पास किए गए बफर contextState की क्षमता पर्याप्त नहीं है।

दोनों त्रुटि मामलों के लिए रोलबैक सिमेंटिक्स परिभाषित है, ताकि ऑब्जेक्ट की स्थिति अपरिवर्तित रहे।

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

इंटरफ़ेस को const और noexcept के रूप में घोषित किया गया है। विनिर्देश के अनुसार, यह कॉल थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception-safe) दोनों है।

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

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

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

Parameter (out)

ParameterBeschreibung
contextStatean output data buffer that the state of the context will be written into.

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this context does not support im-/exporting the context state
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50064
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50064@rel:R25-11#d81c61fc
Content hash
d81c61fc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50064
Status: valid/unmigrated Version: rel:R25-11#10cf645c 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_50064@rel:R25-11#10cf645c
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_21115] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02205

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

Finish the digest calculation.

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

उपयोग

सिंक्रोनस मेथड Finish(), ara::crypto::cryp::HashFunctionCtx [SWS_CRYPT_21115] में हैश मान की गणना को पूरा करती है। पैरामीटर रहित कॉल एक ara::core::Result<void> लौटाता है, जो सफल समापन का संकेत देता है या किसी एरर को एनकैप्सुलेट करता है [SWS_CRYPT_21115]। इंटरफ़ेस को noexcept के रूप में घोषित किया गया है और एक्सेप्शन-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_21115]।

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

यदि हैश गणना कॉल से पहले सफलतापूर्वक शुरू नहीं की गई थी, तो मेथड एरर ara::crypto::CryptoErrc::kInvalidUsageOrder के साथ विफल हो जाती है [SWS_CRYPT_21115]। इस एरर स्थिति के लिए रोलबैक सिमेंटिक्स परिभाषित किए गए हैं, ताकि कॉल करने वालों को फ़ाइनलाइज़ेशन से पहले ठीक से शुरू किए गए संदर्भ पर ध्यान देना अनिवार्य हो [SWS_CRYPT_21115]।

इंटरैक्शन

Finish() के सफल कॉल के बाद, गणना किए गए हैश डाइजेस्ट को आमतौर पर GetDigest() के साथ एक प्रदान किए गए बफ़र में स्थानांतरित किया जाता है [SWS_CRYPT_21116], [SWS_CRYPT_50059]। अंतर करने के लिए GetIntermediateDigest() कार्य करता है: यह फंक्शन Finish() और GetDigest() के क्रम के समान ही हैश मान देता है, लेकिन इसके बाद आगे का डेटा पास करने की अनुमति देता है [SWS_CRYPT_50059]। Interpretation: Finish() को कॉल करने के बाद, गणना पूरी तरह से समाप्त हो जानी चाहिए और संदर्भ को कोई अतिरिक्त डेटा स्वीकार नहीं करना चाहिए। प्रश्न Q-f4daf29364f45fd5 (खुला) संदर्भ में प्रोसेसिंग चरणों के लिए अनुमेय बफ़र आकार GetMaximumChunkSize() के माध्यम से पूछे जा सकते हैं [SWS_CRYPT_50062]।

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidUsageOrderrollback_semantics the hash calculation has not been started successfully.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21115@rel:R25-11#9d7e9f0c
Content hash
9d7e9f0c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21115
Status: valid/unmigrated Version: rel:R25-11#03ec3455 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_21115@rel:R25-11#03ec3455
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#5c49c1122026-09-30
  • R20-11rel:R20-11#23a4ded62026-10-14
  • R21-11rel:R21-11#33ec9dc92026-10-14
  • R22-11rel:R22-11#13315a192026-10-14
  • R23-11rel:R23-11#6b14e99d2026-10-14
  • R24-11rel:R24-11#de528ef72026-10-14
  • R25-11rel:R25-11#03ec34552026-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

फ़ंक्शन GetContextStateSize [SWS_CRYPT_50063] Upstream: RS_CRYPTO_02309

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

Get the buffer size required to store the state of this context using ExportContextState()

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing required context state buffer size in bytes or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this context does not support im-/exporting the context state

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

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

फ़ंक्शन GetDigest [SWS_CRYPT_21116] Upstream: RS_CRYPTO_02205

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

Write the calculated hash digest into the provided output buffer.

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

Parameter (out)

ParameterBeschreibung
digestan output data buffer that the hash digest will be written into

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the hash digest or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotFinishedrollback_semantics if the hash calculation was not finished by a call of the Finish() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21116
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21116@rel:R25-11#65c459a0
Content hash
65c459a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21116
Status: valid/unmigrated Version: rel:R25-11#5176bc54 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_21116@rel:R25-11#5176bc54
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d36ab7962026-09-30
  • R20-11rel:R20-11#6044ba662026-10-14
  • R21-11rel:R21-11#c195cbba2026-10-14
  • R22-11rel:R22-11#32e02a4e2026-10-14
  • R23-11rel:R23-11#7888ecb32026-10-14
  • R24-11rel:R24-11#96e2c5772026-10-14
  • R25-11rel:R25-11#5176bc542026-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

फ़ंक्शन GetDigestSize [SWS_CRYPT_50061] Upstream: RS_CRYPTO_02309

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

Get the output digest size.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size of the output from this digest-function in bytes or an error

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_50061
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50061@rel:R25-11#84904155
Content hash
84904155
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50061
Status: valid/unmigrated Version: rel:R25-11#739a55c8 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_50061@rel:R25-11#739a55c8
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

फ़ंक्शन GetIntermediateDigest [SWS_CRYPT_50059] Upstream: RS_CRYPTO_02205

virtual ara::core::Result< std::size_t > GetIntermediateDigest (Read WriteMemRegion digest) const noexcept=0;

Calculate the hash digest with the data provided to the hash context and write the calculated hash digest into the provided output buffer. The hash digest is equal to the hash digest returned when calling Finish() and GetDigest(), however, after calling GetIntermediateDigest(), this context can still be updated with additional data.

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

Parameter (out)

ParameterBeschreibung
digestan output data buffer that the hash digest will be written into

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the size in bytes of the hash digest or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidUsageOrderrollback_semantics the hash calculation has not been started successfully.
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this context does not support getting an intemediate digest

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50059
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50059@rel:R25-11#40497703
Content hash
40497703
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50059
Status: valid/unmigrated Version: rel:R25-11#9bc73898 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_50059@rel:R25-11#9bc73898
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_50062] 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 CalculateHashDigest() by this context.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >A result containing the maximum buffer size in bytes or an error

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_50062
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50062@rel:R25-11#741d7dc3
Content hash
741d7dc3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50062
Status: valid/unmigrated Version: rel:R25-11#17fdd281 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_50062@rel:R25-11#17fdd281
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

फ़ंक्शन ImportContextState [SWS_CRYPT_50065] Upstream: RS_CRYPTO_02309

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

Set the current state of this hash context to the state provided by contextState. This function can be used to resume a previously suspended hash operation. The contextState must have been exported from a HashFunctionCtx with the same AlgorithmId provided by the same Crypto Provider as the current context using the function ExportContextState(). The current state of this context (e.g., any ongoing hash calculation) will be replaced by the state provided to this function.

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

वर्ग ara::crypto::cryp::HashFunctionCtx की विधि ImportContextState (ara/crypto/cryp/hash_function_ctx.h में परिभाषित) किसी पास किए गए बफ़र से हैश संदर्भ की आंतरिक स्थिति को पुनर्स्थापित करने और इस प्रकार पहले से बाधित हैश ऑपरेशन को जारी रखने का कार्य करती है [SWS_CRYPT_50065]। वर्तमान संदर्भ की किसी भी चल रही गणना स्थिति को आयातित स्थिति द्वारा पूरी तरह से बदल दिया जाता है [SWS_CRYPT_50065]।

कॉल और पूर्व-शर्तें

सिंक्रोनस कॉल हस्ताक्षर ImportContextState(ReadOnlyMem Region contextState) noexcept के माध्यम से होती है और एक ara::core::Result<void> लौटाती है [SWS_CRYPT_50065]। पैरामीटर contextState पर निम्नलिखित अनिवार्य शर्तें लागू होती हैं:

  • डेटा बफ़र को पहले HashFunctionCtx के एक इंस्टेंस से विधि ExportContextState() के साथ निर्यात किया गया होना चाहिए [SWS_CRYPT_50065]।
  • स्रोत संदर्भ के पास समान AlgorithmId होना चाहिए और उसी Crypto Provider द्वारा प्रदान किया गया होना चाहिए जैसा कि गंतव्य संदर्भ है [SWS_CRYPT_50065]।

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

त्रुटि की स्थिति में, रोलबैक सेमेंटिक्स के साथ एक त्रुटि कोड लौटाया जाता है, ताकि विफलता पर संदर्भ की मौजूदा स्थिति अपरिवर्तित रहे [SWS_CRYPT_50065]:

  • ara::crypto::CryptoErrc::kInvalidArgument: तर्क contextState में अमान्य डेटा है [SWS_CRYPT_50065]।
  • ara::crypto::CryptoErrc::kUnsupported: विशिष्ट संदर्भ संदर्भ स्थितियों के निर्यात और आयात का समर्थन नहीं करता है [SWS_CRYPT_50065]।

ऑपरेशन को thread-safe और exception safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50065]।

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

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

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

Parameter (in)

ParameterBeschreibung
contextStatea data buffer that contains a previously exported state of the context

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this context does not support im-/exporting the context state
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the contextState argument contains invalid data

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50065
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50065@rel:R25-11#13899fdc
Content hash
13899fdc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50065
Status: valid/unmigrated Version: rel:R25-11#7db4f4c5 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_50065@rel:R25-11#7db4f4c5
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_50152] Upstream: RS_CRYPTO_02302

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

Initialize the context for processing of a hash digest without an IV. Will cancel any ongoing hash calculation.

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

इंटरफ़ेस ara::crypto::cryp::HashFunctionCtx की विधि Start() इनिशियलाइज़ेशन वेक्टर (IV) के बिना हैश मान की चरण-दर-चरण गणना के लिए संदर्भ को प्रारंभ करती है [SWS_CRYPT_50152]। एक बार फिर से कॉल करने पर कोई भी पहले से चल रही हैश गणना रद्द हो जाती है और एक नई गणना के लिए संदर्भ सेट हो जाता है [SWS_CRYPT_50152]।

फ़ंक्शन सिंक्रोनस है, कोई पैरामीटर स्वीकार नहीं करता है और एक ara::core::Result<void> लौटाता है [SWS_CRYPT_50152]। यदि आरंभीकरण के दौरान कोई त्रुटि होती है, तो निम्नलिखित विशिष्ट त्रुटि कोड के साथ रोलबैक सिमेंटिक्स लागू होता है [SWS_CRYPT_50152]:

  • ara::crypto::CryptoErrc::kUnsupported: उपयोग किया गया हैश फ़ंक्शन अनिवार्य रूप से एक इनिशियलाइज़ेशन वेक्टर [SWS_CRYPT_50152] की अपेक्षा करता है।
  • ara::crypto::CryptoErrc::kBusyResource: ऑपरेशन के लिए अनिवार्य रूप से आवश्यक एक आंतरिक संसाधन व्यस्त है [SWS_CRYPT_50152]।

समवर्तीता (concurrency) के संबंध में, विधि को thread-safe और exception safe के रूप में निर्दिष्ट किया गया है तथा noexcept के रूप में घोषित किया गया है [SWS_CRYPT_50152]। सफल इनिशियलाइज़ेशन के बाद, संदेश के भागों को संदर्भ की विधि Update() के माध्यम से क्रमिक रूप से फ़ीड किया जा सकता है [SWS_CRYPT_21113]। चूंकि कॉल चल रही गणनाओं को निरस्त कर देती है, इसलिए व्यवहार में यह फ़ंक्शन संभवतः पुनरारंभ (restart) से पहले रीसेट तंत्र के रूप में भी कार्य करता है। प्रश्न Q-9c369489a6c6e8cb (खुला)

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics the used hash function expects an IV
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50152@rel:R25-11#e1b2d3c8
Content hash
e1b2d3c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50152
Status: valid/unmigrated Version: rel:R25-11#b2ed1e78 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_50152@rel:R25-11#b2ed1e78
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_50153] Upstream: RS_CRYPTO_02302

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

Initialize the context for processing of a hash digest with an IV. Will cancel any ongoing hash calculation.

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

उपयोग

इंटरफ़ेस ara::crypto::cryp::HashFunctionCtx का फ़ंक्शन Start इनिशियलाइज़ेशन वेक्टर (IV) [SWS_CRYPT_50153] का उपयोग करके हैश डाइजेस्ट की गणना के लिए संदर्भ को इनिशियलाइज़ करता है। इनिशियलाइज़ेशन वेक्टर iv को एक ReadOnlyMemRegion के माध्यम से पैरामीटर के रूप में पास किया जाता है [SWS_CRYPT_50153]। सिंक्रोनस कॉल एक ara::core::Result<void> लौटाता है, जिसमें सफलता की स्थिति में कोई रिटर्न मान नहीं होता है [SWS_CRYPT_50153]। इसके अतिरिक्त, एक कॉल इस संदर्भ पर पहले से चल रही किसी भी हैश गणना को निरस्त कर देता है [SWS_CRYPT_50153]।

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

यदि इनिशियलाइज़ेशन के दौरान कोई त्रुटि होती है, तो एक संगत त्रुटि कोड लौटाया जाता है, जिसमें सभी त्रुटि मामलों के लिए रोलबैक सिमेंटिक्स की गारंटी होती है [SWS_CRYPT_50153]:

  • ara::crypto::CryptoErrc::kInvalidInputSize: प्रदान किए गए इनिशियलाइज़ेशन वेक्टर का आकार समर्थित नहीं है [SWS_CRYPT_50153]।
  • ara::crypto::CryptoErrc::kUnsupported: अंतर्निहित हैश फ़ंक्शन इनिशियलाइज़ेशन वेक्टर का उपयोग नहीं करता है [SWS_CRYPT_50153]।
  • ara::crypto::CryptoErrc::kBusyResource: इनिशियलाइज़ेशन के लिए आवश्यक संसाधन व्यस्त है [SWS_CRYPT_50153]।

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

इंटरफ़ेस को noexcept के रूप में घोषित किया गया है तथा थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50153]। सामान्य प्रवाह में, यह कॉल विधि Update के माध्यम से इनपुट संदेश के बाद के चरण-दर-चरण प्रसंस्करण के लिए पूर्वशर्त बनता है [SWS_CRYPT_21113]।

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

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

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

Parameter (in)

ParameterBeschreibung
ivthe used Initialization Vector (IV)

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics the size of provided IV is not supported
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics the used hash function does not use an IV
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50153@rel:R25-11#dd5db924
Content hash
dd5db924
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50153
Status: valid/unmigrated Version: rel:R25-11#8543358e 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_50153@rel:R25-11#8543358e
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_21113] Upstream: RS_CRYPTO_02302

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

Update the digest calculation context by a new part of the message.

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

सिंक्रोनस विधि Update [SWS_CRYPT_21113] में चल रहे हैश गणना संदर्भ (ara::crypto::cryp::HashFunctionCtx) के वृद्धिशील अद्यतन के लिए कार्य करती है। पैरामीटर data (ReadOnlyMemRegion) के माध्यम से संसाधित किए जाने वाले इनपुट संदेश का एक भाग पास किया जाता है। फ़ंक्शन एक ara::core::Result<void> लौटाता है, जो सफलता की स्थिति में खाली होता है या एक संबंधित त्रुटि कोड को समाहित करता है।

त्रुटि व्यवहार के संबंध में, विधि दो विशिष्ट त्रुटि स्थितियों में रोलबैक सिमेंटिक्स प्रदान करती है:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: गणना पूर्व में विधि Start() के कॉल द्वारा आरंभ नहीं की गई थी [SWS_CRYPT_21113]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: पास किए गए डेटा का आकार संदर्भ द्वारा समर्थित नहीं है [SWS_CRYPT_21113]।

कॉल संदर्भ के लिए स्पष्ट अनुक्रम और आकार की शर्तें लागू होती हैं: डेटा पास करने से पहले हैश प्रक्रिया को आरंभ किया जाना चाहिए [SWS_CRYPT_21113]। kInvalidInputSize से बचने के लिए, एकल Update कॉल के लिए अधिकतम अनुमत ब्लॉक आकार GetMaximumChunkSize के माध्यम से पहले से निर्धारित किया जा सकता है [SWS_CRYPT_50062]। विनिर्देश के अनुसार, फ़ंक्शन को अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) घोषित किया गया है [SWS_CRYPT_21113]।

अन्य इंटरफ़ेस के साथ परस्पर क्रिया में, HashFunctionCtx के भीतर Update(CryptoObject::Sptr) [SWS_CRYPT_50057] के माध्यम से कुंजी ऑब्जेक्ट्स को पास करने के लिए एक ओवरलोड मौजूद है। सभी डेटा ब्लॉकों को जोड़ने के बाद, चेकसम का समापन संभवतः Finish() के माध्यम से होना चाहिए [SWS_CRYPT_50062]। प्रश्न Q-dcac20f353ca55f4 (खुला)

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

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

Parameter (in)

ParameterBeschreibung
dataa part of the input message that should be processed

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21113
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21113@rel:R25-11#22c6dd9f
Content hash
22c6dd9f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21113
Status: valid/unmigrated Version: rel:R25-11#1061ad76 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_21113@rel:R25-11#1061ad76
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a256303e2026-09-30
  • R20-11rel:R20-11#c42a6b602026-10-14
  • R21-11rel:R21-11#8395b3922026-10-14
  • R22-11rel:R22-11#c133132e2026-10-14
  • R23-11rel:R23-11#68132f692026-10-14
  • R24-11rel:R24-11#0809f9622026-10-14
  • R25-11rel:R25-11#1061ad762026-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

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

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

Update the digest calculation context by a new part of the message.

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

सिंक्रोनस मेथड Update [SWS_CRYPT_50057] में ara::crypto::cryp::HashFunctionCtx में हैश मान गणना के संदर्भ को कुंजी ऑब्जेक्ट के रूप में नए संदेश खंड के साथ चरणबद्ध रूप से विस्तारित करने का कार्य करती है। एक पैरामीटर के रूप में कुंजी ऑब्जेक्ट (CryptoObject::Sptr key) पर एक स्मार्ट पॉइंटर पास किया जाता है। कॉल रिटर्न मान के रूप में एक ara::core::Result<void> प्रदान करता है, जो सफल प्रोसेसिंग पर रिक्त होता है या त्रुटि के मामले में संबंधित एरर कोड को समाहित करता है [SWS_CRYPT_50057]।

क्रम स्थिति के रूप में यह लागू होता है कि गणना पहले अनिवार्य रूप से Start() के कॉल द्वारा शुरू की गई होनी चाहिए; अन्यथा त्रुटि ProcessingNotStarted की रिपोर्ट की जाती है [SWS_CRYPT_50057]। अन्य विशिष्ट त्रुटि मामलों में (प्रत्येक रोलबैक सेमेंटिक्स के साथ) शामिल हैं [SWS_CRYPT_50057]:

  • ara::crypto::CryptoErrc::kUnsupported, यदि हैश संदर्भ आमतौर पर कुंजियों के हैशिंग का समर्थन नहीं करता है,
  • ara::crypto::CryptoErrc::kIncompatibleObject, यदि पास किया गया कुंजी ऑब्जेक्ट संदर्भ के साथ संगत नहीं है,
  • ara::crypto::CryptoErrc::kUsageViolation, बशर्ते कि कुंजी के अनुमत उपयोग में kAllowHash Calculation शामिल न हो,
  • ara::crypto::CryptoErrc::kInvalidInputSize, यदि पास की गई कुंजी का डेटा आकार समर्थित नहीं है।

विधि को thread-safe के साथ-साथ exception safe (noexcept) घोषित किया गया है [SWS_CRYPT_50057]। मॉड्यूल के अन्य इंटरफ़ेस के साथ संयोजन में, एकल Update-कॉल्स के लिए अधिकतम अनुमत बफ़र आकार GetMaximumChunkSize() के माध्यम से निर्धारित किया जा सकता है [SWS_CRYPT_50062]। कुंजी ऑब्जेक्ट के बिना नियमित संदेश भागों के लिए, HashFunctionCtx में समानांतर रूप से ओवरलोड Update(ReadOnlyMemRegion data) मौजूद है [SWS_CRYPT_21113]।

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

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

Parameter (in)

ParameterBeschreibung
keya part of the input message that should be processed

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif the digest calculation was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data is not supported
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this context does not support hashing of keys
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowHash Calculation

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50057
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50057@rel:R25-11#555cf97c
Content hash
555cf97c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50057
Status: valid/unmigrated Version: rel:R25-11#6d3cf021 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_50057@rel:R25-11#6d3cf021
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_21101] Upstream: RS_CRYPTO_02205

using Sptr = std::shared_ptr<HashFunctionCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/hash_function_ctx.h"
Scopeclass ara::crypto::cryp::HashFunctionCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21101@rel:R25-11#2a9b30ba
Content hash
2a9b30ba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21101
Status: valid/unmigrated Version: rel:R25-11#6b0a2315 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_21101@rel:R25-11#6b0a2315
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#806f0f392026-09-30
  • R19-11rel:R19-11#d559cb4a2026-10-14
  • R20-11rel:R20-11#6ba26a492026-10-14
  • R21-11rel:R21-11#6ba26a492026-10-14
  • R22-11rel:R22-11#49c7b6f72026-10-14
  • R23-11rel:R23-11#cfd4adfd2026-10-14
  • R24-11rel:R24-11#cfd4adfd2026-10-14
  • R25-11rel:R25-11#6b0a23152026-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