DEENESPTFRRUARHIKOZHNL

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

[SWS_CRYPT_23500] Upstream: RS_CRYPTO_02204

class SignerPrivateCtx :             public CryptoContext {...};

Signature Private key Context interface.

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

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

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

एकल-चरण या स्ट्रीमिंग प्रक्रियाओं में निजी क्रिप्टोग्राफ़िक कुंजियों का उपयोग करके डिजिटल हस्ताक्षर निर्माण के लिए कार्य करता है।

इंटरफ़ेस ara::crypto::cryp::SignerPrivateCtx Adaptive Platform [SWS_CRYPT_23501] पर डिजिटल हस्ताक्षर ऑपरेशनों के लिए निजी कुंजियों को एनकैप्सुलेट करता है। SetKey() के माध्यम से कुंजी को कॉन्फ़िगर करने के बाद, संदेशों को या तो Sign() के माध्यम से एकल चरण में या Start(), Update() और Finish() के माध्यम से बहु-चरणीय रूप में हस्ताक्षरित किया जा सकता है [SWS_CRYPT_23515] [SWS_CRYPT_23512] [SWS_CRYPT_50040]। सभी कॉल्स थ्रेड-सुरक्षित हैं और अपर्याप्त बफ़र क्षमता या अमान्य संदर्भ स्थितियों जैसी त्रुटियों को ara::core::Result [SWS_CRYPT_50040] के माध्यम से संकेतित करते हैं।

संदर्भ

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

जीवनचक्र

SignerPrivateCtx के इंस्टेंस स्टेटफ़ुल ऑब्जेक्ट्स के रूप में संचालित होते हैं और शेयर्ड पॉइंटर संरचनाओं (std::shared_ptr) के माध्यम से प्रबंधित किए जाते हैं [SWS_CRYPT_23501]। क्रिप्टोग्राफ़िक गणना करने से पहले, इंस्टेंस एक गैर-आरंभीकृत स्थिति में होता है और एक उपयुक्त कुंजी के असाइनमेंट की आवश्यकता होती है। मेथड SetKey() के माध्यम से संदर्भ को या तो एक विशिष्ट निजी कुंजी असाइन की जाती है [SWS_CRYPT_23515] या एक KeySlot संग्रहीत किया जाता है, जिसका कुंजी मान हस्ताक्षर गणना के प्रारंभ समय पर उपयोग किया जाता है [SWS_CRYPT_50036]। जैसे ही एक कुंजी सफलतापूर्वक बाइंड हो जाती है, संदर्भ संचालन-तैयार स्थिति में परिवर्तित हो जाता है। सभी इंटरफ़ेस मेथड्स को अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_23512] [SWS_CRYPT_50037]।

डेटा प्रोसेसिंग के भीतर, इंटरफ़ेस एकमुश्त हस्ताक्षर और बहु-चरणीय स्ट्रीमिंग प्रक्रियाओं के बीच अंतर करता है। एक स्ट्रीमिंग हस्ताक्षर ऑपरेशन Start() [SWS_CRYPT_50037] [SWS_CRYPT_50038] द्वारा प्रारंभ किया जाता है, चरण दर चरण Update() [SWS_CRYPT_50039] के माध्यम से डेटा ब्लॉकों के साथ आपूर्ति की जाती है और Finish() [SWS_CRYPT_50040] द्वारा अंतिम रूप दिया जाता है। वैकल्पिक रूप से, एक चल रही स्ट्रीमिंग को किसी भी समय Cancel() के माध्यम से निरस्त किया जा सकता है, जिससे इंस्टेंस संचालन-तैयार स्थिति में लौट आता है [SWS_CRYPT_50041]।

SignerPrivateCtxStates Uninitialized Uninitialized Ready Ready Uninitialized->Ready SetKey() Ready->Ready Sign() / SetKey() Streaming Streaming Ready->Streaming Start() Streaming->Ready Finish() / Cancel() Streaming->Streaming Update()

स्थिति आरेख: कॉन्फ़िगरेशन से लेकर ऑपरेशन पूरा होने तक हस्ताक्षर संदर्भ के स्थिति संक्रमण। स्रोत: [SWS_CRYPT_23515], [SWS_CRYPT_50036], [SWS_CRYPT_23512], [SWS_CRYPT_50037], [SWS_CRYPT_50039], [SWS_CRYPT_50040], [SWS_CRYPT_50041]

उपयोग पथ

