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

사용자 가이드AI 생성

단일 단계 또는 스트리밍 방식을 사용하여 비공개 암호화 키 기반의 전자 서명 생성 기능을 제공합니다.
AI 생성 미검증 모델: 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].

더 큰 데이터양 또는 분할된 메시지의 경우 스트리밍 경로는 3단계 패턴을 따릅니다:

  1. 초기화: 매개변수 없이 Start()을 호출하거나 [SWS_CRYPT_50037], 애플리케이션별 컨텍스트 버퍼를 포함하여 호출합니다 ReadOnlyMemRegion [SWS_CRYPT_50038].
  2. 처리: Update()을 통해 부분 메시지를 반복적으로 공급하며, 각 블록은 GetMaximumChunkSize()에 의해 지정된 상한을 준수해야 합니다 [SWS_CRYPT_50039] [SWS_CRYPT_50042].
  3. 완료 또는 중단: Finish()을 통해 서명 생성을 완료하고 대상 메모리에 기록하거나 [SWS_CRYPT_50040], Cancel()를 사용하여 진행 중인 작업을 조기에 중단합니다 [SWS_CRYPT_50041].
SignerPrivateCtx를 사용한 스트리밍 서명 생성ApplicationSignerPrivateCtxSetKey(key)Result<void>GetSignatureSize(signatureFormat)Result<size_t>Start()Result<void>loop각 데이터 블록(청크)마다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의 표준화된 오류 코드를 사용합니다. 흔한 오류 원인은 다음과 같습니다:

이 가이드는 릴리스 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;

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;

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.

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

메서드 Cancel()은 이전에 Start() 호출을 통해 시작되었으나 아직 완료되지 않은 ara::crypto::cryp::SignerPrivateCtx 클래스 내의 진행 중인 스트리밍 연산을 동기적으로 취소하는 데 사용됩니다 [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]. 해석: 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#145832c0
Content hash
145832c0
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.

AI 생성 미검증 모델: 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(으)로 명시되어 있으며 예외를 던져서는 안 됩니다(noexcept) [SWS_CRYPT_50040]. 유효한 호출을 위해서는 이전에 컨텍스트에서 생성 프로세스가 성공적으로 시작되었어야 합니다 [SWS_CRYPT_50040].

상호 작용

생성된 서명의 검증을 위한 직접적인 기능적 상대 역할은 메서드 ara::crypto::cryp::VerifierPublicCtx::Finish이(가) 수행합니다 [SWS_CRYPT_50022]. Finish()이(가) 계산만을 완료하고 중간 또는 최종 결과를 별도로 가져오는 해시 또는 MAC 계산용 컨텍스트([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#e4f6cd4a
Content hash
e4f6cd4a
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#6d636b7b
Content hash
6d636b7b
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#337c20de
Content hash
337c20de
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.

AI 생성 미검증 모델: 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: 전달된 키 객체가 현재 컨텍스트와 호환되지 않습니다 [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에는 KeySlot에 저장된 키를 서명 계산 시작 시점에 비로소 참조하도록 컨텍스트를 구성하는 오버로드 SetKey(KeySlot::Sptr)이 대안으로 존재합니다 [SWS_CRYPT_50036]. 서명 검증을 위해서는 검증 측에서 ara::crypto::cryp::VerifierPublicCtx 내의 PublicKey::Sptr를 갖는 기능적 대응 항목 SetKey가 사용됩니다 [SWS_CRYPT_24115].

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

AI 생성 미검증 모델: 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 클래스에 속하며, 스레드 안전 및 예외 안전으로 명세되어 있습니다[SWS_CRYPT_50036]. 이러한 슬롯 기반 변형 외에도 SignerPrivateCtx은(는) PrivateKey::Sptr 객체를 직접 수신하는 오버로드도 제공합니다[SWS_CRYPT_23515]. VerifierPublicCtx에서의 KeySlot를 사용한 서명 검증[SWS_CRYPT_50018]이나 KeyDerivationFunctionCtx에서의 키 유도[SWS_CRYPT_50010]와 같은 다른 암호화 컨텍스트에 대해서도 유사한 슬롯 바인딩이 존재합니다.

이 텍스트는 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#a9f11273
Content hash
a9f11273
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.

AI 생성 미검증 모델: 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].

동시성 및 예외 안전성과 관련하여 메서드는 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#fb23735f
Content hash
fb23735f
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.

AI 생성 미검증 모델: 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: 구성된 KeySlot이 현재 비어 있습니다[SWS_CRYPT_50037].
  • kUsageViolation: 할당된 키의 권한에 kAllowSigGeneration이(가) 포함되어 있지 않습니다[SWS_CRYPT_50037].
  • kBusyResource: 작업에 필요한 리소스가 사용 중입니다[SWS_CRYPT_50037].
  • kUnsupported: 컨텍스트가 스트리밍을 지원하지 않거나 서명 알고리즘에서 컨텍스트 값 지정이 반드시 필요합니다[SWS_CRYPT_50037].

명세에 따르면 이 함수는 스레드 안전하며 예외 안전합니다[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#8ead8b27
Content hash
8ead8b27
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.

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

메서드 Start은 컨텍스트 값을 제공하여 새로운 서명 생성을 위해 컨텍스트 ara::crypto::cryp::SignerPrivateCtx을(를) 동기적으로 초기화하는 역할을 합니다([SWS_CRYPT_50038]). 이 메서드는 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#ceac9816
Content hash
ceac9816
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.

AI 생성 미검증 모델: 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#912074d9
Content hash
912074d9
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#ed2887c2
Content hash
ed2887c2
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