DEENESPTFRRUARHIKOZHNL

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

[SWS_CRYPT_24100] Upstream: RS_CRYPTO_02204

class VerifierPublicCtx :             public CryptoContext {...};

Signature Verification Public key Context interface.

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

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

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

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

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

संदर्भ

इंटरफ़ेस ara::crypto::cryp::VerifierPublicCtx एक सार्वजनिक कुंजी का उपयोग करके असममित क्रिप्टोग्राफ़ी पर आधारित डिजिटल हस्ताक्षरों के सत्यापन के लिए कार्य करता है। यह सीधे कुंजी ऑब्जेक्ट्स ([SWS_CRYPT_24115]) या बाहरी कुंजी भंडारों ([SWS_CRYPT_50018]) के साथ इंटरैक्ट करता है और या तो एकल चरण (वन-शॉट) में या कई उप-चरणों में स्ट्रीम करके हस्ताक्षरों की जाँच करने के लिए मेथड्स प्रदान करता है।

जीवनचक्र

सत्यापन संदर्भ के इंस्टेंसेस को अनुप्रयोग के आंतरिक रूप से आमतौर पर स्मार्ट पॉइंटर टाइप एलियास ara::crypto::cryp::VerifierPublicCtx::Sptr के माध्यम से प्रबंधित किया जाता है, जिसे std::shared_ptr<VerifierPublicCtx> के रूप में परिभाषित किया गया है ([SWS_CRYPT_24101])। सभी इंटरफ़ेस मेथड्स को अपवाद-सुरक्षित (exception safe) और साथ ही थ्रेड-सुरक्षित घोषित किया गया है।

संदर्भ स्पष्ट रूप से सीमांकित परिचालन चरणों से गुजरता है। इसके इंस्टैंशिएशन के बाद, संदर्भ एक गैर-आरंभीकृत स्थिति में होता है, जिसमें सत्यापन कॉल्स को ara::crypto::CryptoErrc::kUninitializedContext के साथ अस्वीकार कर दिया जाता है ([SWS_CRYPT_50019], [SWS_CRYPT_24112])। केवल SetKey() का उपयोग करके एक उपयुक्त कुंजी के असाइनमेंट के माध्यम से संदर्भ संचालन-तैयार स्थिति में जाता है ([SWS_CRYPT_24115], [SWS_CRYPT_50018])। इस स्थिति से या तो एक परमाणु जाँच की जा सकती है या एक स्ट्रीमिंग सत्र प्रारंभ किया जा सकता है। स्ट्रीमिंग प्रक्रिया को समाप्त करने ([SWS_CRYPT_50022]) या निरस्त करने ([SWS_CRYPT_50023]) के बाद, संदर्भ संभवतः नई जाँचों के लिए फिर से तैयार रहेगा। प्रश्न Q-04655e144a821dbd (खुला)

verifier_states Uninitialisiert Uninitialisiert Bereit Bereit Uninitialisiert->Bereit SetKey() Bereit->Bereit SetKey() Bereit->Bereit Verify() [One-Shot] StreamingAktiv StreamingAktiv Bereit->StreamingAktiv Start() StreamingAktiv->Bereit Finish() StreamingAktiv->Bereit Cancel() StreamingAktiv->StreamingAktiv Update()

स्थिति आरेख: सत्यापन संदर्भ का जीवनचक्र और स्थिति संक्रमण। स्रोत: [SWS_CRYPT_24115], [SWS_CRYPT_50018], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023], [SWS_CRYPT_24112]

उपयोग पथ