अनुप्रयोग हस्ताक्षरों को या तो एकल-चरण (Single-Call) में या निरंतर डेटा स्ट्रीम (Streaming) के रूप में उत्पन्न कर सकते हैं। निष्पादन से पहले, अनुप्रयोग वांछित हस्ताक्षर प्रारूप के लिए अपेक्षित बफ़र आकार GetSignatureSize() FormatId [SWS_CRYPT_29004] के माध्यम से और एकल रीड ऑपरेशनों के अधिकतम अनुमत ब्लॉक आकार को GetMaximumChunkSize() [SWS_CRYPT_50042] के माध्यम से निर्धारित करता है।

एकल-चरण पथ में, पूर्ण संदेश को Sign() का उपयोग करके सीधे हस्ताक्षरित किया जाता है। यह मेथड इनपुट संदेश, गंतव्य बफ़र ReadWriteMemRegion, हस्ताक्षर प्रारूप और साथ ही एक वैकल्पिक एल्गोरिदम-विशिष्ट संदर्भ मान स्वीकार करता है और लिखे गए बाइट्स की वास्तविक संख्या लौटाता है [SWS_CRYPT_23512]।

बड़े डेटा वॉल्यूम या खंडित संदेशों के लिए, स्ट्रीमिंग पथ तीन-चरणीय पैटर्न का अनुसरण करता है:

  1. आरंभीकरण: बिना पैरामीटर [SWS_CRYPT_50037] के या एप्लिकेशन-विशिष्ट संदर्भ बफ़र ReadOnlyMemRegion [SWS_CRYPT_50038] के साथ Start() को कॉल करना।
  2. प्रसंस्करण: Update() के माध्यम से आंशिक संदेशों की बार-बार आपूर्ति, जहाँ प्रत्येक ब्लॉक को GetMaximumChunkSize() द्वारा निर्दिष्ट ऊपरी सीमा का पालन करना चाहिए [SWS_CRYPT_50039] [SWS_CRYPT_50042]।
  3. समाप्ति या निरस्तीकरण: हस्ताक्षर निर्माण को अंतिम रूप देना और Finish() [SWS_CRYPT_50040] के माध्यम से गंतव्य मेमोरी में लिखना, या Cancel() [SWS_CRYPT_50041] का उपयोग करके चल रही प्रक्रिया को समय से पहले निरस्त करना।
SignerPrivateCtx के साथ स्ट्रीमिंग हस्ताक्षर निर्माणआवेदनSignerPrivateCtxSetKey(key)Result<void>GetSignatureSize(signatureFormat)Result<size_t>Start()Result<void>loopप्रत्येक डेटा ब्लॉक (Chunk) के लिएUpdate(chunk)Result<void>Finish(signatureBuffer, signatureFormat)Result<size_t>

अनुक्रम आरेख: बफ़र जाँच और फ़ाइनलाइज़ेशन के साथ स्ट्रीम किए गए हस्ताक्षर निर्माण का विशिष्ट क्रम। स्रोत: [SWS_CRYPT_23515], [SWS_CRYPT_29004], [SWS_CRYPT_50037], [SWS_CRYPT_50039], [SWS_CRYPT_50040]

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

मेथड कॉल्स डिफ़ॉल्ट रूप से ara::core::Result लौटाते हैं और विफलताओं के मामले में रोलबैक सिमेंटिक्स के साथ ara::crypto::CryptoErrc से मानकीकृत त्रुटि कोड का उपयोग करते हैं। सामान्य त्रुटि कारणों में शामिल हैं:

  • CryptoErrc::kUninitializedContext: SetKey() के माध्यम से एक कुंजी बाइंड किए जाने से पहले Sign() या Start() को कॉल करना [SWS_CRYPT_23512] [SWS_CRYPT_50037] [SWS_CRYPT_50038]।
  • CryptoErrc::kUsageViolation: प्रदान की गई कुंजी के पास आवश्यक उपयोग अधिकार kAllowSigGeneration नहीं है [SWS_CRYPT_23515] [SWS_CRYPT_23512] [SWS_CRYPT_50037]।
  • CryptoErrc::kIncompatibleObject: पास किया गया PrivateKey या KeySlot संदर्भ के एल्गोरिदम के साथ असंगत है [SWS_CRYPT_23515] [SWS_CRYPT_50036]।
  • CryptoErrc::kProcessingNotStarted: पहले Start() को सफलतापूर्वक कॉल किए बिना Update(), Finish() या Cancel() को कॉल करना [SWS_CRYPT_50039] [SWS_CRYPT_50040] [SWS_CRYPT_50041]।
  • CryptoErrc::kInsufficientCapacity: Sign() या Finish() के लिए पास किया गया आउटपुट बफ़र लिखे जाने वाले हस्ताक्षर से छोटा है [SWS_CRYPT_23512] [SWS_CRYPT_50040]।
  • CryptoErrc::kUnsupportedFormat: अनुरोधित FormatId संदर्भ द्वारा समर्थित नहीं है [SWS_CRYPT_29004] [SWS_CRYPT_23512] [SWS_CRYPT_50040]।
  • CryptoErrc::kEmptyKeySlot: एक कॉन्फ़िगर किए गए KeySlot में निष्पादन के समय कोई कुंजी नहीं होती है [SWS_CRYPT_23512] [SWS_CRYPT_50037]।
  • CryptoErrc::kInvalidInputSize: Sign(), Start() या Update() के कॉल्स में अमान्य बफ़र आकार [SWS_CRYPT_23512] [SWS_CRYPT_50038] [SWS_CRYPT_50039]।

