DEENESPTFRRUARHIKOZHNL

클래스 ara::crypto::cryp::EncryptorPublicCtx

[SWS_CRYPT_50173] Upstream: RS_CRYPTO_02201

class EncryptorPublicCtx :             public CryptoContext {...};

Interface for asymmetric encryption.

Header-Datei#include "ara/crypto/cryp/encryptor_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 · 온도: 제어 불가 · 프롬프트: 9ba841f18186 출처 열린 질문 (2)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

단일 단계로 또는 다중 파트 스트리밍 작업을 통해 데이터를 비대칭 암호화합니다.

이 인터페이스는 AUTOSAR Adaptive Platform에서 일반 텍스트 데이터의 비대칭 암호화에 사용되며 제공된 스마트 포인터 [SWS_CRYPT_50174]을 통해 관리됩니다. 적절한 공개 키를 할당한 후 메시지는 단일 실행으로 콤팩트하게 변환되거나 다중 파트 스트리밍 세션을 통해 연속적으로 변환될 수 있습니다 [SWS_CRYPT_50090]. 올바른 처리를 위해 버퍼 크기를 미리 계산해야 하며, 컨텍스트의 모든 작업은 예외 안전 및 스레드 안전으로 명시되어 있습니다.

컨텍스트

C++ 클래스 ara::crypto::cryp::EncryptorPublicCtx은 AUTOSAR Adaptive Platform에서 비대칭 데이터 암호화를 위한 표준화된 인터페이스를 제공합니다. 이 클래스는 클라이언트 애플리케이션이 비대칭 공개 키를 사용하여 일반 텍스트 데이터를 암호화하는 데 사용됩니다. 이때 암호화 키의 구성은 키 객체([SWS_CRYPT_50175])를 통해 직접 수행되거나 키 저장 위치에 대한 참조(KeySlot, [SWS_CRYPT_50086])를 통해 수행될 수 있습니다. 데이터 전달은 메모리 효율적인 버퍼 영역(일반 텍스트 데이터의 경우 ReadOnlyMemRegion, 암호문 출력의 경우 ReadWriteMemRegion)을 통해 이루어집니다.

수명 주기

컨텍스트의 인스턴스는 타입 별칭 Sptr에 정의된 공유 포인터 std::shared_ptr<EncryptorPublicCtx>을 통해 관리됩니다([SWS_CRYPT_50174]). 생성 자체는 이 인터페이스 정의의 일부가 아니며, 아마도 Crypto 아키텍처의 상위 팩토리 컴포넌트를 통해 인스턴스화가 수행될 것입니다. 질문 Q-5b7490ba113bb861 (열림) 객체는 수명 주기 동안 명확하게 정의된 상태를 거칩니다:

  • 초기화되지 않음: 인스턴스화 직후 컨텍스트는 아직 키를 보유하지 않습니다. 이 상태에서는 데이터 처리 작업이 허용되지 않습니다.
  • 구성됨 (준비 완료): PublicKey([SWS_CRYPT_50175]) 또는 KeySlot([SWS_CRYPT_50086])을 사용하여 SetKey()을 호출하면 컨텍스트가 사용 준비 상태가 됩니다. 이 상태에서는 단일 단계 암호화를 실행하거나 스트리밍 세션을 시작할 수 있습니다.
  • 스트리밍 활성: Start()([SWS_CRYPT_50087])을 호출하면 컨텍스트가 스트리밍 상태로 전환됩니다. 연속적인 데이터 블록은 Update()([SWS_CRYPT_50176])를 통해 처리됩니다. 세션은 Finish()([SWS_CRYPT_50088])로 완료되거나 Cancel()([SWS_CRYPT_50089])으로 중단되며, 이를 통해 컨텍스트는 다시 구성됨 상태로 복귀합니다.

클래스의 모든 메서드는 예외 안전(exception safe) 및 스레드 안전(thread-safe)으로 명시되어 있습니다. 스트리밍 작업이 아직 완료되지 않은 상태에서 컨텍스트가 파괴되면, 기본 구현이 할당된 버퍼를 정리하고 세션을 암시적으로 폐기할 것으로 보입니다. 질문 Q-3eadc946a0bdbdfd (열림)

Lebenszyklus Uninitialized 초기화되지 않음 Configured Konfiguriert (Bereit) Uninitialized->Configured SetKey() Configured->Configured SetKey() / Encrypt() Streaming Streaming aktiv Configured->Streaming Start() Streaming->Configured Finish() / Cancel() Streaming->Streaming Update()