हस्ताक्षर जाँच के लिए दो पूरक प्रसंस्करण पथ उपलब्ध हैं:

  • वन-शॉट सत्यापन: यदि पूर्ण संदेश मेमोरी में मौजूद है, तो SetKey() ([SWS_CRYPT_24115]) के माध्यम से कुंजी असाइनमेंट के बाद सीधे Verify() को कॉल किया जा सकता है ([SWS_CRYPT_24112])। यदि एल्गोरिदम अनुप्रयोग-विशिष्ट संदर्भ डेटा का समर्थन करता है या उसकी मांग करता है, तो अतिरिक्त संदर्भ बफ़र वाले ओवरलोड किए गए वेरिएंट का उपयोग किया जाता है ([SWS_CRYPT_50024])। दोनों वेरिएंट एक ara::core::Result<bool> लौटाते हैं, जिसका बूलियन मान हस्ताक्षर की वैधता को इंगित करता है।
  • स्ट्रीमिंग सत्यापन: बड़े डेटा वॉल्यूम या चरण दर चरण आने वाले डेटा ब्लॉकों के मामले में, SetKey() के बाद पहले Start() को कॉल किया जाता है ([SWS_CRYPT_50019], वैकल्पिक रूप से [SWS_CRYPT_50020] के अनुसार संदर्भ बफ़र के साथ)। इसके बाद, डेटा खंडों को Update() के साथ बार-बार फ़ीड किया जाता है ([SWS_CRYPT_50021])। अलग-अलग खंडों के लिए अधिकतम बफ़र आकार GetMaximumChunkSize() के माध्यम से पहले से निर्धारित किया जा सकता है ([SWS_CRYPT_50025])। हस्ताक्षर और उसके प्रारूप पहचानकर्ता को पास करके Finish() का कॉल समापन का निर्माण करता है ([SWS_CRYPT_50022])। एक चल रही स्ट्रीमिंग को किसी भी समय Cancel() के माध्यम से त्याग दिया जा सकता है ([SWS_CRYPT_50023])।
स्ट्रीमिंग मोड में हस्ताक्षर सत्यापन का अनुक्रमएप्लिकेशनVerifierPublicCtxSetKey(key)Result<void>Start()Result<void>loopडेटा ब्लॉक प्रोसेस करेंUpdate(data)Result<void>Finish(signature, signatureFormat)Result<bool>

अनुक्रम आरेख: स्ट्रीमिंग प्रक्रिया में हस्ताक्षर जाँच का चरणबद्ध क्रम। स्रोत: [SWS_CRYPT_24115], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022]

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

सभी स्थिति-परिवर्तनकारी और सत्यापित करने वाले मेथड्स ara::core::Result के साथ कार्य करते हैं और त्रुटियों पर रोलबैक सिमेंटिक्स रखते हैं:

  • कुंजी कॉन्फ़िगरेशन: यदि एल्गोरिदम के साथ असंगत कोई कुंजी या KeySlot पास किया जाता है, तो SetKey() त्रुटि CryptoErrc::kIncompatibleObject लौटाता है ([SWS_CRYPT_24115], [SWS_CRYPT_50018])। यदि कुंजी में उपयोग अधिकार kAllowSigVerification का अभाव है, तो कॉल CryptoErrc::kUsageViolation के साथ विफल हो जाता है ([SWS_CRYPT_24115])। इसके अतिरिक्त, SetKey() CryptoErrc::kUnsupported की रिपोर्ट करता है यदि संदर्भ विशेष रूप से केवल अन्य कुंजी रूप (KeySlot या PublicKey) को स्वीकार करता है।
  • प्रक्रिया और पूर्व-शर्त त्रुटियाँ: यदि Update(), Finish() या Cancel() को पूर्व सफल Start() कॉल के बिना कॉल किया जाता है, तो वे CryptoErrc::kProcessingNotStarted के साथ विफल हो जाते हैं ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023])। पूर्व कुंजी संदर्भ के बिना Start() या Verify() को कॉल करने से CryptoErrc::kUninitializedContext होता है ([SWS_CRYPT_50019], [SWS_CRYPT_24112])। संदर्भित लेकिन खाली KeySlots के मामले में CryptoErrc::kEmptyKeySlot की रिपोर्ट की जाती है।
  • डेटा और प्रारूप त्रुटियाँ: अमान्य बफ़र आकारों पर मेथड्स CryptoErrc::kInvalidInputSize के साथ प्रतिक्रिया देते हैं ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_24112])। असमर्थित हस्ताक्षर प्रारूप CryptoErrc::kUnsupportedFormat उत्पन्न करते हैं, जबकि संरचनात्मक रूप से दोषपूर्ण हस्ताक्षर CryptoErrc::kInvalidArgument ट्रिगर करते हैं ([SWS_CRYPT_50022], [SWS_CRYPT_24112])। व्यस्त हार्डवेयर संसाधनों के मामले में CryptoErrc::kBusyResource लौटाया जाता है।

यह गाइड विशेष रूप से AUTOSAR Adaptive Platform R25-11 के विनिर्देशों पर आधारित है।

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

टाइप उपनाम

1

क्लास आरेख

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