यह गाइड विशेष रूप से रिलीज़ R25-11 में मॉड्यूल crypto के लिए AUTOSAR Adaptive विनिर्देश की आवश्यकताओं पर आधारित है।

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

क्लास आरेख

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

G nara__crypto__cryp__SignerPrivateCtx943 SignerPrivateCtx + Cancel() + Finish() + GetMaximumChunkSize() + GetSignatureSize() + SetKey() + Sign() + Start() + Update() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__SignerPrivateCtx943->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;
Finish फ़ंक्शन

Finish the signature generation and write the signature to the provided output buffer.

virtual ara::core::Result< size_t > Finish (ReadWriteMemRegion signature, FormatId signatureFormat) noexcept=0;
GetMaximumChunkSize फ़ंक्शन

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

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

Get size of the signature value produced by the current algorithm in the provided format.

virtual ara::core::Result< std::size_t > GetSignatureSize (FormatId signatureFormat) const noexcept=0;
SetKey फ़ंक्शन 2

Configure the context to use the provided key.

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

This function signs a message.

virtual ara::core::Result< std::size_t > Sign (ReadOnlyMemRegion message, ReadWriteMemRegion signature, FormatId signatureFormat, ara::core::Optional< ReadOnlyMemRegion > context) const noexcept=0;
Start फ़ंक्शन 2

Initialize the context for a new signature generation.

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

Update the signature generation context by a new part of the message.

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

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

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

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

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

कॉल क्रम और त्रुटि प्रबंधन के संबंध में, Cancel() अनिवार्य रूप से सक्रिय प्रसंस्करण की पूर्व-अपेक्षा करता है: यदि डेटा प्रसंस्करण को पहले विधि Start() के कॉल द्वारा शुरू नहीं किया गया था, तो निरस्तीकरण विफल हो जाता है और परिभाषित रोलबैक सिमेंटिक्स के साथ त्रुटि कोड ara::crypto::CryptoErrc::kProcessingNotStarted वापस लौटाता है [SWS_CRYPT_50041]। Interpretation: Cancel() के सफल कॉल के बाद, संदर्भ के पुनः एक गैर-शुरू की गई मूल स्थिति में लौटने की संभावना है, ताकि एक नई हस्ताक्षर या स्ट्रीमिंग प्रक्रिया शुरू की जा सके। प्रश्न Q-348fb3ae43e424c9 (खुला)

यह डिज़ाइन क्रिप्टो मॉड्यूल में सभी स्ट्रीमिंग ऑपरेशनों के लिए एक समान सिद्धांत का पालन करता है। संबंधित संदर्भों जैसे कि VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] और साथ ही EncryptorPublicCtx [SWS_CRYPT_50089] के लिए पूरी तरह से समान हस्ताक्षर और त्रुटि सिमेंटिक्स मौजूद हैं।

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

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

Header-Datei#include "ara/crypto/cryp/signer_private_ctx.h"
Scopeclass ara::crypto::cryp::SignerPrivateCtx
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_50041
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50041@rel:R25-11#66aee78f
Content hash
66aee78f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50041
Status: valid/unmigrated Version: rel:R25-11#5f721a2b 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_50041@rel:R25-11#5f721a2b
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_50040] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

virtual ara::core::Result< size_t > Finish (ReadWriteMemRegion signature, FormatId signatureFormat) noexcept=0;

Finish the signature generation and write the signature to the provided output buffer.

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

उपयोग

