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

사용자 가이드AI 생성

단일 단계 또는 다단계 스트리밍 방식을 사용하는 비대칭 전자 서명 검증 기능을 제공합니다.
AI 생성 미검증 모델: 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])와 직접 상호작용하며, 서명을 단일 단계(원샷)로 검증하거나 여러 세부 단계로 스트리밍 검증할 수 있는 메서드를 제공합니다.

수명 주기

검증 컨텍스트의 인스턴스는 애플리케이션 내부에서 일반적으로 std::shared_ptr<VerifierPublicCtx>로 정의된 스마트 포인터 타입 에일리어스 ara::crypto::cryp::VerifierPublicCtx::Sptr을 통해 관리됩니다([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]). 또한 컨텍스트가 다른 형태의 키(KeySlot 또는 PublicKey)만을 허용하는 경우 SetKey()은 CryptoErrc::kUnsupported을 보고합니다.
  • 시퀀스 및 사전 조건 오류: 이전에 성공한 Start() 호출 없이 Update(), Finish() 또는 Cancel()가 호출되면 CryptoErrc::kProcessingNotStarted로 실패합니다([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023]). 사전에 키 참조 없이 Start() 또는 Verify()를 호출하면 CryptoErrc::kUninitializedContext이 발생합니다([SWS_CRYPT_50019], [SWS_CRYPT_24112]). 참조되었으나 비어 있는 KeySlot의 경우 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 사양만을 기반으로 한다.

멤버 맵

클래스 다이어그램

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;

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.

AI 생성 미검증 모델: 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의 순수 가상 메서드로 정의되어 있습니다 [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 모듈의 모든 스트리밍 컨텍스트에 일관되게 적용됩니다:

이 사용 지침은 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#f5c14cfa
Content hash
f5c14cfa
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.

AI 생성 미검증 모델: 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]. 호출은 동기적으로 수행되며 사양에 따라 thread-safe 및 exception safe로 선언되어 있습니다 [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#742e060e
Content hash
742e060e
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#e7f9f8ca
Content hash
e7f9f8ca
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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 0edd4bb26214 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

메서드 SetKey은 서명 검증을 위해 특정 공개 키를 사용하도록 VerifierPublicCtx의 인스턴스를 구성합니다([SWS_CRYPT_24115]). 매개변수 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#63cee5a9
Content hash
63cee5a9
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.

AI 생성 미검증 모델: 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#10210d03
Content hash
10210d03
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.

AI 생성 미검증 모델: 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])으로 명시하고 있지만, 검증이 진행 중인 동안 동일한 컨텍스트 인스턴스에서 병렬 호출이 발생하면 기존 작업이 초기화되거나 사용 중인 리소스로 인해 실패할 가능성이 높습니다. 질문 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#42e9b6e2
Content hash
42e9b6e2
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.

AI 생성 미검증 모델: 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>입니다. 해석: 콜백이나 미래(future) 객체가 정의되어 있지 않으므로 호출은 순수하게 동기식으로 처리될 것으로 추정됩니다. 질문 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#fe0c56e0
Content hash
fe0c56e0
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.

AI 생성 미검증 모델: 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#4cabb322
Content hash
4cabb322
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.

AI 생성 미검증 모델: 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]. 해석: 동기 결과 타입으로 인해 검증 프로세스는 호출 스레드에서 블로킹 방식으로 실행될 것으로 추정됩니다. 질문 Q-671054c6e2b581c6 (열림)

오류 처리 및 동시성

이 함수는 exception safe 및 thread-safe로 명세되어 있습니다 [SWS_CRYPT_24112]. 오류 발생 시 오류 코드에 대해 롤백 시맨틱이 적용됩니다 [SWS_CRYPT_24112]. 가능한 오류 원인은 다음과 같습니다:

  • 컨텍스트가 키로 초기화되지 않은 경우 UninitializedContext [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]. 메시지 인증 코드 검증을 위해 구분되는 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#5915982e
Content hash
5915982e
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.

AI 생성 미검증 모델: 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]),
  • 허용된 키 사용에 kAllowSigVerification이(가) 포함되지 않는 경우 ara::crypto::CryptoErrc::kUsageViolation, 그리고 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#4d598c30
Content hash
4d598c30
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#d05e63db
Content hash
d05e63db
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