G nara__crypto__cryp__VerifierPublicCtx35 VerifierPublicCtx + Cancel() + Finish() + GetMaximumChunkSize() + SetKey() + Start() + Update() + Verify() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__VerifierPublicCtx35->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 verification and return the verification result.

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

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

virtual std::size_t GetMaximumChunkSize () const noexcept=0;
SetKey फ़ंक्शन 2

Configure the context to use the provided key.

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

Initialize the context for a new signature verification.

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

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

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

Verify the signature of the provided message in a single call.

ओवरलोड Verify 2
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_24112
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_50024

टाइप उपनाम

Sptr टाइप उपनाम

Smart pointer of the interface.

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

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

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

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

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

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

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

विनिर्देश इस विधि को noexcept अंकन के साथ थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (exception safe) के रूप में नामित करता है [SWS_CRYPT_50023]। व्याख्या: सफल निरस्तीकरण के बाद, संदर्भ संभवतः प्रसंस्करण शुरू होने से पहले की प्रारंभिक स्थिति में वापस आ जाना चाहिए, ताकि एक नया स्ट्रीमिंग ऑपरेशन शुरू किया जा सके। प्रश्न Q-d80d09c8a8311bbc (खुला)

crypt मॉड्यूल में इंटरैक्शन

समान हस्ताक्षर और त्रुटि प्रबंधन वाला यह एकीकृत निरस्तीकरण पैटर्न मॉड्यूल crypt के सभी स्ट्रीमिंग संदर्भों के लिए सुसंगत रूप से लागू होता है:

  • Message Authentication Codes के लिए MessageAuthnCodeCtx [SWS_CRYPT_50027],
  • डिजिटल हस्ताक्षर निर्माण के लिए SignerPrivateCtx [SWS_CRYPT_50041],
  • सममित एन्क्रिप्शन और डिक्रिप्शन के लिए SymmetricCipherCtx [SWS_CRYPT_50046],
  • क्रिप्टोग्राफ़िक हैश ऑपरेशनों के लिए HashFunctionCtx [SWS_CRYPT_50058],
  • असममित डिक्रिप्शन के लिए DecryptorPrivateCtx [SWS_CRYPT_50069],
  • प्रमाणीकृत एन्क्रिप्शन के लिए AuthCipherCtx [SWS_CRYPT_50077] तथा
  • असममित एन्क्रिप्शन के लिए EncryptorPublicCtx [SWS_CRYPT_50089]।

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

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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_50023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#41a94192
Content hash
41a94192
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated Version: rel:R25-11#ccbcbc55 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_50023@rel:R25-11#ccbcbc55
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_50022] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

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

Finish the signature verification and return the verification result.

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

ara::crypto::cryp::VerifierPublicCtx में मेथड Finish हस्ताक्षर सत्यापन को पूरा करता है और सत्यापन परिणाम लौटाता है [SWS_CRYPT_50022]। यह इनपुट बफ़र signature (प्रकार ReadOnlyMemRegion) के माध्यम से सत्यापित किए जाने वाले हस्ताक्षर को और signatureFormat (प्रकार FormatId) के माध्यम से इसके प्रारूप को स्वीकार करता है [SWS_CRYPT_50022]। कॉल सिंक्रोनस रूप से होता है और विनिर्देश के अनुसार थ्रेड-सेफ़ और एक्सेप्शन सेफ़ डिक्लेयर किया गया है [SWS_CRYPT_50022]।

रिटर्न मान के रूप में एक ara::core::Result<bool> कार्य करता है [SWS_CRYPT_50022]: हस्ताक्षर के सफल सत्यापन पर परिणाम में true होता है, और सामग्री की दृष्टि से अमान्य हस्ताक्षर के लिए false होता है। इसके विपरीत, यदि कोई प्रोसेसिंग एरर होती है, तो एक संबंधित एरर कोड लौटाया जाता है [SWS_CRYPT_50022]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: ऑपरेशन पहले सफलतापूर्वक प्रारंभ नहीं किया गया था (रोलबैक सेमांटिक्स) [SWS_CRYPT_50022]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: signature का बफ़र आकार अमान्य है (रोलबैक सेमांटिक्स) [SWS_CRYPT_50022]।
  • ara::crypto::CryptoErrc::kUnsupportedFormat: निर्दिष्ट प्रारूप signatureFormat समर्थित नहीं है (रोलबैक सेमांटिक्स) [SWS_CRYPT_50022]।
  • ara::crypto::CryptoErrc::kInvalidArgument: हस्ताक्षर निर्दिष्ट प्रारूप से मेल नहीं खाता है (रोलबैक सेमांटिक्स) [SWS_CRYPT_50022]।