मेथड ara::crypto::cryp::SignerPrivateCtx::Finish हस्ताक्षर निर्माण को सिंक्रोनस रूप से समाप्त करती है और परिकलित हस्ताक्षर को सीधे उपलब्ध कराए गए आउटपुट बफ़र signature में लिखती है [SWS_CRYPT_50040]। फ़ंक्शन इनपुट पैरामीटर के रूप में लिखने योग्य मेमोरी क्षेत्र signature (प्रकार ReadWriteMemRegion) और वांछित प्रारूप signatureFormat (प्रकार FormatId) की अपेक्षा करता है [SWS_CRYPT_50040]। रिटर्न मान के रूप में ara::core::Result<size_t> लिखे गए हस्ताक्षर डेटा का वास्तविक बाइट आकार प्रदान करता है; यह डेटा मात्रा टार्गेट बफ़र [SWS_CRYPT_50040] की क्षमता से कम हो सकती है।

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

उत्पन्न होने वाले सभी त्रुटि मामलों के लिए रोलबैक सेमेंटिक्स निर्दिष्ट है [SWS_CRYPT_50040]। परिणाम के माध्यम से निम्नलिखित एरर कोड लौटाए जा सकते हैं:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: हस्ताक्षर निर्माण पहले सफलतापूर्वक शुरू नहीं किया गया था [SWS_CRYPT_50040]।
  • ara::crypto::CryptoErrc::kInsufficientCapacity: पास किए गए आउटपुट बफ़र signature की क्षमता बहुत कम है [SWS_CRYPT_50040]।
  • ara::crypto::CryptoErrc::kUnsupportedFormat: signatureFormat का मान अज्ञात है या समर्थित नहीं है [SWS_CRYPT_50040]।

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

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

इंटरैक्शन

निर्मित हस्ताक्षर के सत्यापन के लिए प्रत्यक्ष कार्यात्मक समकक्ष मेथड ara::crypto::cryp::VerifierPublicCtx::Finish है [SWS_CRYPT_50022]। हैश या MAC गणनाओं के संदर्भों की तुलना में, जहाँ Finish() केवल गणना को फ़ाइनलाइज़ करता है और मध्यवर्ती या अंतिम परिणाम अलग से प्राप्त किया जाता है [SWS_CRYPT_21115] [SWS_CRYPT_21116], SignerPrivateCtx::Finish हस्ताक्षर को सीधे बफ़र [SWS_CRYPT_50040] में लिखता है।

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

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

Parameter (in)

ParameterBeschreibung
signaturean output buffer that the signature will be written into
signatureFormatthe format in which the signature will be written

Rückgabewert

TypBeschreibung
ara::core::Result< 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 signature.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature generation has not been started successfully.
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50040
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50040@rel:R25-11#097081b6
Content hash
097081b6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50040
Status: valid/unmigrated Version: rel:R25-11#58202823 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_50040@rel:R25-11#58202823
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_50042] 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() or Sign() by this context.

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
This function does not specify any standardized errors.

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

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

फ़ंक्शन GetSignatureSize [SWS_CRYPT_29004] Upstream: RS_CRYPTO_02309

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

Get size of the signature value produced by the current algorithm in the provided format.

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

Parameter (in)

ParameterBeschreibung
signatureFormatthe format for which the size of the signature will be calculated

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of the signature value in bytes or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_29004
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_29004@rel:R25-11#1bc72771
Content hash
1bc72771
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_29004
Status: valid/unmigrated Version: rel:R25-11#5dd47914 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_29004@rel:R25-11#5dd47914
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1da381032026-09-30
  • R20-11rel:R20-11#2a4501722026-10-14
  • R21-11rel:R21-11#d0e232c92026-10-14
  • R22-11rel:R22-11#68e2b9122026-10-14
  • R23-11rel:R23-11#260fdd9b2026-10-14
  • R24-11rel:R24-11#f3c2ba002026-10-14
  • R25-11rel:R25-11#5dd479142026-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_23515] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

Configure the context to use the provided key.

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

उपयोग