상태 다이어그램: 구성부터 변환까지 컨텍스트의 수명 주기 및 상태 전이. 출처: [SWS_CRYPT_50086], [SWS_CRYPT_50175], [SWS_CRYPT_50087], [SWS_CRYPT_50176], [SWS_CRYPT_50088], [SWS_CRYPT_50089], [SWS_CRYPT_50090]

사용 경로

이 클래스는 두 가지 처리 모드를 지원합니다: 전체 데이터 세트를 위한 단일 단계 처리와 분할된 데이터 스트림을 위한 다단계 스트리밍입니다. 암호화를 수행하기 전에 애플리케이션은 버퍼 한계를 고려해야 합니다:

  • GetMinimumChunkSize()` (<a class="spec-record-ref" data-req="SWS_CRYPT_50178">[SWS_CRYPT_50178]</a>) und <code>GetMaximumChunkSize()([SWS_CRYPT_50091])을 통해 개별 호출에 대해 지원되는 최소 및 최대 입력 크기를 확인할 수 있습니다.
  • 출력 버퍼의 필요한 용량은 사전에 GetRequiredOutputBufferSize()([SWS_CRYPT_50177])으로 조회해야 합니다. 이때 매개변수 isFinal는 계산이 중간 단계(false)를 위한 것인지 또는 최종 호출이나 단일 단계(true)를 위한 것인지를 제어합니다.

스트리밍 암호화의 일반적인 흐름은 다음 단계로 나뉩니다:

  1. 유효한 PublicKey([SWS_CRYPT_50175])을 사용하여 SetKey()을 통한 키 할당.
  2. Start()([SWS_CRYPT_50087]) 호출을 통한 스트리밍 세션 초기화.
  3. GetRequiredOutputBufferSize(inputSize, false)([SWS_CRYPT_50177])을 사용하여 중간 블록에 필요한 출력 버퍼 크기 계산.
  4. Update()([SWS_CRYPT_50176])을 통한 데이터 블록의 반복 변환.
  5. 마지막 블록을 위한 버퍼 크기 확인(isFinal = true) 및 Finish()([SWS_CRYPT_50088])을 통한 작업 완료.

한 번에 처리할 수 있는 콤팩트한 데이터의 경우, Encrypt()([SWS_CRYPT_50090])은 Start, Update 및 Finish 단계로 나누지 않는 직접 단일 단계 호출을 제공합니다.

비대칭 스트리밍 암호화 시퀀스애플리케이션EncryptorPublicCtxUse Case: 구성 및 초기화SetKey(key)Result<void>Start()Result<void>Use Case: Streaming-VerarbeitungGetRequiredOutputBufferSize(inputSize, false)Result<size_t>Update(in, out)Result<size_t> (암호문 길이)Use Case: AbschlussGetRequiredOutputBufferSize(finalInputSize, true)Result<size_t>Finish(finalIn, out)Result<size_t> (최종 암호문 길이)

시퀀스 다이어그램: 버퍼 크기 확인을 포함한 다중 파트 스트리밍 암호화의 일반적인 흐름. 출처: [SWS_CRYPT_50175], [SWS_CRYPT_50087], [SWS_CRYPT_50177], [SWS_CRYPT_50176], [SWS_CRYPT_50088]

오류 시나리오

모든 메서드는 오류 신호 전달을 위해 ara::core::Result을 사용하며 오류 발생 시 롤백 시맨틱을 보장합니다:

이 가이드는 AUTOSAR Adaptive Platform 릴리스 R25-11의 요구사항을 기반으로 하며, ara::crypto::cryp::EncryptorPublicCtx 클래스의 명세를 요약합니다.

멤버 맵

클래스 다이어그램

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

G nara__crypto__cryp__EncryptorPublicCtx829 EncryptorPublicCtx + Cancel() + Encrypt() + Finish() + GetMaximumChunkSize() + GetMinimumChunkSize() + GetRequiredOutputBufferSize() + SetKey() + Start() + Update() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__EncryptorPublicCtx829->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;
Encrypt 함수

Encrypt data in a single-call.

virtual ara::core::Result< std::size_t > Encrypt (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;
Finish 함수

Finalize the encryption.

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

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

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

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

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

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;
SetKey 함수 2

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

오버로드 SetKey 2
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50086
virtual ara::core::Result< void > SetKey (PublicKey::Sptr key) noexcept=0; SWS_CRYPT_50175
Start 함수

Initialize the context for a new encryption.

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

Encrypt a data buffer.

virtual ara::core::Result< std::size_t > Update (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

타입 별칭

Sptr 타입 별칭

Smart pointer of the interface.

메서드 문서

함수 Cancel [SWS_CRYPT_50089] 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 · 온도: 제어 불가 · 프롬프트: c2111af75063 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

Cancel() 메서드는 이전에 Start()을(를) 통해 시작되어 아직 완료되지 않은 ara::crypto::cryp::EncryptorPublicCtx 컨텍스트의 활성 스트리밍 작업을 중단합니다[SWS_CRYPT_50089]. 이 메서드는 전달 매개변수를 받지 않으며, 성공 시 비어 있는 ara::core::Result<void>을(를) 반환합니다[SWS_CRYPT_50089]. 시그니처가 Future가 아닌 Result를 즉시 반환하므로 중단은 동기식으로 실행될 것으로 보입니다. 질문 Q-cd18e56d693fe1a4 (열림)

오류 처리 및 동시성

데이터 처리가 사전에 Start()을(를) 통해 시작되지 않은 경우, 이 작업은 롤백 시맨틱을 준수하면서 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted과(와) 함께 실패합니다[SWS_CRYPT_50089]. 명세에 따르면 이 인터페이스는 noexcept(으)로 선언되어 있고, 예외에 안전(exception safe)하며, 동시 접근에 대해 스레드 안전(thread-safe)으로 분류되어 있습니다[SWS_CRYPT_50089].

암호화 스택에서의 상호작용

Cancel()을(를) 통해 구현된 중단 동작은 암호화 모듈의 상태 저장 스트리밍 작업에 대한 통일된 설계 패턴을 따릅니다. 동일한 오류 시맨틱을 가진 유사한 인터페이스가 다음에 대해 존재합니다:

이 텍스트는 AI에 의해 작성되었으며 AUTOSAR Adaptive R25-11을 기반으로 합니다.

구현자 가이드 준비 중 (복잡도 I1)

Header-Datei#include "ara/crypto/cryp/encryptor_public_ctx.h"
Scopeclass ara::crypto::cryp::EncryptorPublicCtx
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_50089
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50089@rel:R25-11#4823bd68
Content hash
4823bd68
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50089
Status: valid/unmigrated Version: rel:R25-11#e205d10b 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_50089@rel:R25-11#e205d10b
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

함수 Encrypt [SWS_CRYPT_50090] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Encrypt (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Encrypt data in a single-call.

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

동기식 메서드 Encrypt는 단일 호출로 평문 데이터를 암호화하는 데 사용됩니다([SWS_CRYPT_50090]). 이 메서드는 버퍼 in(ReadOnlyMemRegion)에서 입력 데이터를 전달받고 암호문을 출력 버퍼 out(ReadWriteMemRegion)에 씁니다([SWS_CRYPT_50090]). 반환값 ara::core::Result<std::size_t>은 성공 시 실제로 기록된 출력 데이터의 크기를 제공하며, 이는 out의 전체 용량보다 작을 수 있습니다([SWS_CRYPT_50090]).

동시성과 관련하여 이 함수는 스레드 안전(thread-safe) 및 예외 안전(exception safe)으로 명세되어 있습니다([SWS_CRYPT_50090]).

EncryptorPublicCtx 컨텍스트와의 상호작용에서 호출 전에 다음 버퍼 제한을 준수해야 합니다:

  • 입력 크기는 [SWS_CRYPT_50178](GetMinimumChunkSize) 및 [SWS_CRYPT_50091](GetMaximumChunkSize)에서 지정한 제한 내에 있어야 합니다.
  • 출력 버퍼 out의 최대 필요 용량은 매개변수 isFinal = true와 함께 GetRequiredOutputBufferSize를 통해 사전에 계산될 수 있습니다([SWS_CRYPT_50177]).

모든 오류 사례는 롤백 시맨틱을 갖습니다([SWS_CRYPT_50090]). ara::crypto::CryptoErrc에 정의된 오류는 다음과 같습니다:

  • kUninitializedContext: 키를 제공하여 컨텍스트를 초기화하지 않았습니다([SWS_CRYPT_50090]).
  • kEmptyKeySlot: 구성된 KeySlot이 비어 있습니다 ([SWS_CRYPT_50090]).
  • kIncompatibleObject: 키 유형이 변환과 일치하지 않습니다([SWS_CRYPT_50090]).
  • kUsageViolation: 키 사용이 데이터 암호화를 허용하지 않습니다(kAllowDataEncryption)([SWS_CRYPT_50090]).
  • kInsufficientCapacity: 버퍼 out이(가) 너무 작습니다([SWS_CRYPT_50090]).
  • kInvalidInputSize 또는 kInvalidArgument: 입력 크기를 처리할 수 없거나 입력 데이터가 유효하지 않습니다([SWS_CRYPT_50090]).
  • kUnsupported: 단일 호출 암호화가 지원되지 않습니다([SWS_CRYPT_50090]).
  • kBusyResource: 필요한 리소스가 사용 중입니다 ([SWS_CRYPT_50090]).

이 사용 지침은 AUTOSAR 사양을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 I1)

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing the plaintext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the encrypted data is written to

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single-call encryption is not supported
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer cannot be processed
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided input data contains invalid data
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 kAllowData Encryption
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if type of the key is incompatible to the transformation

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50090
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50090@rel:R25-11#fc365254
Content hash
fc365254
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50090
Status: valid/unmigrated Version: rel:R25-11#6de65ef2 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_50090@rel:R25-11#6de65ef2
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_50088] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Finalize the encryption.

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

사용

Finish 메서드는 ara::crypto::cryp::EncryptorPublicCtx 컨텍스트에서 비대칭 암호화 작업을 완료합니다[SWS_CRYPT_50088]. 호출은 동기식으로 수행되며 noexcept, exception-safe 및 thread-safe로 명세되어 있습니다. 매개변수로서 함수는 in(ReadOnlyMemRegion)를 통해 최종 평문 단편을 전달받고 결과 암호문 데이터를 출력 버퍼 out(ReadWriteMemRegion)에 씁니다. out에 필요한 버퍼 크기는 GetRequiredOutputBufferSize()를 통해 사전에 확인할 수 있습니다. 반환값 ara::core::Result<std::size_t>은 성공 시 실제로 기록된 바이트 수를 제공하며, 이는 출력 버퍼의 전체 용량보다 작을 수 있습니다[SWS_CRYPT_50088].

오류 처리 및 동시성

모든 오류 사례는 롤백 시맨틱을 가지므로 실패 시에도 컨텍스트 상태가 일관되게 유지됩니다[SWS_CRYPT_50088]. 메서드는 ara::crypto::CryptoErrc의 다음 특정 오류 코드를 보고합니다:

  • kProcessingNotStarted: 데이터 처리가 사전에 Start() 호출을 통해 시작되지 않았습니다.
  • kInsufficientCapacity: 제공된 출력 버퍼 out의 크기가 너무 작게 설정되었습니다.
  • kInvalidInputSize: in의 버퍼 크기를 컨텍스트에서 처리할 수 없습니다.
  • kInvalidArgument: 전달된 입력 데이터에 유효하지 않은 값이 포함되어 있습니다.
  • kUnsupported: 구체적인 컨텍스트에서 스트림 처리가 지원되지 않습니다.

상호 작용

완료 처리는 암호화 처리 흐름을 마무리합니다[SWS_CRYPT_50088]. 복호화를 위한 상호보완적 대상으로는 DecryptorPrivateCtx::Finish [SWS_CRYPT_50068]이(가) 동작하며, 대칭 암호화 분야에서는 SymmetricCipherCtx::Finish [SWS_CRYPT_50045]이(가) 유사한 흐름 패턴을 제공합니다.

이 텍스트는 명세를 기반으로 AI 프로세스를 통해 생성되었습니다.

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the plaintext

Parameter (out)

ParameterBeschreibung
outan output data buffer that contains encrypted data. The required size of this buffer can be queried using GetRequiredOutputBuffer Size()

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer cannot be processed
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided input data contains invalid data
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50088
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50088@rel:R25-11#84734122
Content hash
84734122
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50088
Status: valid/unmigrated Version: rel:R25-11#3b39f5a6 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_50088@rel:R25-11#3b39f5a6
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_50091] Upstream: RS_CRYPTO_02309

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

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

Header-Datei#include "ara/crypto/cryp/encryptor_public_ctx.h"
Scopeclass ara::crypto::cryp::EncryptorPublicCtx
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_50091
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50091@rel:R25-11#d6c351dd
Content hash
d6c351dd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50091
Status: valid/unmigrated Version: rel:R25-11#45b93821 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_50091@rel:R25-11#45b93821
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

함수 GetMinimumChunkSize [SWS_CRYPT_50178] Upstream: RS_CRYPTO_02309

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

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

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the minimum 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_50178
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50178@rel:R25-11#1ad7ba66
Content hash
1ad7ba66
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50178
Status: valid/unmigrated Version: rel:R25-11#96524bdd 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_50178@rel:R25-11#96524bdd
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

함수 GetRequiredOutputBufferSize [SWS_CRYPT_50177] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

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

Parameter (in)

ParameterBeschreibung
inputSizesize of input data
isFinalif true, calculate maximum required output buffer size for Finish() or Encrypt(), otherwise for Update()

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required capacity of the output buffer (in bytes) or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by deploying a key and setting the transformation direction

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50177
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50177@rel:R25-11#8d398f7c
Content hash
8d398f7c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50177
Status: valid/unmigrated Version: rel:R25-11#7b76dbd4 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_50177@rel:R25-11#7b76dbd4
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_50086] 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 encryption is started.

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

사용법 및 호출 컨텍스트

ara::crypto::cryp::EncryptorPublicCtx 인터페이스(헤더 파일 ara/crypto/cryp/encryptor_public_ctx.h)의 순수 가상 메서드 SetKey는 비대칭 암호화 연산을 위한 키를 할당하는 데 사용됩니다[SWS_CRYPT_50086]. 매개변수로는 PublicKey을(를) 포함해야 하는 KeySlot::Sptr 유형의 스마트 포인터 keySlot가 전달됩니다[SWS_CRYPT_50086]. 호출은 동기식으로 수행되며 비어 있는 ara::core::Result<void>를 통해 성공을 알립니다. 시맨틱에 있어 핵심적인 점은 슬롯에 저장된 키가 암호화가 시작되는 시점에 비로소 참조된다는 것입니다[SWS_CRYPT_50086]. (해석: 키 확인이 실제 암호화 시작 시에 비로소 이루어지므로, 이 시작 시점 전에 슬롯 내용이 업데이트되어도 여전히 적용될 것으로 보입니다.) 질문 Q-25c5d462aafde8a1 (열림)

오류 처리

구성에 실패하면 결과 객체에 롤백 시맨틱을 갖는 오류 코드가 반환됩니다[SWS_CRYPT_50086]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: 제공된 keySlot이(가) 이 컨텍스트와 호환되지 않을 때 보고됩니다[SWS_CRYPT_50086].
  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 컨텍스트 구현이 PublicKey의 직접 설정만을 지원하고 KeySlot를 통한 키 바인딩을 허용하지 않을 때 발생합니다[SWS_CRYPT_50086].

동시성 및 상호 작용

연산은 noexcept(으)로 선언되어 있고, 예외 안전(exception safe)하며, 동시 사용에 대해 스레드 안전(thread-safe)으로 명세되어 있습니다[SWS_CRYPT_50086].

KeySlot를 통한 간접 키 참조 개념은 VerifierPublicCtx::SetKey [SWS_CRYPT_50018] 및 KeyEncapsulatorPublicCtx::SetKey [SWS_CRYPT_50012]와 같은 다른 비대칭 컨텍스트에서도 유사하게 찾아볼 수 있습니다. 이는 [SWS_CRYPT_24115] 또는 [SWS_CRYPT_21815]에서와 같이 키 객체를 직접 전달받는 메서드와 구별됩니다.

이 사용 지침은 AUTOSAR 사양을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a PublicKey.

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_50086
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50086@rel:R25-11#4b8520cc
Content hash
4b8520cc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50086
Status: valid/unmigrated Version: rel:R25-11#bd5ede4d 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_50086@rel:R25-11#bd5ede4d
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_50175] 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 · 온도: 제어 불가 · 프롬프트: 09de2ed1c4fc 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

클래스 ara::crypto::cryp::EncryptorPublicCtx의 가상 메서드 SetKey은(는) 제공된 공개 키를 사용하도록 컨텍스트를 구성합니다 [SWS_CRYPT_50175]. 매개변수 key(유형 PublicKey::Sptr)을(를) 통해 암호화에 사용할 키 객체가 전달됩니다 [SWS_CRYPT_50175]. 실행은 동기식으로 이루어지며, 성공 시 값을 포함하지 않는 ara::core::Result<void>을(를) 반환합니다 [SWS_CRYPT_50175].

오류 처리

구성 중 오류가 발생하면 정의된 롤백 시맨틱과 함께 해당 오류 코드가 보고됩니다 [SWS_CRYPT_50175]:

  • ara::crypto::CryptoErrc::kUsageViolation: 키의 허용된 용도가 데이터 암호화(kAllowDataEncryption)를 허용하지 않습니다 [SWS_CRYPT_50175].
  • ara::crypto::CryptoErrc::kIncompatibleObject: 전달된 키 객체가 이 암호화 컨텍스트와 호환되지 않습니다 [SWS_CRYPT_50175].
  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 컨텍스트 구현이 KeySlot을(를) 통한 바인딩만을 독점적으로 지원합니다 [SWS_CRYPT_50175].

동시성 및 제약사항

이 인터페이스는 noexcept(으)로 정의되어 있으며 thread-safe 및 exception safe인 동작을 명시합니다 [SWS_CRYPT_50175]. 롤백 시맨틱 덕분에 오류 발생 시 컨텍스트는 이전 상태를 유지합니다. 해석: 컨텍스트는 할당된 키 없이 작업을 수행할 수 없으므로 성공적인 호출은 후속 암호화 작업의 필수 전제 조건일 것으로 추정됩니다. 질문 Q-ab4779cac18793fa (열림)

상호 작용

이 절차는 키 바인딩을 위해 VerifierPublicCtx::SetKey [SWS_CRYPT_24115] 및 KeyEncapsulatorPublicCtx::SetKey [SWS_CRYPT_21815]에서도 사용되는 비대칭 컨텍스트의 모듈 전반 패턴을 따릅니다. 또는 관련 인터페이스가 VerifierPublicCtx [SWS_CRYPT_50018] 또는 KeyEncapsulatorPublicCtx [SWS_CRYPT_50012]에서처럼 구성을 위한 KeySlot 변형을 제공하기도 합니다.

본 텍스트는 AUTOSAR R25-11 사양을 바탕으로 AI 시스템에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 I2)

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

Parameter (in)

ParameterBeschreibung
keythe PublicKey to be used for encryption

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot
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 kAllowData Encryption

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50175
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50175@rel:R25-11#887ad012
Content hash
887ad012
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50175
Status: valid/unmigrated Version: rel:R25-11#52d22e05 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_50175@rel:R25-11#52d22e05
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_50087] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new encryption.

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

사용법 및 의미론

ara::crypto::cryp::EncryptorPublicCtx 클래스의 순수 가상 메서드 Start는 새로운 암호화를 위해 컨텍스트를 초기화하는 데 사용됩니다[SWS_CRYPT_50087]. 매개변수를 받지 않으며 동기식으로 실행됩니다. 반환값으로 함수는 성공적인 초기화를 확인하거나 발생한 오류 코드를 전달하는 ara::core::Result<void>를 제공합니다[SWS_CRYPT_50087].

오류 처리 및 롤백 동작

암호화 작업을 위한 필수 전제 조건이 충족되지 않으면 호출이 실패합니다. 명세는 오류 상황에 대해 롤백 시맨틱을 보장하며 다음과 같은 오류 원인을 정의합니다[SWS_CRYPT_50087]:

  • UninitializedContext: 사전에 컨텍스트에 키가 할당되지 않았습니다.
  • ara::crypto::CryptoErrc::kEmptyKeySlot: 구성된 KeySlot이 현재 비어 있습니다.
  • ara::crypto::CryptoErrc::kUsageViolation: 키 권한에 kAllowDataEncryption 사용 플래그가 포함되어 있지 않습니다.
  • ara::crypto::CryptoErrc::kIncompatibleObject: 할당된 키 유형이 요청된 변환과 호환되지 않습니다.
  • ara::crypto::CryptoErrc::kBusyResource: 초기화에 필요한 리소스가 사용 중입니다.
  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 컨텍스트에서 스트림 처리가 지원되지 않습니다.

동시성 및 상호 작용

이 메서드는 thread-safe 및 exception safe로 명세되어 있습니다[SWS_CRYPT_50087]. 컨텍스트에 적절한 키를 제공하는 것은 성공을 위한 필수 전제 조건입니다. 개념적으로 이 함수는 서명 검증 [SWS_CRYPT_50019], 서명 생성 [SWS_CRYPT_50037] 또는 MAC 계산 [SWS_CRYPT_22111]과 같이 매개변수가 없는 호출을 통해 연산이 준비되는 암호화 컨텍스트의 표준화된 수명 주기에 부합합니다. 이 호출은 실제 스트림 암호화를 수행하기 전의 필수 시작 지점이 될 것으로 보입니다. 질문 Q-db262c3914e6b4cf (열림)

이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 자동 생성되었습니다.

구현자 가이드 준비 중 (복잡도 I1)

Header-Datei#include "ara/crypto/cryp/encryptor_public_ctx.h"
Scopeclass ara::crypto::cryp::EncryptorPublicCtx
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::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 kAllowData Encryption
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if type of the key is incompatible to the transformation
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

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

virtual ara::core::Result< std::size_t > Update (ReadOnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Encrypt a data buffer.

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

사용

클래스 ara::crypto::cryp::EncryptorPublicCtx의 동기 메서드 Update은(는) 일반 텍스트의 데이터 블록을 단계별로 암호화하는 데 사용됩니다 [SWS_CRYPT_50176]. 매개변수 in(ReadOnlyMemRegion)을(를) 통해 일반 텍스트의 일부가 전달되고, 암호화된 데이터는 출력 버퍼 out(ReadWriteMemRegion)에 기록됩니다 [SWS_CRYPT_50176]. 반환값으로 함수는 ara::core::Result<std::size_t>을(를) 통해 실제로 기록된 바이트 수를 반환하며, 이는 제공된 out의 용량보다 작을 수 있습니다 [SWS_CRYPT_50176].

순서 및 상호작용

Update을(를) 처음 호출하기 전에 데이터 처리가 반드시 Start()에 의해 개시되었어야 합니다 [SWS_CRYPT_50176]. 개별 호출에 대해 허용되는 최대 입력 크기는 GetMaximumChunkSize() 메서드를 통해 쿼리할 수 있습니다 [SWS_CRYPT_50091]. 또한 out에 필요한 최소 크기는 GetRequiredOutputBufferSize()을(를) 통해 계산할 수 있습니다 [SWS_CRYPT_50176].

오류 처리 및 동시성

실행 중 오류가 발생하면 롤백 시맨틱과 함께 보고됩니다 [SWS_CRYPT_50176]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: 데이터 처리가 이전에 Start()(으)로 시작되지 않았습니다 [SWS_CRYPT_50176].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: 버퍼 out의 용량이 결과에 충분하지 않습니다 [SWS_CRYPT_50176].
  • ara::crypto::CryptoErrc::kInvalidInputSize: in의 버퍼 크기가 유효하지 않습니다 [SWS_CRYPT_50176].
  • ara::crypto::CryptoErrc::kUnsupported: 현재 컨텍스트에서 스트림 처리를 지원하지 않습니다 [SWS_CRYPT_50176].

이 메서드는 예외 안전 및 스레드 안전으로 선언되어 있습니다 [SWS_CRYPT_50176]. 그럼에도 동일한 컨텍스트 객체에 대해 여러 작업을 병렬로 호출할 경우 암호화된 데이터 조각의 결정론적 순서를 보장하기 위해 외부 동기화가 필요할 것으로 보입니다. 질문 Q-b22ffe505b583b25 (열림)

이 텍스트는 AI에 의해 작성되었으며 참고용으로 제공됩니다. 구속력을 갖는 것은 사양입니다.

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the plaintext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the encrypted data will be written into. The required size of this buffer can be queried using GetRequired OutputBufferSize()

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method
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::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50176
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50176@rel:R25-11#a6b3ef30
Content hash
a6b3ef30
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50176
Status: valid/unmigrated Version: rel:R25-11#89552c35 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_50176@rel:R25-11#89552c35
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_50174] Upstream: RS_CRYPTO_02201

using Sptr = std::shared_ptr<EncryptorPublicCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/encryptor_public_ctx.h"
Scopeclass ara::crypto::cryp::EncryptorPublicCtx
SymbolSptr

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

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