क्रिप्टोग्राफ़िक प्रवाह में, यह फ़ंक्शन ara::crypto::cryp::SignerPrivateCtx::Finish [SWS_CRYPT_50040] के माध्यम से हस्ताक्षर निर्माण का समकक्ष बनता है, जो एक आउटपुट बफ़र में हस्ताक्षर लिखता है। सभी रिपोर्ट की गई एरर में रोलबैक सेमांटिक्स होता है [SWS_CRYPT_50022], जिससे विफलता की स्थिति में संदर्भ स्थिति सुसंगत बनी रहती है।

यह पाठ एक AI द्वारा तैयार किया गया है और केवल मार्गदर्शन के लिए है।

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

Parameter (in)

ParameterBeschreibung
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature generation has not been started sucessfully.
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50022
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50022@rel:R25-11#bde67415
Content hash
bde67415
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50022
Status: valid/unmigrated Version: rel:R25-11#4737b352 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_50022@rel:R25-11#4737b352
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_50025] Upstream: RS_CRYPTO_02309

virtual std::size_t GetMaximumChunkSize () const noexcept=0;

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

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

Rückgabewert

TypBeschreibung
std::size_tthe maximum buffer size in bytes

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

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

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

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

Configure the context to use the provided key.

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

विधि SetKey हस्ताक्षर सत्यापन ([SWS_CRYPT_24115]) के लिए एक ठोस सार्वजनिक कुंजी का उपयोग करने हेतु VerifierPublicCtx के इंस्टेंस को कॉन्फ़िगर करती है। पैरामीटर key के माध्यम से PublicKey::Sptr प्रकार का एक पॉइंटर पास किया जाता है। कॉल सिंक्रोनस रूप से की जाती है और एक ara::core::Result<void> लौटाती है, जो सफलता की स्थिति में खाली होती है या एक विशिष्ट त्रुटि कोड को समाहित करती है।

विनिर्देश के अनुसार ऑपरेशन को थ्रेड-सुरक्षित और अपवाद-सुरक्षित (exception safe) डिज़ाइन किया गया है ([SWS_CRYPT_24115])। यदि कुंजी बाइंडिंग के दौरान कोई त्रुटि होती है, तो सभी त्रुटि मामलों के लिए रोलबैक सिमेंटिक्स लागू होते हैं, ताकि संदर्भ एक सुसंगत स्थिति में बना रहे:

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

क्रिप्टोग्राफ़िक वर्कफ़्लो में, SetKey, SignerPrivateCtx::SetKey ([SWS_CRYPT_23515]) का सार्वजनिक समकक्ष बनता है। यदि कोई संदर्भ PublicKey::Sptr के माध्यम से सीधे कुंजी पास करने की अनुमति नहीं देता है या कुंजियों को सुरक्षित स्लॉट में प्रबंधित किया जाता है, तो वैकल्पिक रूप से KeySlot::Sptr का उपयोग करके ओवरलोड उपलब्ध है ([SWS_CRYPT_50018])।

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

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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
CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this signature verification context
CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Verification
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_24115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24115@rel:R25-11#a1730d5f
Content hash
a1730d5f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24115
Status: valid/unmigrated Version: rel:R25-11#4657cfda 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_24115@rel:R25-11#4657cfda
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b4f2582a2026-09-30
  • R20-11rel:R20-11#c67a48952026-10-14
  • R21-11rel:R21-11#68e4b4312026-10-14
  • R22-11rel:R22-11#c39e34c92026-10-14
  • R23-11rel:R23-11#8afac6e02026-10-14
  • R24-11rel:R24-11#e169f3652026-10-14
  • R25-11rel:R25-11#4657cfda2026-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_50018] 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 verification is started.

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

उपयोग

क्लास ara::crypto::cryp::VerifierPublicCtx का मेथड SetKey सत्यापन संदर्भ को उस कुंजी के उपयोग के लिए कॉन्फ़िगर करता है, जो पास किए गए KeySlot में संग्रहीत है [SWS_CRYPT_50018]। कुंजी का उपयोग उस समय किया जाता है, जब हस्ताक्षर सत्यापन शुरू किया जाता है [SWS_CRYPT_50018]।