क्लास ara::crypto::cryp::SignerPrivateCtx (#include "ara/crypto/cryp/signer_private_ctx.h") का वर्चुअल मेथड SetKey प्रदान की गई निजी कुंजी [SWS_CRYPT_23515] के उपयोग के लिए साइनिंग संदर्भ को कॉन्फ़िगर करता है। पैरामीटर के रूप में, PrivateKey::Sptr प्रकार का key स्रोत कुंजी ऑब्जेक्ट के रूप में पास किया जाता है [SWS_CRYPT_23515]। मेथड को सिंक्रोनस रूप से निष्पादित किया जाता है और यह एक ara::core::Result<void> लौटाता है, जो सफलता के मामले में खाली होता है या त्रुटि के मामले में उत्पन्न हुए एरर कोड को ले जाता है [SWS_CRYPT_23515]।

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

यदि कॉन्फ़िगरेशन के दौरान कोई त्रुटि होती है, तो रोलबैक सिमेंटिक्स लागू होते हैं [SWS_CRYPT_23515]। निम्नलिखित एरर कोड निर्दिष्ट हैं:

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

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

इंटरफ़ेस को noexcept के रूप में घोषित किया गया है और विनिर्देश के अनुसार इसे एक्सेप्शन-सुरक्षित (“exception safe”) और थ्रेड-सुरक्षित (“thread-safe”) दोनों के रूप में वर्गीकृत किया गया है [SWS_CRYPT_23515]।

इंटरैक्शन

SignerPrivateCtx में वैकल्पिक रूप से ओवरलोड SetKey(KeySlot::Sptr) मौजूद है, जो संदर्भ को इस प्रकार कॉन्फ़िगर करता है कि KeySlot में संग्रहीत कुंजी का उपयोग केवल हस्ताक्षर गणना के प्रारंभ समय पर किया जाता है [SWS_CRYPT_50036]। हस्ताक्षरों के सत्यापन के लिए, सत्यापन पक्ष पर कार्यात्मक समकक्ष ara::crypto::cryp::VerifierPublicCtx [SWS_CRYPT_24115] के भीतर PublicKey::Sptr के साथ SetKey कार्य करता है।

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

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

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

Parameter (in)

ParameterBeschreibung
keythe source key object

Rückgabewert

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

Fehler

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23515
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23515@rel:R25-11#54f7382a
Content hash
54f7382a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23515
Status: valid/unmigrated Version: rel:R25-11#71952992 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_23515@rel:R25-11#71952992
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#95d92ab72026-09-30
  • R20-11rel:R20-11#e3c992392026-10-14
  • R21-11rel:R21-11#601e899c2026-10-14
  • R22-11rel:R22-11#a52d4de52026-10-14
  • R23-11rel:R23-11#4a68f6e92026-10-14
  • R24-11rel:R24-11#2c23797e2026-10-14
  • R25-11rel:R25-11#719529922026-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_50036] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

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

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

उपयोग

विधि SetKey पास किए गए KeySlot::Sptr में स्थित एक कुंजी के उपयोग के लिए हस्ताक्षर संदर्भ [SWS_CRYPT_50036] को कॉन्फ़िगर करती है। कुंजी का उपयोग केवल उस समय किया जाता है जब वास्तविक हस्ताक्षर गणना शुरू की जाती है [SWS_CRYPT_50036]। कॉल तुल्यकालिक रूप से होती है, इसे noexcept के रूप में घोषित किया गया है और यह एक ara::core::Result<void> लौटाती है [SWS_CRYPT_50036]।

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

यदि कॉन्फ़िगरेशन विफल हो जाता है, तो वापसी ऑब्जेक्ट में एक त्रुटि प्रेषित की जाती है, जहाँ रोलबैक सिमेंटिक्स लागू होते हैं [SWS_CRYPT_50036]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: तब घटित होता है जब प्रदान किया गया keySlot इस हस्ताक्षर संदर्भ के साथ संगत नहीं होता है [SWS_CRYPT_50036]।
  • ara::crypto::CryptoErrc::kUnsupported: तब रिपोर्ट किया जाता है यदि संदर्भ केवल सीधे PrivateKey सेट करने का समर्थन करता है [SWS_CRYPT_50036]।

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

इंटरफ़ेस क्लास ara::crypto::cryp::SignerPrivateCtx से संबंधित है और इसे thread-safe तथा exception-safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50036]। इस स्लॉट-आधारित वेरिएंट के अलावा, SignerPrivateCtx एक ऐसा ओवरलोड भी प्रदान करता है जो सीधे PrivateKey::Sptr ऑब्जेक्ट को स्वीकार करता है [SWS_CRYPT_23515]। अन्य क्रिप्टोग्राफ़िक संदर्भों के लिए भी अनुरूप स्लॉट बाइंडिंग मौजूद हैं, जैसे VerifierPublicCtx [SWS_CRYPT_50018] में KeySlot के साथ हस्ताक्षर सत्यापन के लिए या KeyDerivationFunctionCtx [SWS_CRYPT_50010] में कुंजी व्युत्पत्ति (key derivation) के लिए।

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

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a private key