पैरामीटर के रूप में KeySlot::Sptr प्रकार का एक स्मार्ट पॉइंटर keySlot उपयोग किया जाता है, जिसमें एक सार्वजनिक कुंजी शामिल होती है [SWS_CRYPT_50018]। यह फ़ंक्शन सिंक्रोनस रूप से काम करता है और सफल समापन या त्रुटि को इंगित करने के लिए एक ara::core::Result<void> लौटाता है [SWS_CRYPT_50018]।

त्रुटि प्रबंधन और सिमेंटिक्स

ऑपरेशन को noexcept और exception safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_50018]। यदि कोई त्रुटि उत्पन्न होती है, तो रोलबैक सिमेंटिक्स लागू होता है [SWS_CRYPT_50018]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: प्रदान किया गया KeySlot इस संदर्भ के साथ असंगत है [SWS_CRYPT_50018]।
  • ara::crypto::CryptoErrc::kUnsupported: संदर्भ केवल PublicKey को सीधे सेट करने का समर्थन करता है [SWS_CRYPT_50018]।

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

मेथड को थ्रेड-सुरक्षित (thread-safe) निर्दिष्ट किया गया है [SWS_CRYPT_50018]। KeySlot के विकल्प के रूप में, VerifierPublicCtx एक PublicKey को सीधे सेट करने के लिए एक ओवरलोड प्रदान करता है [SWS_CRYPT_24115]। एक KeySlot के माध्यम से संगत कुंजी कॉन्फ़िगरेशन समान रूप से अन्य संदर्भों जैसे कि SignerPrivateCtx [SWS_CRYPT_50036] या MessageAuthnCodeCtx [SWS_CRYPT_50026] में भी मौजूद है।

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

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

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a public 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 PublicKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50018@rel:R25-11#ead26794
Content hash
ead26794
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50018
Status: valid/unmigrated Version: rel:R25-11#9f29f516 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_50018@rel:R25-11#9f29f516
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_50019] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature verification.

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

उपयोग

इंटरफ़ेस ara::crypto::cryp::VerifierPublicCtx ([SWS_CRYPT_50019]) की तुल्यकालिक विधि Start() स्ट्रीमिंग संचालन में नए क्रिप्टोग्राफ़िक हस्ताक्षर सत्यापन के लिए संदर्भ को आरंभ करती है। फ़ंक्शन कोई इनपुट पैरामीटर स्वीकार नहीं करता है, इसे noexcept के रूप में घोषित किया गया है और यह एक ara::core::Result<void> लौटाता है, जो सफलता की स्थिति में रिक्त होता है।

त्रुटि प्रबंधन और रोलबैक

यदि निष्पादन के दौरान कोई त्रुटि होती है, तो रोलबैक सिमेंटिक्स ([SWS_CRYPT_50019]) प्रभावी होते हैं, जिससे संदर्भ एक सुसंगत स्थिति में बना रहता है। संभावित त्रुटि कारण हैं:

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

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

यद्यपि विनिर्देश विधि को थ्रेड-सुरक्षित ([SWS_CRYPT_50019]) के रूप में इंगित करता है, फिर भी किसी चल रहे सत्यापन के दौरान उसी संदर्भ इंस्टेंस पर समवर्ती (parallel) कॉल मौजूदा ऑपरेशन को रीसेट कर सकती है या व्यस्त संसाधनों के कारण विफल हो सकती है। प्रश्न Q-af5e08ff9d905a29 (खुला)

सफल आरंभीकरण के बाद, संदेश के हिस्सों को Update() ([SWS_CRYPT_50021]) के माध्यम से क्रमिक रूप से पास किया जाता है। चल रहे स्ट्रीमिंग ऑपरेशन को आवश्यकता पड़ने पर Cancel() ([SWS_CRYPT_50023]) के साथ समय से पहले निरस्त किया जा सकता है। यदि एल्गोरिदम अनिवार्य रूप से एक संदर्भ मान की मांग करता है, तो इसके बजाय ओवरलोड किए गए फ़ंक्शन Start(ReadOnlyMemRegion context) ([SWS_CRYPT_50020]) को कॉल किया जाना चाहिए।

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

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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 Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50019@rel:R25-11#004c9d51
Content hash
004c9d51
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50019
Status: valid/unmigrated Version: rel:R25-11#d79f5341 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_50019@rel:R25-11#d79f5341
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_50020] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new signature verification.

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

उपयोग

फंक्शन Start, [SWS_CRYPT_50020] के अनुसार नए हस्ताक्षर सत्यापन के लिए क्लास ara::crypto::cryp::VerifierPublicCtx के सत्यापन संदर्भ को इनिशियलाइज़ करता है। इनपुट पैरामीटर के रूप में यह प्रकार ReadOnlyMemRegion का context स्वीकार करता है, जो एक एप्लिकेशन-विशिष्ट संदर्भ मान प्रदान करता है। संदर्भ डेटा के बिना एक विकल्प के रूप में ओवरलोड [SWS_CRYPT_50019] मौजूद है। रिटर्न वैल्यू ara::core::Result<void> है; Interpretation: चूंकि न तो कॉलबैक और न ही भविष्य की वस्तुएं परिभाषित हैं, इसलिए कॉल को पूरी तरह से सिंक्रोनस रूप से संसाधित किया जाना चाहिए। प्रश्न Q-4e10cdb1a4343a3a (खुला)

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

त्रुटि के मामले में, फंक्शन ara::crypto::CryptoErrc से उपयुक्त एरर कोड के साथ एक ara::core::Result प्रदान करता है, जिसमें रोलबैक सिमेंटिक्स निर्दिष्ट है [SWS_CRYPT_50020]:

  • kUninitializedContext: संदर्भ को अभी तक कोई की असाइन करके इनिशियलाइज़ नहीं किया गया है।
  • kEmptyKeySlot: एक कॉन्फ़िगर किया गया KeySlot वर्तमान में खाली है।
  • kUsageViolation: असाइन की गई की के अनुमत उपयोग में kAllowSigVerification शामिल नहीं है।
  • kInvalidInputSize: पास किए गए संदर्भ मान का बफ़र आकार एल्गोरिदम के लिए अमान्य है।
  • kUnsupported: संदर्भ स्ट्रीमिंग का समर्थन नहीं करता है या एल्गोरिदम संदर्भ मान सेट करने का समर्थन नहीं करता है।
  • kBusyResource: एक आवश्यक संसाधन व्यस्त है।

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

[SWS_CRYPT_50020] के अनुसार, मेथड को thread-safe के साथ-साथ exception-safe के रूप में वर्गीकृत किया गया है। यह कोई एक्सेप्शन नहीं फेंकती है (noexcept)।

इंटरैक्शन

Start के सफल निष्पादन के बाद, इनपुट संदेश को Update के बार-बार कॉल्स के माध्यम से क्रमिक रूप से प्रेषित किया जा सकता है [SWS_CRYPT_50021]। Start द्वारा शुरू की गई चल रही स्ट्रीमिंग प्रक्रिया को आवश्यकता पड़ने पर Cancel के माध्यम से समय से पहले रद्द किया जा सकता है [SWS_CRYPT_50023]।

यह पाठ स्वचालित रूप से बनाया गया था। सभी विवरण पूरी तरह से AUTOSAR विनिर्देश पर आधारित हैं।

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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 Verification
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_50020
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50020@rel:R25-11#0a0ea4d8
Content hash
0a0ea4d8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50020
Status: valid/unmigrated Version: rel:R25-11#4700c295 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_50020@rel:R25-11#4700c295
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_50021] Upstream: RS_CRYPTO_02302

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

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

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

उपयोग

मेथड Update() हस्ताक्षर सत्यापन के संदर्भ को इनपुट संदेश के एक और भाग के साथ क्रमिक रूप से अपडेट करने का काम करती है [SWS_CRYPT_50021]। पैरामीटर के रूप में प्रकार ReadOnlyMemRegion का मेमोरी क्षेत्र data पास किया जाता है। फंक्शन एक ara::core::Result<void> लौटाता है; Interpretation: इस रिटर्न प्रकार के कारण, प्रोसेसिंग सिंक्रोनस रूप से होनी चाहिए। प्रश्न Q-f98391030b3b4684 (खुला)

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