Rückgabewert

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

Fehler

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

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

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

फ़ंक्शन Sign [SWS_CRYPT_23512] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< std::size_t > Sign (ReadOnlyMemRegion message, ReadWriteMemRegion signature, FormatId signatureFormat, ara::core::Optional< ReadOnlyMemRegion > context) const noexcept=0;

This function signs a message.

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

विधि Sign [SWS_CRYPT_23512] के अनुसार एकल चरण में किसी संदेश पर सिंक्रोनस रूप से हस्ताक्षर करती है। यह हस्ताक्षरित किए जाने वाले इनपुट संदेश (message), लक्ष्य बफ़र (signature), वांछित हस्ताक्षर प्रारूप (signatureFormat) और वैकल्पिक रूप से एक संदर्भ मान (context) को स्वीकार करती है। सफलता की स्थिति में, फ़ंक्शन ara::core::Result<std::size_t> के माध्यम से उत्पन्न हस्ताक्षर का वास्तविक बाइट आकार लौटाता है, जो लक्ष्य बफ़र की क्षमता से छोटा हो सकता है [SWS_CRYPT_23512]।

समवर्तीता (concurrency) और अपवाद सुरक्षा के संबंध में, विधि को noexcept के रूप में घोषित किया गया है, इसे exception safe माना जाता है और इसे स्पष्ट रूप से thread-safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_23512]।

कॉल करने से पहले, संदर्भ को किसी कुंजी मान के साथ ठीक से प्रारंभ किया जाना चाहिए; अन्यथा UninitializedContext की रिपोर्ट की जाती है [SWS_CRYPT_23512]। इनपुट लंबाई के संबंध में, Sign, [SWS_CRYPT_50042] के साथ संयोजन में कार्य करता है: ara::crypto::CryptoErrc::kInvalidInputSize जैसी त्रुटियों को रोकने के लिए एकल-चरण प्रसंस्करण हेतु समर्थित अधिकतम बफ़र आकार का निर्धारण GetMaximumChunkSize के माध्यम से किया जा सकता है [SWS_CRYPT_23512] [SWS_CRYPT_50042]।

त्रुटि प्रबंधन विशिष्ट त्रुटि कोडों के लिए रोलबैक सिमेंटिक्स प्रदान करता है [SWS_CRYPT_23512]:

  • ara::crypto::CryptoErrc::kInsufficientCapacity: आउटपुट बफ़र signature बहुत छोटा है।
  • ara::crypto::CryptoErrc::kUnsupported: एकल-चरण प्रसंस्करण समर्थित नहीं है, या संदर्भ विनिर्देश context आवश्यकताओं के अनुरूप नहीं है।
  • ara::crypto::CryptoErrc::kUnsupportedFormat: निर्दिष्ट FormatId अज्ञात है या समर्थित नहीं है।
  • ara::crypto::CryptoErrc::kUsageViolation: अनुमत कुंजी उपयोग में kAllowSig Generation शामिल नहीं है।
  • ara::crypto::CryptoErrc::kEmptyKeySlot या ara::crypto::CryptoErrc::kBusyResource: कॉन्फ़िगर किया गया KeySlot रिक्त है या आवश्यक संसाधन व्यस्त है।

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message to be signed
signatureFormatthe format in which the signature will be written
contextan optional "context" value

Parameter (out)

ParameterBeschreibung
signaturean output buffer that the signature will be written into

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 signature.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call processing is not supported, or if the context requires setting a context but no context is provided, or if the context does not support setting a context but a context is provided
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::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Generation
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23512
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23512@rel:R25-11#3f6b6f48
Content hash
3f6b6f48
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23512
Status: valid/unmigrated Version: rel:R25-11#bc8b5705 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_23512@rel:R25-11#bc8b5705
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a06a44132026-09-30
  • R19-11rel:R19-11#78781cac2026-10-14
  • R20-11rel:R20-11#1b96176f2026-10-14
  • R21-11rel:R21-11#f8f46bec2026-10-14
  • R22-11rel:R22-11#8b3d99122026-10-14
  • R23-11rel:R23-11#e3aedff12026-10-14
  • R24-11rel:R24-11#2e8d11c12026-10-14
  • R25-11rel:R25-11#bc8b57052026-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_50037] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature generation.

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