एरर की स्थिति में, रोलबैक सिमेंटिक्स के साथ एक संबंधित एरर कोड लौटाया जाता है [SWS_CRYPT_50021]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: हस्ताक्षर सत्यापन पहले मेथड Start() को कॉल करके शुरू नहीं किया गया था [SWS_CRYPT_50021]।
  • ara::crypto::CryptoErrc::kInvalidInputSize: data में प्रदान किए गए डेटा का आकार समर्थित नहीं है [SWS_CRYPT_50021]।

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

ऑपरेशन को विनिर्देश में thread-safe और exception safe के रूप में वर्गीकृत किया गया है [SWS_CRYPT_50021]। कॉल से पहले, Start() के माध्यम से इनिशियलाइज़ेशन होना अनिवार्य है [SWS_CRYPT_50021]। kInvalidInputSize को होने से रोकने के लिए, एकल कॉल्स के लिए अधिकतम स्वीकार्य बफ़र आकार उसी संदर्भ की मेथड GetMaximumChunkSize() के माध्यम से पूछा जा सकता है [SWS_CRYPT_50025]। संदेश-वार हस्ताक्षर जनरेशन का पूरक समकक्ष SignerPrivateCtx में Update() प्रस्तुत करता है [SWS_CRYPT_50039]।

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

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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 verification 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_50021
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50021@rel:R25-11#471449b5
Content hash
471449b5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50021
Status: valid/unmigrated Version: rel:R25-11#353f95ae 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_50021@rel:R25-11#353f95ae
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

फ़ंक्शन Verify [SWS_CRYPT_24112] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message in a single call.

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

उपयोग

संदर्भ ara::crypto::cryp::VerifierPublicCtx की विधि Verify का उपयोग किसी प्रदान किए गए संदेश के हस्ताक्षर को एकल कॉल में सत्यापित करने के लिए किया जाता है [SWS_CRYPT_24112]। पैरामीटर के रूप में संदेश बफ़र message, हस्ताक्षर signature तथा प्रारूप signatureFormat पास किए जाते हैं [SWS_CRYPT_24112]। वापसी मान ara::core::Result<bool> में सफल सत्यापन पर true, बेमेल होने पर false या एक त्रुटि कोड [SWS_CRYPT_24112] शामिल होता है। व्याख्या: तुल्यकालिक (synchronous) परिणाम प्रकार के कारण, सत्यापन प्रक्रिया संभवतः कॉलिंग थ्रेड में अवरुद्ध (blocking) रूप से चलती है। प्रश्न Q-671054c6e2b581c6 (खुला)

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