पैरामीटर-रहित विधि Start नए हस्ताक्षर निर्माण के लिए क्लास ara::crypto::cryp::SignerPrivateCtx के एक संदर्भ को आरंभ करती है [SWS_CRYPT_50037]। कॉल तुल्यकालिक रूप से होती है, इसे noexcept के रूप में घोषित किया गया है और सफल आरंभीकरण पर यह एक रिक्त ara::core::Result<void> या त्रुटि की स्थिति में एक त्रुटि कोड प्रदान करती है [SWS_CRYPT_50037]।

त्रुटि की स्थिति में, ऑपरेशन रोलबैक सिमेंटिक्स का समर्थन करता है [SWS_CRYPT_50037]। ara::crypto::CryptoErrc से परिभाषित त्रुटि कारणों में शामिल हैं:

  • kUninitializedContext: संदर्भ को पहले से कोई कुंजी प्रदान करके आरंभ नहीं किया गया था [SWS_CRYPT_50037]।
  • kEmptyKeySlot: एक कॉन्फ़िगर किया गया कुंजी स्लॉट वर्तमान में रिक्त है [SWS_CRYPT_50037]।
  • kUsageViolation: असाइन की गई कुंजी की अनुमतियों में kAllowSigGeneration शामिल नहीं है [SWS_CRYPT_50037]।
  • kBusyResource: ऑपरेशन के लिए आवश्यक संसाधन व्यस्त है [SWS_CRYPT_50037]।
  • kUnsupported: संदर्भ स्ट्रीमिंग का समर्थन नहीं करता है या हस्ताक्षर एल्गोरिदम अनिवार्य रूप से एक संदर्भ मान निर्दिष्ट करने की अपेक्षा करता है [SWS_CRYPT_50037]।

विनिर्देश के अनुसार, फ़ंक्शन thread-safe तथा exception safe है [SWS_CRYPT_50037]। यदि एल्गोरिदम को किसी विशिष्ट संदर्भ मान की आवश्यकता होती है, तो वैकल्पिक रूप से ओवरलोड किए गए वेरिएंट Start(ReadOnlyMemRegion context) का उपयोग किया जाना चाहिए [SWS_CRYPT_50038]। Start के सफल कॉल के बाद, हस्ताक्षरित किए जाने वाले संदेश के हिस्सों को Update के माध्यम से लगातार संसाधित किया जा सकता है [SWS_CRYPT_50039]।

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

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

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm requires setting a context value
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Generation

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50037
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50037@rel:R25-11#3387b0d8
Content hash
3387b0d8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50037
Status: valid/unmigrated Version: rel:R25-11#2ee5d052 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_50037@rel:R25-11#2ee5d052
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_50038] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature generation.

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

मेथड Start एक संदर्भ मान ([SWS_CRYPT_50038]) प्रदान करते हुए नए हस्ताक्षर निर्माण के लिए संदर्भ ara::crypto::cryp::SignerPrivateCtx के सिंक्रोनस इनिशियलाइज़ेशन का कार्य करती है। यह ReadOnlyMemRegion प्रकार का पैरामीटर context स्वीकार करती है और एक ara::core::Result<void> लौटाती है। फ़ंक्शन को noexcept=0 के रूप में निर्दिष्ट किया गया है, यह exception-safe है और थ्रेड-सुरक्षित घोषित किया गया है ([SWS_CRYPT_50038])।

त्रुटि की स्थिति में, रोलबैक सेमेंटिक्स के माध्यम से संदर्भ की स्थिति को अपरिवर्तित छोड़ दिया जाता है ([SWS_CRYPT_50038])। निर्दिष्ट त्रुटि कारण हैं:

  • UninitializedContext: यदि संदर्भ को पहले कोई कुंजी प्रदान करके इनिशियलाइज़ नहीं किया गया था।
  • ara::crypto::CryptoErrc::kUnsupported: यदि संदर्भ स्ट्रीमिंग का समर्थन नहीं करता है या एल्गोरिदम किसी संदर्भ मान की अनुमति नहीं देता है।
  • ara::crypto::CryptoErrc::kInvalidInputSize: यदि पास किए गए संदर्भ मान का बफ़र आकार अमान्य है।
  • ara::crypto::CryptoErrc::kEmptyKeySlot: यदि कोई कॉन्फ़िगर किया गया कुंजी-स्लॉट वर्तमान में रिक्त है।
  • ara::crypto::CryptoErrc::kUsageViolation: यदि कुंजी का अनुमत उपयोग हस्ताक्षर निर्माण (kAllowSig Generation) को शामिल नहीं करता है।
  • ara::crypto::CryptoErrc::kBusyResource: यदि कोई आवश्यक संसाधन व्यस्त है।