फ़ंक्शन को exception safe और thread-safe के रूप में निर्दिष्ट किया गया है [SWS_CRYPT_24112]। त्रुटि की स्थिति में, त्रुटि कोड के लिए रोलबैक सिमेंटिक्स लागू होते हैं [SWS_CRYPT_24112]। संभावित त्रुटि कारणों में शामिल हैं:

  • UninitializedContext, यदि संदर्भ को किसी कुंजी (key) के साथ आरंभ नहीं किया गया था [SWS_CRYPT_24112],
  • कुंजी स्लॉट रिक्त होने पर ara::crypto::CryptoErrc::kEmptyKeySlot या कुंजी में अधिकार kAllowSig Verification न होने पर kUsageViolation [SWS_CRYPT_24112],
  • अमान्य बफ़र आकार होने पर ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_24112],
  • दोषपूर्ण या असंगत हस्ताक्षर प्रारूप होने पर ara::crypto::CryptoErrc::kUnsupportedFormat या kInvalidArgument [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kBusyResource, यदि आवश्यक संसाधन व्यस्त हैं [SWS_CRYPT_24112]।

इंटरैक्शन

एकल कॉल के लिए अधिकतम बफ़र आकार को GetMaximumChunkSize() के माध्यम से पूछा जा सकता है [SWS_CRYPT_50025]। यदि एल्गोरिदम अनिवार्य रूप से एक संदर्भ मान की मांग करता है, तो ara::crypto::CryptoErrc::kUnsupported लौटाया जाता है [SWS_CRYPT_24112]; इस स्थिति में अतिरिक्त context पैरामीटर वाले ओवरलोड का चयन किया जाना चाहिए [SWS_CRYPT_50024]। Message Authentication Codes के सत्यापन के लिए विभेदक रूप से ara::crypto::cryp::MessageAuthnCodeCtx::Verify मौजूद है [SWS_CRYPT_50031]।

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm requires a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format.
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 Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24112@rel:R25-11#6521a843
Content hash
6521a843
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24112
Status: valid/unmigrated Version: rel:R25-11#5528778e 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_24112@rel:R25-11#5528778e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fff71a402026-09-30
  • R19-11rel:R19-11#66da619a2026-10-14
  • R20-11rel:R20-11#a7cb40442026-10-14
  • R21-11rel:R21-11#4c73f9ac2026-10-14
  • R22-11rel:R22-11#9330d7cf2026-10-14
  • R23-11rel:R23-11#25763dfd2026-10-14
  • R24-11rel:R24-11#c2cd046c2026-10-14
  • R25-11rel:R25-11#5528778e2026-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

फ़ंक्शन Verify [SWS_CRYPT_50024] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message with context in a single call.

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

सिंक्रोनस विधि Verify एकल कॉल में उपयोगकर्ता-परिभाषित संदर्भ मान को ध्यान में रखते हुए पास किए गए संदेश के डिजिटल हस्ताक्षर की पुष्टि करती है ([SWS_CRYPT_50024])। इनपुट पैरामीटर के रूप में, यह विधि ReadOnlyMemRegion के रूप में बफ़र message, context और signature की तथा signatureFormat के माध्यम से हस्ताक्षर के प्रारूप की अपेक्षा करती है ([SWS_CRYPT_50024])। रिटर्न मान एक ara::core::Result<bool> है: इसमें सफल सत्यापन पर true, अमान्य हस्ताक्षर पर false या एक संगत त्रुटि कोड शामिल होता है ([SWS_CRYPT_50024])।

त्रुटि की स्थिति में रोलबैक सिमेंटिक्स लागू होता है ([SWS_CRYPT_50024])। विशिष्ट त्रुटि कोड में निम्नलिखित शामिल हैं:

  • UninitializedContext, यदि सत्यापन संदर्भ को अभी तक कुंजी मान के साथ इनिशियलाइज़ नहीं किया गया है ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kInvalidInputSize, अमान्य बफ़र आकार के मामले में ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupported, यदि चयनित हस्ताक्षर एल्गोरिदम संदर्भ मान निर्दिष्ट करने का समर्थन नहीं करता है ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupportedFormat या ara::crypto::CryptoErrc::kInvalidArgument, यदि निर्दिष्ट हस्ताक्षर प्रारूप समर्थित नहीं है या हस्ताक्षर प्रारूप के अनुरूप नहीं है ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUsageViolation, यदि अनुमत कुंजी उपयोग में kAllowSigVerification शामिल नहीं है, साथ ही ara::crypto::CryptoErrc::kEmptyKeySlot और ara::crypto::CryptoErrc::kBusyResource ([SWS_CRYPT_50024])।

इस विधि को const noexcept के रूप में घोषित किया गया है, इसे अपवाद-सुरक्षित माना जाता है और इसे thread-safe के रूप में निर्दिष्ट किया गया है ([SWS_CRYPT_50024])। संदर्भ के साथ मिलकर, एकल कॉल के लिए अधिकतम बफ़र आकार GetMaximumChunkSize के माध्यम से निर्धारित किया जा सकता है ([SWS_CRYPT_50025])। बिना संदर्भ वाले सत्यापनों के लिए, Verify का वैकल्पिक ओवरलोड उपलब्ध है ([SWS_CRYPT_24112])।

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

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
contexta user supplied "context"
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm does not support a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format
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 Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50024
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50024@rel:R25-11#128ffadd
Content hash
128ffadd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50024
Status: valid/unmigrated Version: rel:R25-11#424fa98e 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_50024@rel:R25-11#424fa98e
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_24101] Upstream: RS_CRYPTO_02204

using Sptr = std::shared_ptr<VerifierPublicCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24101@rel:R25-11#ad14e359
Content hash
ad14e359
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24101
Status: valid/unmigrated Version: rel:R25-11#44b9f060 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_24101@rel:R25-11#44b9f060
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4ff468462026-09-30
  • R19-11rel:R19-11#723b4f232026-10-14
  • R20-11rel:R20-11#03e0c2472026-10-14
  • R21-11rel:R21-11#03e0c2472026-10-14
  • R22-11rel:R22-11#cd4d7bb92026-10-14
  • R23-11rel:R23-11#4372989f2026-10-14
  • R24-11rel:R24-11#4372989f2026-10-14
  • R25-11rel:R25-11#44b9f0602026-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