विशिष्ट प्रोसेसिंग प्रवाह में, हस्ताक्षरित किए जाने वाले डेटा को सफल प्रारंभ के बाद Update ([SWS_CRYPT_50039]) के माध्यम से क्रमिक रूप से पास किए जाने की संभावना है। प्रश्न Q-7b821391730c9d38 (खुला) यदि क्रिप्टोग्राफ़िक प्रक्रिया को किसी संदर्भ मान की आवश्यकता नहीं होती है, तो वैकल्पिक रूप से पैरामीटर रहित ओवरलोड Start() उपलब्ध है ([SWS_CRYPT_50037])।

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

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

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

Parameter (in)

ParameterBeschreibung
contexta context value

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm does not support setting a context value
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Generation
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the context is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50038
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50038@rel:R25-11#87cd76ea
Content hash
87cd76ea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50038
Status: valid/unmigrated Version: rel:R25-11#0f9c636d 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_50038@rel:R25-11#0f9c636d
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_50039] Upstream: RS_CRYPTO_02302

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

Update the signature generation context by a new part of the message.

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

[SWS_CRYPT_50039] में विधि Update का उपयोग हस्ताक्षर गणना की आंतरिक स्थिति को संदेश के एक और उप-भाग के साथ लगातार विस्तारित करने के लिए किया जाता है। कॉल तुल्यकालिक रूप से होती है और प्रकार ReadOnlyMemRegion के पास किए गए मेमोरी क्षेत्र data को संसाधित करती है। परिणाम के रूप में, फ़ंक्शन एक ara::core::Result<void> प्रदान करता है, जिसमें सफल प्रसंस्करण पर कोई मान नहीं होता है या अन्यथा यह एक त्रुटि कोड को संपुटित करता है [SWS_CRYPT_50039]।

त्रुटि की स्थिति में, वापसी मान रोलबैक सिमेंटिक्स रखते हैं [SWS_CRYPT_50039]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: तब घटित होता है जब हस्ताक्षर गणना पहले विधि Start() को कॉल करके शुरू नहीं की गई हो [SWS_CRYPT_50039]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: तब रिपोर्ट किया जाता है यदि प्रदान किए गए इनपुट डेटा का आकार संदर्भ द्वारा समर्थित नहीं है [SWS_CRYPT_50039]।

समवर्तीता और सुरक्षा के संबंध में, विधि को thread-safe तथा exception safe घोषित किया गया है [SWS_CRYPT_50039]। हस्ताक्षर संदर्भ के साथ अंतःक्रिया में, गणना के लिए अनिवार्य रूप से आवश्यक है कि प्रक्रिया Start() के साथ शुरू की गई हो। एकल कॉल के लिए अधिकतम स्वीकार्य बफ़र आकार को GetMaximumChunkSize() के माध्यम से पूछा जा सकता है [SWS_CRYPT_50042]; यह सीमा मान संभवतः उस ऊपरी सीमा का प्रतिनिधित्व करता है, जिसे पार करने पर kInvalidInputSize उत्पन्न होता है। प्रश्न Q-cf204a853a730365 (खुला)

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

Header-Datei#include "ara/crypto/cryp/signer_private_ctx.h"
Scopeclass ara::crypto::cryp::SignerPrivateCtx
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 signature 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_50039
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50039@rel:R25-11#e30a4a1e
Content hash
e30a4a1e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50039
Status: valid/unmigrated Version: rel:R25-11#5d5cf894 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_50039@rel:R25-11#5d5cf894
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_23501] Upstream: RS_CRYPTO_02204

using Sptr = std::shared_ptr<SignerPrivateCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/signer_private_ctx.h"
Scopeclass ara::crypto::cryp::SignerPrivateCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23501
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23501@rel:R25-11#c918a65d
Content hash
c918a65d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23501
Status: valid/unmigrated Version: rel:R25-11#61a401aa 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_23501@rel:R25-11#61a401aa
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f562001b2026-09-30
  • R19-11rel:R19-11#acb907532026-10-14
  • R20-11rel:R20-11#046264ae2026-10-14
  • R21-11rel:R21-11#046264ae2026-10-14
  • R22-11rel:R22-11#6b63922b2026-10-14
  • R23-11rel:R23-11#0b7610c02026-10-14
  • R24-11rel:R24-11#0b7610c02026-10-14
  • R25-11rel:R25-11#61a401aa2026-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