DEENESPTFRRUARHIKOZHNL

클래스 ara::crypto::cryp::CryptoProvider

[SWS_CRYPT_20700] Upstream: RS_CRYPTO_02305, RS_CRYPTO_02307, RS_CRYPTO_02401

class CryptoProvider {...};

CryptoProviderInterface representing one implementation of a set of cryptographic primitives with a key storage.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp

사용자 가이드AI 생성

암호화 컨텍스트, 알고리즘 및 키 객체의 생성과 관리를 위한 중앙 팩토리 역할을 합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 0bf253450f85 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

암호화 컨텍스트, 알고리즘 및 키 객체의 생성과 관리를 위한 중앙 팩토리 역할을 합니다.

이 클래스는 암호화 프리미티브의 제공뿐만 아니라 암호화 키 및 컨텍스트의 생성과 관리를 위한 중앙 팩토리 역할을 합니다([SWS_CRYPT_20742], [SWS_CRYPT_20721]). 인스턴스는 복사하거나 이동할 수 없으며 공유 포인터를 통해 관리됩니다([SWS_CRYPT_20701], [SWS_CRYPT_41005]). 호환되지 않는 알고리즘이나 리소스 고갈과 같은 오류는 ara::core::Result를 통해 타입 안전하게 반환됩니다([SWS_CRYPT_30098]).

컨텍스트

클래스 ara::crypto::cryp::CryptoProvider은 AUTOSAR Adaptive 스택에서 암호화 작업 및 알고리즘을 제공하기 위한 중앙 인터페이스를 형성합니다. 이는 추상화 계층으로서 암호화 프리미티브의 구체적인 구현과 키 및 스토리지 구조에 대한 접근을 번들링합니다. 일반적인 시스템 아키텍처에서 CryptoProvider은 애플리케이션 로직, 영구 키 스토리지 및 특수 처리 컨텍스트 간의 중재자이자 팩토리 역할을 합니다. 애플리케이션은 제공자를 통해 대칭 암호화([SWS_CRYPT_20742]), 비대칭 암호화([SWS_CRYPT_20750], [SWS_CRYPT_20751]), 디지털 서명([SWS_CRYPT_20756], [SWS_CRYPT_20757]), 해시 함수([SWS_CRYPT_20747]), 메시지 인증([SWS_CRYPT_20746]) 또는 키 교환 절차([SWS_CRYPT_20758], [SWS_CRYPT_20752])를 위한 특수 컨텍스트를 요청합니다. 동시에 제공자는 저장된 키를 인스턴스화하기 위해 기본 Key-Slot과 상호 작용합니다([SWS_CRYPT_20762], [SWS_CRYPT_20764]).

ProviderKontext Anwendung Anwendung CryptoProvider CryptoProvider Anwendung->CryptoProvider KeySlot KeySlot CryptoProvider->KeySlot CryptoContext CryptoContext CryptoProvider->CryptoContext CryptoObject CryptoObject CryptoProvider->CryptoObject

컨텍스트 다이어그램: 애플리케이션, 컨텍스트 및 KeySlot 간의 팩토리 및 중재자로서의 CryptoProvider 임베딩. 출처: [SWS_CRYPT_20742], [SWS_CRYPT_20756], [SWS_CRYPT_20762].

수명 주기

CryptoProvider의 인스턴스는 복사 및 이동 작업과 관련하여 엄격한 시맨틱을 가집니다. 복사 생성자([SWS_CRYPT_41005]) 및 이동 생성자([SWS_CRYPT_41006])뿐만 아니라 해당 할당 연산자([SWS_CRYPT_30216], [SWS_CRYPT_30217])도 명시적으로 삭제됩니다(delete). 따라서 인스턴스의 수명 주기는 일반적으로 참조 또는 공유 소유권을 통해 제어되며, 이를 위해 std::shared_ptr을 기반으로 하는 타입 별칭 CryptoProvider::Sptr이 정의되어 있습니다([SWS_CRYPT_20701]). 정리는 가상 기본 소멸자를 통해 수행됩니다([SWS_CRYPT_20710]). 제공자의 모든 인터페이스 메서드는 예외 안전(exception safe) 및 스레드 안전(thread-safe)으로 지정되어 있어 제공자 수준에서 외부 동기화 없이 여러 스레드에서의 동시 접근이 허용됩니다.

사용 경로

일반적인 사용 경로는 키 제공, 적절한 암호화 컨텍스트 인스턴스화, 그리고 이후 변환 수행을 포함합니다. 먼저 애플리케이션은 필요한 키 자료를 생성하거나 가져옵니다. 이를 위해 CryptoProvider은 GenerateSymmetricKey([SWS_CRYPT_20721]), GeneratePrivateKey([SWS_CRYPT_20722]), ImportPublicKey([SWS_CRYPT_20732]) 또는 기존 Key-Slot으로부터의 로드([SWS_CRYPT_20762], [SWS_CRYPT_20763])와 같은 메서드를 제공합니다. 알고리즘을 기반으로 GetDefaultAllowedUsage를 통해 기본 권한을 확인할 수 있습니다([SWS_CRYPT_20955]). 다음 단계에서 애플리케이션은 팩토리 메서드를 통해 각 컨텍스트(예: AuthCipherCtx([SWS_CRYPT_20745]) 또는 SignerPrivateCtx([SWS_CRYPT_20756]))를 생성합니다. 또한 제공자는 GenerateRandomData([SWS_CRYPT_30098])를 통한 난수 데이터 또는 GetSecureCounter([SWS_CRYPT_20098])을 통한 단조 증가 카운터 값을 제공합니다. 안전한 교환을 위해 ExportSecuredKey를 사용하여 키 자료를 안전하게 내보낼 수 있습니다([SWS_CRYPT_20728]).

키 및 컨텍스트 생성애플리케이션CryptoProviderAuthCipherCtxGenerateSymmetricKey(algId, allowedUsage)Erzeugt SymmetricKey::SptrResult<SymmetricKey::Sptr>CreateAuthCipherCtx(algId)InstanziierungResult<AuthCipherCtx::Sptr>

시퀀스 다이어그램: 키 생성 및 Authenticated-Cipher 컨텍스트 생성 절차. 출처: [SWS_CRYPT_20721], [SWS_CRYPT_20745].

오류 시나리오

CryptoProvider의 메서드는 ara::crypto::CryptoErrc의 값을 갖는 반환 타입 ara::core::Result을 통해 오류를 보고합니다. 실패한 작업의 경우 롤백 시맨틱이 적용됩니다. 주요 오류 시나리오는 다음과 같습니다:

  • 잘못되거나 호환되지 않는 매개변수: 지원되지 않는 알고리즘 식별자가 전달되면 컨텍스트 및 키 생성 메서드는 CryptoErrc::kUnknownIdentifier을 반환합니다([SWS_CRYPT_20741], [SWS_CRYPT_20742], [SWS_CRYPT_20721]). 알고리즘이 예상된 프리미티브와 일치하지 않거나(예: 해시 함수 요청 시 비대칭 알고리즘) 사용 플래그가 구성과 일치하지 않는 경우 CryptoErrc::kInvalidArgument 또는 CryptoErrc::kIncompatibleArguments가 발생합니다([SWS_CRYPT_20747], [SWS_CRYPT_20722], [SWS_CRYPT_50132]).
  • 키 스토리지 및 형식 오류: Key-Slot을 통해 로드할 때 비어 있는 슬롯은 CryptoErrc::kEmptyKeySlot을 유발하며, 외부 또는 잘못된 키 타입은 CryptoErrc::kIncompatibleObject을 트리거합니다([SWS_CRYPT_20762], [SWS_CRYPT_20764]). 잘못된 직렬화 형식은 CryptoErrc::kUnsupportedFormat로 이어집니다([SWS_CRYPT_50014], [SWS_CRYPT_20732]).
  • 리소스 및 용량 병목 현상: 난수 생성기가 일시적으로 고갈되거나 하드웨어 리소스가 차단된 경우 CryptoErrc::kBusyResource이 반환됩니다([SWS_CRYPT_30098], [SWS_CRYPT_20721], [SWS_CRYPT_20098]). 식별 데이터 또는 키 내보내기를 위한 대상 버퍼의 크기가 불충분한 경우 인터페이스는 CryptoErrc::kInsufficientCapacity를 보고합니다([SWS_CRYPT_50015], [SWS_CRYPT_20728]).
  • 지원되지 않는 기능: 제공자 식별, 보안 카운터 또는 기본 RNG와 같은 선택적 기능이 특정 제공자 구현에서 지원되지 않는 경우 오류 CryptoErrc::kUnsupported이 보고됩니다([SWS_CRYPT_50015], [SWS_CRYPT_20098], [SWS_CRYPT_30098]).

이 가이드는 AUTOSAR R25-11을 위한 ara::crypto::cryp::CryptoProvider의 인터페이스 정의만을 기반으로 합니다.

멤버 맵

클래스 다이어그램

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

G nara__crypto__cryp__CryptoProvider844 CryptoProvider + CryptoProvider() + operator=() + ~CryptoProvider() + CreateAuthCipherCtx() + CreateDecryptorPrivateCtx() + CreateEncryptorPublicCtx() + CreateHashFunctionCtx() + CreateKeyAgreementPrivateCtx() + CreateKeyDecapsulatorPrivateCtx() + CreateKeyDerivationFunctionCtx() + CreateKeyEncapsulatorPublicCtx() + CreateMessageAuthnCodeCtx() + CreateProtectedKeyImportCtx() + CreateRandomGeneratorCtx() + CreateSignerPrivateCtx() + CreateSymmetricCipherCtx() … 16 weitere

상세 보기

개요에서 항목을 선택하세요.

생성자 및 소멸자

Copy-Constructor.

오버로드 CryptoProvider 2
CryptoProvider (const CryptoProvider &)=delete; SWS_CRYPT_41005
CryptoProvider (CryptoProvider &&)=delete; SWS_CRYPT_41006

Destructor.

virtual ~CryptoProvider () noexcept=default;

메서드

Create a symmetric authenticated cipher context.

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create a hash function context.

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

Create a Random Number Generator (RNG) context.

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a signature private key context.

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

Create a signature verification public key context.

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Fill the provided output data buffer randomData with random data.

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Generate a new symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;

Obtain provider specific identification data.

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Get the required size of the output buffer for ID data used by GetProviderID.

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

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Import a serialized private key.

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Load a private key from the provided KeySlot.

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;

Load a public key from the provided KeySlot.

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

연산자

operator= 함수 2

Copy-assign another CryptoProvider to this instance.

오버로드 = 2
CryptoProvider & operator= (const CryptoProvider &other)=delete; SWS_CRYPT_30216
CryptoProvider & operator= (CryptoProvider &&other)=delete; SWS_CRYPT_30217

타입 별칭

Sptr 타입 별칭

Shared pointer of the CryptoProvider.

메서드 문서

함수 CreateAuthCipherCtx [SWS_CRYPT_20745] Upstream: RS_CRYPTO_02207, RS_AP_00144

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a symmetric authenticated cipher context.

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

CreateAuthCipherCtx 메서드는 대칭 인증 암호화([SWS_CRYPT_20745])를 위한 컨텍스트를 생성하는 역할을 합니다. ara::crypto::cryp::CryptoProvider 클래스의 순수 가상 인터페이스로 정의되어 있으며 헤더 파일 ara/crypto/cryp/crypto_provider.h을(를) 통해 포함해야 합니다([SWS_CRYPT_20745]).

사용법 및 의미론

입력 매개변수로 대상 암호화 알고리즘을 식별하는 algId이(가) 전달됩니다([SWS_CRYPT_20745]). 이 함수는 동기식으로 작동하며 예외를 발생시키지 않습니다(noexcept)([SWS_CRYPT_20745]). 성공적으로 실행되면 생성된 인스턴스 AuthCipherCtx::Sptr에 대한 스마트 포인터가 포함된 ara::core::Result을(를) 반환합니다([SWS_CRYPT_20745]).

오류 처리

오류 발생 시 ara::core::Result에 롤백 시맨틱과 함께 해당 오류 코드가 반환됩니다([SWS_CRYPT_20745]):

  • ara::crypto::CryptoErrc::kInvalidArgument: algId이(가) 대칭 인증 스트림 암호용 알고리즘을 지정하지 않는 경우([SWS_CRYPT_20745]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 대해 지원되지 않는 값이 전달된 경우([SWS_CRYPT_20745]).

동시성

CreateAuthCipherCtx의 호출은 스레드 안전(thread-safe)하며 예외 안전(exception safe)으로 지정되어 있습니다([SWS_CRYPT_20745]).

이 텍스트는 자동으로 생성되었습니다. 모든 기술적 진술은 사양 근거에 의해 뒷받침됩니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< AuthCipherCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric authenticated stream cipher
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20745
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20745@rel:R25-11#0c8732bf
Content hash
0c8732bf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20745
Status: valid/unmigrated Version: rel:R25-11#39b58f01 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_20745@rel:R25-11#39b58f01
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f26e531e2026-09-30
  • R19-11rel:R19-11#068856e02026-10-14
  • R20-11rel:R20-11#07ae27852026-10-14
  • R21-11rel:R21-11#35bf37702026-10-14
  • R22-11rel:R22-11#69962f862026-10-14
  • R23-11rel:R23-11#ca5aac9e2026-10-14
  • R24-11rel:R24-11#7d9792cd2026-10-14
  • R25-11rel:R25-11#39b58f012026-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

함수 CreateDecryptorPrivateCtx [SWS_CRYPT_20751] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 CreateDecryptorPrivateCtx은(는) [SWS_CRYPT_20751]에 따라 개인 키를 사용하는 비대칭 복호화를 위한 컨텍스트를 생성하는 데 사용됩니다. 이 함수는 입력 매개변수로 원하는 비대칭 암호화 또는 복호화 알고리즘의 식별자를 정의하는 algId을(를) 요구합니다. 해석: 시그니처가 ara::core::Result을(를) 직접 반환하고, 성공 시 생성된 컨텍스트(DecryptorPrivateCtx::Sptr)를 가리키는 스마트 포인터를 포함하므로 호출은 동기적으로 실행될 것으로 추정됩니다 [SWS_CRYPT_20751]. 질문 Q-45d1c4a1b2133f4c (열림)

오류 처리

컨텍스트를 생성할 수 없는 경우 반환되는 ara::core::Result에 오류가 전달됩니다. 매개변수 algId에 지원되지 않는 값이 전달된 경우 구체적으로 롤백 시맨틱을 갖는 오류 코드 ara::crypto::CryptoErrc::kUnknownIdentifier이(가) 발생합니다 [SWS_CRYPT_20751].

동시성 및 제약사항

이 함수는 noexcept(으)로 정의되어 있으며 예외 안전성(exception safe)을 보장합니다 [SWS_CRYPT_20751]. 여러 스레드에서의 동시 액세스에 대해 이 메서드는 thread-safe로 지정되어 있습니다 [SWS_CRYPT_20751]. 헤더 ara/crypto/cryp/crypto_provider.h의 시그니처가 순수 가상 메서드로 선언되어 있으므로, 구체적인 구현 형태는 각 제공자(Provider) 구현에 달려 있습니다 [SWS_CRYPT_20751].

이 사용 지침은 자동으로 생성되었으며 AUTOSAR Adaptive 릴리스 R25-11의 명세 데이터만을 기반으로 합니다.

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<DecryptorPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20751
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20751@rel:R25-11#0ac48571
Content hash
0ac48571
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20751
Status: valid/unmigrated Version: rel:R25-11#9ad4a16f 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_20751@rel:R25-11#9ad4a16f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d0572a212026-09-30
  • R19-11rel:R19-11#958150e62026-10-14
  • R20-11rel:R20-11#db1918e82026-10-14
  • R21-11rel:R21-11#d03527eb2026-10-14
  • R22-11rel:R22-11#19548e8e2026-10-14
  • R23-11rel:R23-11#b4b720e52026-10-14
  • R24-11rel:R24-11#00b7d5452026-10-14
  • R25-11rel:R25-11#9ad4a16f2026-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

함수 CreateEncryptorPublicCtx [SWS_CRYPT_20750] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

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

순수 가상 인터페이스 메서드 CreateEncryptorPublicCtx은(는) ara::crypto::cryp::CryptoProvider 클래스에 속하며 헤더 파일 ara/crypto/cryp/crypto_provider.h을(를) 통해 선언됩니다 [SWS_CRYPT_20750]. 이 메서드의 역할은 공개 키를 사용하는 비대칭 암호화 연산을 위한 새 컨텍스트를 인스턴스화하는 것입니다 [SWS_CRYPT_20750].

사용법: 호출은 원하는 비대칭 암호화 또는 복호화 알고리즘의 식별자를 정의하는 AlgId 유형의 매개변수 algId을(를) 지정하여 동기적으로 수행됩니다 [SWS_CRYPT_20750]. 이 메서드는 결과를 ara::core::Result(으)로 반환하며, 성공 시 생성된 컨텍스트를 가리키는 EncryptorPublicCtx::Sptr 유형의 스마트 포인터를 제공합니다 [SWS_CRYPT_20750].

오류 처리: 인수 algId에 지원되지 않는 알고리즘 값이 포함된 경우 호출이 실패하고 ara::core::Result에 오류 코드 ara::crypto::CryptoErrc::kUnknownIdentifier을(를) 반환합니다 [SWS_CRYPT_20750]. 이러한 오류 상황에 대해 명시적인 롤백 시맨틱이 지정되어 있습니다 [SWS_CRYPT_20750].

동시성 및 예외 안전성: 이 인터페이스는 noexcept(으)로 선언되어 있으며, 예외 안전(exception safe)으로 간주되고 명시적으로 스레드 안전(thread-safe)으로 지정되어 있습니다 [SWS_CRYPT_20750].

이 텍스트는 사양을 기반으로 AI에 의해 작성되었습니다.

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<EncryptorPublicCtx::Sptr>Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20750
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20750@rel:R25-11#36e77601
Content hash
36e77601
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20750
Status: valid/unmigrated Version: rel:R25-11#645c8167 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_20750@rel:R25-11#645c8167
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8b735d082026-09-30
  • R19-11rel:R19-11#245f8fcf2026-10-14
  • R20-11rel:R20-11#56691f5f2026-10-14
  • R21-11rel:R21-11#f1e172112026-10-14
  • R22-11rel:R22-11#e5ba293e2026-10-14
  • R23-11rel:R23-11#128841ba2026-10-14
  • R24-11rel:R24-11#e48790ba2026-10-14
  • R25-11rel:R25-11#645c81672026-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

함수 CreateHashFunctionCtx [SWS_CRYPT_20747] Upstream: RS_CRYPTO_02205, RS_AP_00144

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a hash function context.

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

CreateHashFunctionCtx 메서드는 암호화 해시 컨텍스트([SWS_CRYPT_20747])를 인스턴스화하는 역할을 합니다. ara::crypto::cryp::CryptoProvider 클래스의 순수 가상 인터페이스로서 헤더 ara/crypto/cryp/crypto_provider.h을(를) 통해 제공됩니다.

사용법 및 매개변수

호출은 동기식으로 수행되며 원하는 암호화 알고리즘을 식별하는 algId(타입 AlgId)을(를) 입력 매개변수로 기대합니다([SWS_CRYPT_20747]). 반환값으로 함수는 성공 시 생성된 컨텍스트에 대한 스마트 포인터를 포함하는 ara::core::Result<HashFunctionCtx::Sptr>을(를) 제공합니다.

오류 처리

생성에 실패하면 ara::core::Result에 롤백 시맨틱을 갖는 해당 오류 코드가 포함됩니다([SWS_CRYPT_20747]):

  • ara::crypto::CryptoErrc::kInvalidArgument: 전달된 algId이(가) 해시 함수 이외의 다른 알고리즘 유형에 대해 지정된 경우 반환됩니다 ([SWS_CRYPT_20747]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 대해 지원되지 않는 식별자가 전달된 경우 발생합니다 ([SWS_CRYPT_20747]).

동시성 및 제약사항

이 함수는 noexcept(으)로 선언되어 있으며 예외 안전(“exception safe”)으로 명시되어 있습니다 ([SWS_CRYPT_20747]). 또한 이 호출은 스레드 안전(“thread-safe”)하므로, 동일한 CryptoProvider 인스턴스에 대한 여러 스레드에서의 동시 호출이 허용됩니다 ([SWS_CRYPT_20747]).

이 텍스트는 R25-11 명세를 기반으로 AI에 의해 생성되었습니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< HashFunctionCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from hash function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20747
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20747@rel:R25-11#f26c03bb
Content hash
f26c03bb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20747
Status: valid/unmigrated Version: rel:R25-11#a65adf82 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_20747@rel:R25-11#a65adf82
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f2f9f89e2026-09-30
  • R19-11rel:R19-11#27d8bfbe2026-10-14
  • R20-11rel:R20-11#8ae2344a2026-10-14
  • R21-11rel:R21-11#5db0d9fb2026-10-14
  • R22-11rel:R22-11#f8120b092026-10-14
  • R23-11rel:R23-11#cd6826a42026-10-14
  • R24-11rel:R24-11#8ca5ca262026-10-14
  • R25-11rel:R25-11#a65adf822026-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

함수 CreateKeyAgreementPrivateCtx [SWS_CRYPT_20758] Upstream: RS_CRYPTO_02104, RS_AP_00144

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

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

클래스 ara::crypto::cryp::CryptoProvider의 메서드 CreateKeyAgreementPrivateCtx은(는) [SWS_CRYPT_20758]에 따라 키 합의(KeyAgreementPrivateCtx)를 위한 개인 키 컨텍스트를 생성하는 데 사용됩니다. 선언은 헤더 파일 #include "ara/crypto/cryp/crypto_provider.h"을(를) 통해 제공됩니다.

사용 및 호출

동기 메서드는 전달 매개변수로 키 합의(Key-Agreement)에 대해 원하는 암호화 알고리즘을 지정하는 AlgId 유형의 식별자 algId을(를) 요구합니다. 반환값으로 함수는 ara::core::Result<KeyAgreementPrivateCtx::Sptr>을(를) 반환하며, 성공 시 새로 생성된 컨텍스트 인스턴스를 가리키는 스마트 포인터를 캡슐화합니다 [SWS_CRYPT_20758].

오류 처리

인스턴스화에 실패하면 반환된 ara::core::Result에 롤백 시맨틱을 갖는 오류 코드가 포함됩니다 [SWS_CRYPT_20758]:

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 키 합의 절차와 다른 암호화 알고리즘을 지정하는 경우 발생합니다.
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 식별자 algId에 지원되지 않는 값이 있는 경우 반환됩니다.

동시성 및 안전성

이 인터페이스는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)으로 정의되어 있습니다. 또한 호출은 스레드 안전(thread-safe)으로 명시되어 있어 동일한 CryptoProvider 인스턴스에 대한 동시 호출이 허용됩니다 [SWS_CRYPT_20758].

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target key-agreement crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyAgreementPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key-agreement
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20758
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20758@rel:R25-11#e79506b7
Content hash
e79506b7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20758
Status: valid/unmigrated Version: rel:R25-11#768fe78c 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_20758@rel:R25-11#768fe78c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#64be1dbd2026-09-30
  • R19-11rel:R19-11#b377ec0f2026-10-14
  • R20-11rel:R20-11#8e18e3592026-10-14
  • R21-11rel:R21-11#d272fd992026-10-14
  • R22-11rel:R22-11#4a3ac1a22026-10-14
  • R23-11rel:R23-11#ad3845082026-10-14
  • R24-11rel:R24-11#c10793c52026-10-14
  • R25-11rel:R25-11#768fe78c2026-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

함수 CreateKeyDecapsulatorPrivateCtx [SWS_CRYPT_20753] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 CreateKeyDecapsulatorPrivateCtx은(는) Key Encapsulation Mechanism (KEM)을 위한 키 역캡슐화 프라이빗 컨텍스트를 생성하는 데 사용됩니다 [SWS_CRYPT_20753]. 입력 매개변수로 원하는 KEM 암호화 알고리즘을 식별하는 타입 AlgId의 algId을(를) 기대합니다 [SWS_CRYPT_20753]. 이 함수는 동기적으로 작동하며 결과를 ara::core::Result<KeyDecapsulatorPrivateCtx::Sptr>에 담아 반환하고, 성공 시 새로 인스턴스화된 컨텍스트에 대한 스마트 포인터를 캡슐화합니다 [SWS_CRYPT_20753].

오류 처리

컨텍스트 생성 중 오류가 발생하면 롤백 시맨틱과 함께 ara::core::Result을(를) 통해 보고됩니다 [SWS_CRYPT_20753]:

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 비대칭 KEM 방식이 아닌 암호화 알고리즘을 지정합니다 [SWS_CRYPT_20753].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인수 algId에 지원되지 않는 값이 있습니다 [SWS_CRYPT_20753].

동시성 및 실행 안전성

이 인터페이스는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe)으로 명시되어 있습니다 [SWS_CRYPT_20753]. 또한 실행은 스레드 안전(thread-safe)하도록 설계되었습니다 [SWS_CRYPT_20753].

이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20753
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20753@rel:R25-11#e19003b9
Content hash
e19003b9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20753
Status: valid/unmigrated Version: rel:R25-11#2a254e1e 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_20753@rel:R25-11#2a254e1e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce72d5082026-09-30
  • R19-11rel:R19-11#8ce1bc4c2026-10-14
  • R20-11rel:R20-11#c151a2bd2026-10-14
  • R21-11rel:R21-11#d9e99bf42026-10-14
  • R22-11rel:R22-11#34ef693d2026-10-14
  • R23-11rel:R23-11#fc9a47332026-10-14
  • R24-11rel:R24-11#8a7533962026-10-14
  • R25-11rel:R25-11#2a254e1e2026-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

함수 CreateKeyDerivationFunctionCtx [SWS_CRYPT_20748] Upstream: RS_CRYPTO_02103, RS_AP_00144

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

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

클래스 ara::crypto::cryp::CryptoProvider의 메서드 CreateKeyDerivationFunctionCtx은(는) 키 유도 함수를 위한 실행 컨텍스트를 생성하는 데 사용됩니다([SWS_CRYPT_20748]). 입력 매개변수로는 원하는 암호화 대상 알고리즘을 지정하는 타입 AlgId의 식별자 algId이(가) 전달됩니다. 동기 호출은 ara::core::Result을(를) 반환하며, 이는 성공적으로 실행될 경우 생성된 컨텍스트에 대한 스마트 포인터(KeyDerivationFunctionCtx::Sptr)를 제공합니다([SWS_CRYPT_20748]).

인스턴스화 중에 오류가 발생하면 결과는 롤백 시맨틱과 함께 해당 오류 코드와 함께 반환됩니다([SWS_CRYPT_20748]):

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 키 유도 함수가 아닌 암호화 알고리즘을 지정합니다([SWS_CRYPT_20748]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 전달된 식별자 algId의 값이 지원되지 않습니다([SWS_CRYPT_20748]).

이 인터페이스는 순수 가상 함수로 선언되어 있으며, noexcept(으)로 표시되고 thread-safe 및 exception safe(으)로 구속력 있게 분류되어 있습니다([SWS_CRYPT_20748]). 포함은 헤더 파일 #include "ara/crypto/cryp/crypto_provider.h"을(를) 통해 이루어집니다. 이 함수는 상위 요구사항 [RS_CRYPTO_02103] 및 [RS_AP_00144]을(를) 다룹니다.

이 사용 지침은 AI에 의해 자동 생성되었으며 AUTOSAR Adaptive 플랫폼 R25-11 사양을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyDerivationFunctionCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key derivation function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20748
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20748@rel:R25-11#f528d8b0
Content hash
f528d8b0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20748
Status: valid/unmigrated Version: rel:R25-11#87a97504 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_20748@rel:R25-11#87a97504
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce0d4c1b2026-09-30
  • R19-11rel:R19-11#529d87c72026-10-14
  • R20-11rel:R20-11#69f8e53c2026-10-14
  • R21-11rel:R21-11#6c13fa4d2026-10-14
  • R22-11rel:R22-11#38efa8462026-10-14
  • R23-11rel:R23-11#bad3069e2026-10-14
  • R24-11rel:R24-11#248bba532026-10-14
  • R25-11rel:R25-11#87a975042026-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

함수 CreateKeyEncapsulatorPublicCtx [SWS_CRYPT_20752] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 CreateKeyEncapsulatorPublicCtx은(는) Key Encapsulation Mechanism(KEM)을 위한 공개 컨텍스트를 생성하는 데 사용됩니다 [SWS_CRYPT_20752]. 이를 위해 헤더 파일 #include "ara/crypto/cryp/crypto_provider.h"을(를) 포함해야 합니다 [SWS_CRYPT_20752]. 호출은 동기적으로 수행됩니다. 즉, KEM의 대상 암호화 알고리즘을 지정하는 algId이(가) 입력 매개변수로 전달됩니다. 성공적으로 실행되면 메서드는 생성된 컨텍스트를 가리키는 스마트 포인터(KeyEncapsulatorPublicCtx::Sptr)를 ara::core::Result에 캡슐화하여 반환합니다 [SWS_CRYPT_20752].

오류 처리

생성 중에 오류가 발생하면 롤백 시맨틱이 적용되고 ara::core::Result에 ara::crypto::CryptoErrc의 특정 오류 코드가 포함됩니다 [SWS_CRYPT_20752]:

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 비대칭 KEM이 아닌 암호화 알고리즘을 지정하는 경우 반환됩니다 [SWS_CRYPT_20752].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인수 algId에 지원되지 않는 값이 있는 경우 보고됩니다 [SWS_CRYPT_20752].

동시성 및 안전성

이 인터페이스 함수는 noexcept(으)로 선언되어 있으며 예외 안전(exception safe) 및 스레드 안전(thread-safe)으로 분류되어 있습니다 [SWS_CRYPT_20752]. 따라서 외부 동기화 없이 동시성 컨텍스트에서 안전하게 호출할 수 있습니다 [SWS_CRYPT_20752].

이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< KeyEncapsulatorPublicCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20752
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20752@rel:R25-11#d9bb6296
Content hash
d9bb6296
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20752
Status: valid/unmigrated Version: rel:R25-11#80eb6ba8 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_20752@rel:R25-11#80eb6ba8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eb9642562026-09-30
  • R19-11rel:R19-11#c59c43e42026-10-14
  • R20-11rel:R20-11#4d2fccee2026-10-14
  • R21-11rel:R21-11#aecc69b32026-10-14
  • R22-11rel:R22-11#9fd887092026-10-14
  • R23-11rel:R23-11#2013b4922026-10-14
  • R24-11rel:R24-11#048a75932026-10-14
  • R25-11rel:R25-11#80eb6ba82026-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

함수 CreateMessageAuthnCodeCtx [SWS_CRYPT_20746] Upstream: RS_CRYPTO_02203, RS_AP_00144

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 순수 가상 메서드 CreateMessageAuthnCodeCtx은 헤더 파일 ara/crypto/cryp/crypto_provider.h이(가) 필요하며 대칭 메시지 인증 코드(Message Authentication Code)를 위한 컨텍스트를 동기식으로 생성하는 역할을 합니다[SWS_CRYPT_20746]. 입력값으로 이 함수는 대상 암호화 알고리즘을 지정하는 AlgId 타입의 매개변수 algId을(를) 받습니다[SWS_CRYPT_20746]. 성공적으로 실행되면 메서드는 새로 인스턴스화된 컨텍스트 인스턴스에 대한 스마트 포인터를 캡슐화하는 ara::core::Result<MessageAuthnCodeCtx::Sptr>을(를) 반환합니다[SWS_CRYPT_20746].

오류 처리

오류 발생 시 반환된 Result 객체는 롤백 시맨틱을 갖는 특정 오류 코드를 제공합니다[SWS_CRYPT_20746]:

  • ara::crypto::CryptoErrc::kInvalidArgument: 인자 algId이(가) 대칭 메시지 인증 코드가 아닌 암호화 알고리즘을 지정합니다[SWS_CRYPT_20746].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인자 algId에 대해 알 수 없거나 지원되지 않는 식별자가 전달되었습니다[SWS_CRYPT_20746].

동시성 및 실행 안전성

이 인터페이스에는 지정자 noexcept이(가) 부여되어 있으며 완전한 예외 안전성(exception safe)을 보장합니다[SWS_CRYPT_20746]. 또한 이 함수는 명시적으로 스레드 안전(thread-safe)으로 지정되어 있어 동시 스레드로부터 외부 동기화 없이 병렬로 호출할 수 있습니다[SWS_CRYPT_20746].

이 사용 지침은 명세를 기반으로 자동 생성되었습니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<MessageAuthnCodeCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric message authentication code
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20746
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20746@rel:R25-11#2b08bbd9
Content hash
2b08bbd9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20746
Status: valid/unmigrated Version: rel:R25-11#957c6291 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_20746@rel:R25-11#957c6291
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#37f876a32026-09-30
  • R19-11rel:R19-11#e9adf02f2026-10-14
  • R20-11rel:R20-11#d6c0c1ec2026-10-14
  • R21-11rel:R21-11#3670d4772026-10-14
  • R22-11rel:R22-11#178c72202026-10-14
  • R23-11rel:R23-11#2108bb852026-10-14
  • R24-11rel:R24-11#7cfcb5e32026-10-14
  • R25-11rel:R25-11#957c62912026-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

함수 CreateProtectedKeyImportCtx [SWS_CRYPT_50017] Upstream: RS_CRYPTO_02105

virtual ara::core::Result< ProtectedKeyImportCtx::Sptr > Create ProtectedKeyImportCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

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

사용

클래스 ara::crypto::cryp::CryptoProvider의 인터페이스 CreateProtectedKeyImportCtx(ara/crypto/cryp/crypto_provider.h에 정의됨)은 보호된 키 가져오기를 위한 컨텍스트를 동기적으로 생성하는 데 사용됩니다([SWS_CRYPT_50017]). 입력 매개변수 algId을(를) 통해 원하는 래핑 알고리즘의 식별자가 전달됩니다([SWS_CRYPT_50017]). 성공적으로 인스턴스화되면 이 메서드는 생성된 컨텍스트에 대한 스마트 포인터 ProtectedKeyImportCtx::Sptr을(를) 제공하는 ara::core::Result을(를) 반환합니다([SWS_CRYPT_50017]).

오류 처리

생성에 실패하면 이 메서드는 ara::core::Result에 롤백 시맨틱을 갖는 오류 코드를 반환합니다([SWS_CRYPT_50017]):

  • ara::crypto::CryptoErrc::kInvalidArgument: algId에 의해 지정된 암호화 알고리즘이 CryptoProvider에서 래핑용으로 지원되지 않을 때 발생합니다([SWS_CRYPT_50017]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인자 algId에 알 수 없거나 지원되지 않는 식별자 값이 포함되어 있을 때 보고됩니다([SWS_CRYPT_50017]).

동시성 및 제약사항

이 순수 가상 메서드는 noexcept(으)로 선언되어 예외 안전성을 제공하며 명시적으로 스레드 안전(thread-safe)으로 지정되어 있습니다([SWS_CRYPT_50017]). 따라서 외부 동기화 없이 여러 스레드에서 병렬로 호출될 수 있습니다([SWS_CRYPT_50017]).

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

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the wrapping algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<ProtectedKeyImportCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm that is not supported by this CryptoProvider for wrapping
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

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

함수 CreateRandomGeneratorCtx [SWS_CRYPT_20741] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a Random Number Generator (RNG) context.

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

CreateRandomGeneratorCtx 메서드는 ara::crypto::cryp::CryptoProvider 클래스 내에서 난수 생성기(Random Number Generator, RNG) 컨텍스트를 생성하는 역할을 합니다[SWS_CRYPT_20741].

사용법 및 호출 컨텍스트

이 함수는 동기식으로 호출되며 헤더 파일 ara/crypto/cryp/crypto_provider.h이(가) 필요합니다[SWS_CRYPT_20741]:

  • 매개변수: 원하는 RNG 알고리즘을 식별하는 AlgId 타입의 algId이(가) 전달됩니다. 특정 algId이(가) 지정되지 않은 경우 메서드는 기본 RNG를 반환합니다[SWS_CRYPT_20741].
  • 반환값: 성공 시 생성된 RandomGeneratorCtx 인스턴스에 대한 공유 포인터를 포함하는 ara::core::Result<RandomGeneratorCtx::Sptr>입니다[SWS_CRYPT_20741].

오류 처리

이 메서드는 예외를 발생시키지 않으며(noexcept) 예외 안전으로 명시되어 있습니다[SWS_CRYPT_20741]. 작업이 실패하면 ara::core::Result이(가) 오류 코드를 반환합니다:

  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인자 algId에 지원되지 않는 값이 있는 경우 발생합니다(롤백 시맨틱 포함)[SWS_CRYPT_20741].

동시성 및 제약사항

이 메서드는 스레드 안전(thread-safe)(으)로 분류되므로 CryptoProvider의 동일한 인스턴스를 통한 병렬 호출이 허용됩니다[SWS_CRYPT_20741].

이 사용 지침은 자동으로 생성되었으며 AUTOSAR Adaptive R25-11의 사양 데이터만을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of target RNG algorithm. If no algId is given, the default RNG is returned

Rückgabewert

TypBeschreibung
ara::core::Result<RandomGeneratorCtx::Sptr >result containing a shared pointer to the context or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20741
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20741@rel:R25-11#e9f101d7
Content hash
e9f101d7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20741
Status: valid/unmigrated Version: rel:R25-11#d4f2c255 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_20741@rel:R25-11#d4f2c255
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a3510ae92026-09-30
  • R19-11rel:R19-11#60ee10c72026-10-14
  • R20-11rel:R20-11#0569ff502026-10-14
  • R21-11rel:R21-11#32b16cb02026-10-14
  • R22-11rel:R22-11#c44c5e5c2026-10-14
  • R23-11rel:R23-11#e3fa37f52026-10-14
  • R24-11rel:R24-11#5e17e1572026-10-14
  • R25-11rel:R25-11#d4f2c2552026-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

함수 CreateSignerPrivateCtx [SWS_CRYPT_20756] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a signature private key context.

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

클래스 ara::crypto::cryp::CryptoProvider의 메서드 CreateSignerPrivateCtx은(는) 개인 키를 사용하는 서명 연산을 위한 컨텍스트([SWS_CRYPT_20756])를 생성하는 데 사용됩니다.

사용법 및 매개변수: 호출 시 헤더 파일 ara/crypto/cryp/crypto_provider.h을(를) 포함해야 합니다. 입력 매개변수 algId을(를) 통해 대상 암호화 서명 알고리즘이 지정됩니다. 성공 시 함수는 반환 유형 ara::core::Result<SignerPrivateCtx::Sptr>을(를) 통해 생성된 컨텍스트 인스턴스를 가리키는 스마트 포인터([SWS_CRYPT_20756])를 반환합니다. 해석: 메서드가 ara::core::Result을(를) 직접 반환하므로 호출은 동기적으로 실행될 것으로 추정됩니다. 질문 Q-8480f3cf5cef5f49 (열림)

동시성 및 안전성: 이 메서드는 스레드 안전(thread-safe) 및 예외 안전(exception safe)으로 명시되어 있으며 noexcept(으)로 선언되어 있습니다 ([SWS_CRYPT_20756]). 따라서 추가적인 동기화 없이 동시성 컨텍스트에서 호출할 수 있습니다.

오류 처리: 오류 발생 시 결과는 롤백 시맨틱을 갖는 ara::crypto::CryptoErrc 유형의 오류 코드를 반환합니다 ([SWS_CRYPT_20756]):

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 개인 키 서명과 다른 암호화 알고리즘을 지정할 때 발생합니다 ([SWS_CRYPT_20756]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 알 수 없거나 지원되지 않는 값이 포함된 경우 발생합니다 ([SWS_CRYPT_20756]).

이 텍스트는 AI에 의해 생성되었으며 가이드 역할을 합니다. AUTOSAR 사양이 결정적인 기준입니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result< SignerPrivateCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from private key signature
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20756
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20756@rel:R25-11#b3e0bc26
Content hash
b3e0bc26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20756
Status: valid/unmigrated Version: rel:R25-11#cc9f565a 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_20756@rel:R25-11#cc9f565a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cd4471752026-09-30
  • R19-11rel:R19-11#1edbf4c72026-10-14
  • R20-11rel:R20-11#a2cfe2c82026-10-14
  • R21-11rel:R21-11#54e185f52026-10-14
  • R22-11rel:R22-11#2a8de2322026-10-14
  • R23-11rel:R23-11#83e55d092026-10-14
  • R24-11rel:R24-11#0df4e6d12026-10-14
  • R25-11rel:R25-11#cc9f565a2026-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

함수 CreateSymmetricCipherCtx [SWS_CRYPT_20742] Upstream: RS_CRYPTO_02201

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 가상 메서드 CreateSymmetricCipherCtx은 대칭 암호화 작업([SWS_CRYPT_20742])을 위한 컨텍스트를 생성하는 역할을 합니다. 헤더 파일 #include "ara/crypto/cryp/crypto_provider.h"을(를) 통해 포함됩니다([SWS_CRYPT_20742]).

입력 매개변수로 이 함수는 원하는 대상 암호화 알고리즘의 식별자를 지정하는 AlgId 타입의 algId을(를) 기대합니다([SWS_CRYPT_20742]). 호출은 동기식으로 수행되며 결과로 성공 시 새로 인스턴스화된 컨텍스트 인스턴스에 대한 스마트 포인터를 제공하는 ara::core::Result<SymmetricCipherCtx::Sptr>을(를) 반환합니다([SWS_CRYPT_20742]).

오류 처리

생성에 실패하면 반환된 ara::core::Result에 해당 오류 코드가 포함됩니다([SWS_CRYPT_20742]):

  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 전달된 값이 지원되지 않는 알고리즘을 참조하는 경우 롤백 시맨틱과 함께 보고됩니다([SWS_CRYPT_20742]).

동시성 및 제약사항

이 함수는 noexcept(으)로 선언되어 있으며 명시적으로 예외 안전(exception safe)으로 지정되어 있습니다([SWS_CRYPT_20742]). 또한 호출은 스레드 안전(thread-safe)하여 동일한 CryptoProvider 인스턴스를 통한 병렬 컨텍스트 생성이 허용됩니다([SWS_CRYPT_20742]).

이 사용 지침은 자동으로 생성되었습니다. 모든 정보는 오직 AUTOSAR 사양 버전 R25-11만을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricCipherCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20742
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20742@rel:R25-11#b2c06b37
Content hash
b2c06b37
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20742
Status: valid/unmigrated Version: rel:R25-11#c3456bc2 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_20742@rel:R25-11#c3456bc2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#72dd17572026-09-30
  • R19-11rel:R19-11#abecadca2026-10-14
  • R20-11rel:R20-11#c7ef4de02026-10-14
  • R21-11rel:R21-11#7efa8e4d2026-10-14
  • R22-11rel:R22-11#a4f2f60c2026-10-14
  • R23-11rel:R23-11#8bfbe22a2026-10-14
  • R24-11rel:R24-11#bac03a522026-10-14
  • R25-11rel:R25-11#c3456bc22026-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

함수 CreateSymmetricKeyWrapperCtx [SWS_CRYPT_20743] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02208

virtual ara::core::Result< SymmetricKeyWrapperCtx::Sptr > Create SymmetricKeyWrapperCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

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

사용

클래스 ara::crypto::cryp::CryptoProvider의 메서드 CreateSymmetricKeyWrapperCtx은(는) 대칭 Key-Wrap 알고리즘용 컨텍스트를 생성하는 데 사용됩니다([SWS_CRYPT_20743]). 입력 매개변수로 대상 암호화 알고리즘을 고유하게 식별하는 algId이(가) 전달됩니다([SWS_CRYPT_20743]). 호출은 동기식이며, 성공 시 생성된 컨텍스트(SymmetricKeyWrapperCtx::Sptr)를 캡슐화하는 스마트 포인터가 포함된 ara::core::Result을(를) 반환합니다([SWS_CRYPT_20743]).

오류 처리

생성에 실패하면 함수는 ara::core::Result 내에 오류 객체를 반환합니다([SWS_CRYPT_20743]):

  • ara::crypto::CryptoErrc::kUnknownIdentifier: 인자 algId에 지원되지 않는 값이 포함된 경우 보고되며, 이때 롤백 시맨틱이 적용됩니다([SWS_CRYPT_20743]).

동시성 및 제약사항

이 인터페이스는 noexcept(으)로 선언되어 있고 예외 안전(exception safe)으로 간주되며 스레드 안전(thread-safe)합니다([SWS_CRYPT_20743]). 따라서 제공된 algId이(가) 기본 CryptoProvider에서 지원되는 한([SWS_CRYPT_20743]), 동시성 컨텍스트에서 안전하게 호출될 수 있습니다.

이 사용 지침은 자동으로 생성되었으며 AUTOSAR R25-11의 사양 데이터만을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKeyWrapperCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20743
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20743@rel:R25-11#f80c3fa3
Content hash
f80c3fa3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20743
Status: valid/unmigrated Version: rel:R25-11#f6ffee2c 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_20743@rel:R25-11#f6ffee2c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e4d7cb12026-09-30
  • R19-11rel:R19-11#88c705562026-10-14
  • R20-11rel:R20-11#59ed5d162026-10-14
  • R21-11rel:R21-11#4c2a43392026-10-14
  • R22-11rel:R22-11#178879012026-10-14
  • R23-11rel:R23-11#2ae2b3f42026-10-14
  • R24-11rel:R24-11#2c2d21382026-10-14
  • R25-11rel:R25-11#f6ffee2c2026-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

함수 CreateVerifierPublicCtx [SWS_CRYPT_20757] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

Create a signature verification public key context.

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

사용법 및 호출 컨텍스트

클래스 ara::crypto::cryp::CryptoProvider의 순수 가상 메서드 CreateVerifierPublicCtx은(는) 헤더 파일 ara/crypto/cryp/crypto_provider.h을(를) 통해 선언됩니다 [SWS_CRYPT_20757]. 이 메서드는 공개 키를 사용한 서명 검증(공개 키 서명 검증)을 위한 컨텍스트를 동기적으로 생성하는 데 사용됩니다 [SWS_CRYPT_20757].

호출자는 매개변수 algId(유형 AlgId)을(를) 통해 원하는 암호화 서명 알고리즘의 식별자를 전달합니다 [SWS_CRYPT_20757]. 성공 시 함수는 생성된 검증 컨텍스트(VerifierPublicCtx::Sptr)를 가리키는 스마트 포인터를 포함하는 ara::core::Result을(를) 반환합니다 [SWS_CRYPT_20757].

오류 처리

오류 발생 시 롤백 시맨틱이 적용되며, 결과로 생성된 ara::core::Result은(는) 해당 오류 코드를 전달합니다 [SWS_CRYPT_20757]:

  • ara::crypto::CryptoErrc::kInvalidArgument: 인수 algId이(가) 공개 키를 사용한 서명 검증용으로 지정되지 않은 암호화 알고리즘을 가리킬 때 보고됩니다 [SWS_CRYPT_20757].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 대해 알 수 없거나 지원되지 않는 식별자가 전달된 경우 보고됩니다 [SWS_CRYPT_20757].

동시성 및 제약사항

이 메서드는 noexcept(으)로 선언되어 있고 완전한 예외 안전(exception safe)이며 명시적으로 스레드 안전(thread-safe)으로 지정되어 있습니다 [SWS_CRYPT_20757]. 따라서 외부 동기화 없이 여러 실행 컨텍스트에서의 병렬 호출이 허용됩니다.

이 사용 지침은 AUTOSAR Adaptive 릴리스 R25-11의 명세를 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<VerifierPublicCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from public key signature verification
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20757
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20757@rel:R25-11#c3d1e1b8
Content hash
c3d1e1b8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20757
Status: valid/unmigrated Version: rel:R25-11#f204fd55 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_20757@rel:R25-11#f204fd55
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8a5c49002026-09-30
  • R19-11rel:R19-11#37697b0f2026-10-14
  • R20-11rel:R20-11#73044a492026-10-14
  • R21-11rel:R21-11#0115fe5b2026-10-14
  • R22-11rel:R22-11#9dc931fa2026-10-14
  • R23-11rel:R23-11#a976f9ff2026-10-14
  • R24-11rel:R24-11#57fb002d2026-10-14
  • R25-11rel:R25-11#f204fd552026-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

함수 CryptoProvider [SWS_CRYPT_41005] Upstream: RS_CRYPTO_02004

CryptoProvider (const CryptoProvider &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41005
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41005@rel:R25-11#10f97c40
Content hash
10f97c40
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41005
Status: valid/unmigrated Version: rel:R25-11#16a35c30 Versionshistorie & Revisions (1 transition, 4 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_41005@rel:R25-11#16a35c30
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#baa0ea722026-09-30
  • R23-11rel:R23-11#aba1f1f92026-10-14
  • R24-11rel:R24-11#16a35c302026-10-14
  • R25-11rel:R25-11#16a35c302026-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

함수 CryptoProvider [SWS_CRYPT_41006] Upstream: RS_CRYPTO_02004

CryptoProvider (CryptoProvider &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41006
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41006@rel:R25-11#35828f17
Content hash
35828f17
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41006
Status: valid/unmigrated Version: rel:R25-11#9567ac75 Versionshistorie & Revisions (1 transition, 4 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_41006@rel:R25-11#9567ac75
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b43174f52026-09-30
  • R23-11rel:R23-11#8f1246d92026-10-14
  • R24-11rel:R24-11#9567ac752026-10-14
  • R25-11rel:R25-11#9567ac752026-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

함수 ExportSecuredKey [SWS_CRYPT_20728] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

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

인터페이스 ara::crypto::cryp::CryptoProvider의 ExportSecuredKey 메서드는 암호화 키 객체를 보안 직렬화된 포맷으로 내보냅니다[SWS_CRYPT_20728]. 전달된 키 객체 key은(는) algId에 의해 암시적으로 결정된 포맷에 따라 준비되고, 암호화 방식으로 패킹(“wrapped”)되며, 출력 버퍼 resultBuffer(으)로 직렬화됩니다[SWS_CRYPT_20728]. 패킹을 위해 선택적으로 키 암호화 키(kek)를 전달할 수 있습니다. kek이(가) 제공되지 않는 경우 메서드는 algId에 의해 암시적으로 결정된 KEK 또는 CryptoProvider의 기본 KEK로 대체됩니다[SWS_CRYPT_20728].

이 함수는 thread-safe 및 exception safe(으)로 분류되며 noexcept(으)로 주석 처리되어 있습니다[SWS_CRYPT_20728]. 해석: 시그니처가 Future와 같은 비동기 반환 타입 없이 직접 ara::core::Result을(를) 반환하므로 전체 패킹 및 직렬화 프로세스는 호출자 컨텍스트에서 동기식으로 실행될 것으로 추정됩니다. 질문 Q-3fb89afcc9300695 (열림)

성공적으로 완료되면 반환된 ara::core::Result<std::size_t>은(는) resultBuffer에 기록된 바이트 수를 제공합니다[SWS_CRYPT_20728]. 작업이 실패하면 롤백 시맨틱이 적용되고 다음 오류 중 하나가 보고됩니다[SWS_CRYPT_20728]:

  • UnknownIdentifier: 전달된 algId 값이 지원되지 않습니다[SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInvalidArgument: 키 객체를 패킹할 수 없거나(예: 유효하지 않은 크기 또는 부적절한 타입) 필수적으로 요구되는 kek이(가) 전달되지 않았습니다[SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kUsageViolation: key 또는 kek의 허용된 사용법이 선택한 알고리즘과 호환되지 않습니다[SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: 전달된 kek이(가) 내보내기 알고리즘과 호환되지 않습니다[SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: 출력 버퍼 resultBuffer이(가) 결과에 비해 너무 작습니다[SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kBusyResource: 내보내기에 필요한 리소스가 사용 중입니다[SWS_CRYPT_20728].

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

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

Parameter (in)

ParameterBeschreibung
algIdthe algId of the secure key export algorithm
keythe key to be exported
resultBufferan output buffer the securely exported key is written to
kekan optional key-encryption-key to be be used for wrapping the secured payload. Only used if the used algorithm does not determine the used key (e.g., based on configuration).

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the result written into resultBuffer or an error

Fehler

FehlercodeBeschreibung
UnknownIdentifierif algId has an unsupported value
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the key object cannot be wrapped (e.g., invalid size or type) or if a kek is expected but not provided.
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of key or kek is incompatible to the used algorithm
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the kek is incompatible to the used algorithm

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20728
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20728@rel:R25-11#81e7ec49
Content hash
81e7ec49
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20728
Status: valid/unmigrated Version: rel:R25-11#9dfe16b6 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_20728@rel:R25-11#9dfe16b6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#057427ea2026-09-30
  • R19-11rel:R19-11#cd9b1a7b2026-10-14
  • R20-11rel:R20-11#51350c8b2026-10-14
  • R21-11rel:R21-11#5ee1380e2026-10-14
  • R22-11rel:R22-11#72d859b12026-10-14
  • R23-11rel:R23-11#c0a14fe12026-10-14
  • R24-11rel:R24-11#661196972026-10-14
  • R25-11rel:R25-11#9dfe16b62026-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

함수 GeneratePrivateKey [SWS_CRYPT_20722] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

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

ara::crypto::cryp::CryptoProvider 클래스(ara/crypto/cryp/crypto_provider.h에 선언됨)의 메서드 GeneratePrivateKey은(는) 새로운 비대칭 키 쌍을 동기식으로 생성하고 생성된 개인 키를 ara::core::Result 내의 PrivateKey::Sptr(으)로 반환합니다[SWS_CRYPT_20722]. 연관된 공개 키는 직접 반환되지 않고 결과 키의 PrivateKey::GetPublicKey() 메서드를 통해 사후에 조회할 수 있습니다[SWS_CRYPT_20722].

호출 시 매개변수 algId은(는) 암호화 알고리즘을 지정하는 반면, privateKeyAllowedUsage은(는) 개인 키에 허용되는 변환 유형을 정의합니다[SWS_CRYPT_20722]. 이때 공개 키의 허용된 사용 플래그는 개인 키의 권한을 기반으로 다음과 같이 매핑됩니다[SWS_CRYPT_20722]:

  • kAllowDataDecryption은(는) kAllowDataEncryption(으)로 이어집니다.
  • kAllowSigGeneration은(는) kAllowSigVerification(으)로 이어집니다.
  • kAllowKeyAgreement은(는) kAllowKeyAgreement(으)로 이어집니다.
  • kAllowKeyUnwrapping은(는) kAllowKeyWrapping(으)로 이어집니다.

또한 공개 키에는 사용 플래그 kAllowPlaintextExport 및 kAllowPersist이(가) 자동으로 할당됩니다[SWS_CRYPT_20722].

동시성 및 실행과 관련하여 이 함수는 thread-safe 및 exception-safe로 지정되어 있습니다[SWS_CRYPT_20722]. 키 생성 중에 오류가 발생하면 결과는 롤백 시맨틱으로 처리됩니다[SWS_CRYPT_20722]. 다음 오류 코드가 반환될 수 있습니다:

  • algId에 대해 지원되지 않는 알고리즘이 전달된 경우 ara::crypto::CryptoErrc::kUnknownIdentifier,
  • 지정된 privateKeyAllowedUsage 플래그가 선택된 알고리즘 또는 키 유형과 호환되지 않는 경우 ara::crypto::CryptoErrc::kIncompatibleArguments,
  • 일시적으로 점유된 리소스로 인해 생성이 일시적으로 불가능한 경우 ara::crypto::CryptoErrc::kBusyResource[SWS_CRYPT_20722].

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

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm
privateKeyAllowedUsagethe flags that define a list of allowed transformations’ types in which the private key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created private key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20722
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20722@rel:R25-11#1956596f
Content hash
1956596f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20722
Status: valid/unmigrated Version: rel:R25-11#92625666 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_20722@rel:R25-11#92625666
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e76fe7892026-09-30
  • R19-11rel:R19-11#7f33da122026-10-14
  • R20-11rel:R20-11#e6ff089b2026-10-14
  • R21-11rel:R21-11#0cd706bd2026-10-14
  • R22-11rel:R22-11#33a2c8282026-10-14
  • R23-11rel:R23-11#2b3d45172026-10-14
  • R24-11rel:R24-11#b10084042026-10-14
  • R25-11rel:R25-11#926256662026-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

함수 GenerateRandomData [SWS_CRYPT_30098] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Fill the provided output data buffer randomData with random data.

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

ara::crypto::cryp::CryptoProvider 인터페이스의 순수 가상 메서드 GenerateRandomData은(는) 호출자가 제공한 메모리 영역을 암호화 난수 데이터로 채우는 역할을 합니다 [SWS_CRYPT_30098]. 선언은 헤더 파일 ara/crypto/cryp/crypto_provider.h에 있습니다.

출력 매개변수로 ReadWriteMem Region 유형의 randomData이(가) 전달되며, 이는 채워질 버퍼를 나타내고 그 크기가 생성될 난수 바이트 수를 결정합니다 [SWS_CRYPT_30098]. 해석: 함수가 Future 객체 없이 반환 유형으로 즉시 ara::core::Result<void>을(를) 사용하므로 데이터 생성은 동기 블로킹 방식으로 실행될 것으로 보입니다 [SWS_CRYPT_30098]. 질문 Q-315c0492dcf7f37d (열림) 반환 값은 성공 시 비어 있거나 오류 시 해당 오류 코드를 포함합니다 [SWS_CRYPT_30098].

실행 중 문제가 발생하면 부분적이거나 유효하지 않은 상태가 남지 않도록 롤백 의미론이 적용됩니다 [SWS_CRYPT_30098]. 다음 오류 상태가 명시되어 있습니다:

  • ara::crypto::CryptoErrc::kBusyResource: 기본 난수 생성기(RNG)에 현재 엔트로피가 충분하지 않아 요청된 양의 난수 바이트를 제공할 수 없습니다 [SWS_CRYPT_30098].
  • ara::crypto::CryptoErrc::kUnsupported: CryptoProvider의 구체적인 구현이 표준 난수 생성기를 지원하지 않습니다 [SWS_CRYPT_30098].

동시성 및 견고성 측면에서 메서드는 thread-safe 및 exception safe(으)로 명시되어 있습니다 [SWS_CRYPT_30098]. 따라서 여러 스레드가 함수를 병렬로 호출할 수 있으며, noexcept 사양은 인터페이스 경계를 넘어 C++ 예외가 발생하지 않음을 보장합니다.

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

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

Parameter (out)

ParameterBeschreibung
randomDataoutput data buffer to be filled with random data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the used RNG is currently out-of-entropy and therefore cannot provide the requested number of random bytes
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if no default RNG is supported by the CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30098@rel:R25-11#1949c222
Content hash
1949c222
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30098
Status: valid/unmigrated Version: rel:R25-11#480ab415 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_30098@rel:R25-11#480ab415
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#79a025442026-09-30
  • R20-11rel:R20-11#c9d663072026-10-14
  • R21-11rel:R21-11#1481f16f2026-10-14
  • R22-11rel:R22-11#321f73ae2026-10-14
  • R23-11rel:R23-11#f518793a2026-10-14
  • R24-11rel:R24-11#c16096352026-10-14
  • R25-11rel:R25-11#480ab4152026-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

함수 GenerateSymmetricKey [SWS_CRYPT_20721] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Generate a new symmetric key.

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

사용

순수 가상 메서드 GenerateSymmetricKey은 인터페이스 ara::crypto::cryp::CryptoProvider(헤더 파일 #include "ara/crypto/cryp/crypto_provider.h")을 통해 제공되며 새로운 대칭 키를 생성하는 데 사용됩니다 [SWS_CRYPT_20721]. 동기 호출은 매개변수 algId로 대상 대칭 암호화 알고리즘의 식별자를, allowedUsage로 생성된 키에 허용되는 변환 타입을 정의하는 비트 플래그를 필요로 합니다 [SWS_CRYPT_20721]. 성공적으로 실행되면 메서드는 SymmetricKey::Sptr, 즉 새로 생성된 대칭 키 객체에 대한 공유 포인터를 포함하는 ara::core::Result을 반환합니다 [SWS_CRYPT_20721].

오류 처리

키 생성 중 오류가 발생하면 ara::core::Result으로 전달됩니다. 지정된 모든 오류 사례에는 롤백 시맨틱이 적용됩니다 [SWS_CRYPT_20721]:

  • ara::crypto::CryptoErrc::kUnknownIdentifier: algId에 대해 지원되지 않는 값이 전달되었을 때 보고됩니다 [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: 지정된 allowedUsage 플래그가 선택된 algId 알고리즘 또는 키 타입과 호환되지 않을 때 발생합니다 [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kBusyResource: 일시적으로 점유된 리소스로 인해 연산을 일시적으로 수행할 수 없음을 나타냅니다 [SWS_CRYPT_20721].

동시성 및 제약사항

이 연산은 noexcept으로 선언되어 있으며 예외 안전(exception safe) 및 스레드 안전(thread-safe) 특성을 갖습니다 [SWS_CRYPT_20721]. 따라서 여러 스레드에서 동시에 호출할 수 있지만, 시스템 부하가 높은 경우 일시적인 병목 현상을 알리기 위해 오류 kBusyResource가 발생할 수 있습니다 [SWS_CRYPT_20721].

이 사용 지침은 명세를 기반으로 자동 생성되었습니다.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed transformations’ types in which the generated key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created symmetric key object or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20721
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20721@rel:R25-11#e19fde31
Content hash
e19fde31
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20721
Status: valid/unmigrated Version: rel:R25-11#921910dd 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_20721@rel:R25-11#921910dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#635fbe3a2026-09-30
  • R19-11rel:R19-11#ceb7dd0e2026-10-14
  • R20-11rel:R20-11#06044bd12026-10-14
  • R21-11rel:R21-11#b4656e752026-10-14
  • R22-11rel:R22-11#a3fb37fc2026-10-14
  • R23-11rel:R23-11#9d93b9e42026-10-14
  • R24-11rel:R24-11#7d27c8e42026-10-14
  • R25-11rel:R25-11#921910dd2026-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

함수 GetDefaultAllowedUsage [SWS_CRYPT_20955] Upstream: RS_CRYPTO_02003

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<AllowedUsageFlags >result containing a CryptoProvider specific default set of allowed Usages or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value

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

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

함수 GetProviderID [SWS_CRYPT_50015] Upstream: RS_CRYPTO_02305

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Obtain provider specific identification data.

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

Parameter (in)

ParameterBeschreibung
inOptional input data required by some identification protocols (e.g. SHE/CMD_GET_ID)

Parameter (out)

ParameterBeschreibung
idDatathe identification data of the provider

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the provided ReadWriteMemRegion parameter idData is insufficient in size to hold the identification data

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

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

함수 GetProviderIdSize [SWS_CRYPT_50016] Upstream: RS_CRYPTO_02305

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

Get the required size of the output buffer for ID data used by GetProviderID.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required size of ID data in bytes or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification

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

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

함수 GetSecureCounter [SWS_CRYPT_20098] Upstream: RS_CRYPTO_02401

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

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

ara::crypto::cryp::CryptoProvider 클래스의 GetSecureCounter() 메서드(#include "ara/crypto/cryp/crypto_provider.h"에 선언됨)는 제공자 인스턴스의 보안 카운터 현재 카운터 값을 쿼리합니다[SWS_CRYPT_20098]. 이 함수는 동기식으로 작동하며 전달 매개변수가 필요하지 않습니다[SWS_CRYPT_20098]. 성공 시 ara::core::Result<SecureCounter>를 통해 두 개의 부호 없는 64비트 값(Least Significant Quad Word의 경우 LSQW, Most Significant Quad Word의 경우 MSQW)으로 구성된 SecureCounter 구조체를 반환합니다[SWS_CRYPT_20098]. 반환된 모든 카운터 값은 이 인스턴스를 통해 이전에 제공된 모든 값보다 엄격하게 더 크다는 것이 보장됩니다[SWS_CRYPT_20098].

카운터 값을 확인할 수 없는 경우 호출이 실패하고 Result 객체에 롤백 시맨틱이 포함된 오류 코드를 반환합니다[SWS_CRYPT_20098]:

  • ara::crypto::CryptoErrc::kUnsupported: 특정 CryptoProvider이 보안 카운터를 지원하지 않습니다[SWS_CRYPT_20098].
  • ara::crypto::CryptoErrc::kBusyResource: 카운터 액세스 또는 업데이트에 필요한 리소스가 현재 사용 중입니다[SWS_CRYPT_20098].

동시성 및 견고성과 관련하여 이 함수는 스레드 안전(thread-safe)으로 명시되어 있으며 noexcept을 사용하여 예외 안전(exception safe)으로 선언되었습니다[SWS_CRYPT_20098]. 따라서 외부 동기화 없이 여러 스레드에서의 병렬 호출이 허용되며, 제공되는 카운터 값의 엄격한 단조성이 계속 보장됩니다[SWS_CRYPT_20098].

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

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

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

Rückgabewert

TypBeschreibung
ara::core::Result<SecureCounter >a result containing a SecureCounter struct made up of the two unsigned 64 bit values (LSQW and MSQW), or an error:

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the Secure Counter is not supported by the CryptoProvider
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20098@rel:R25-11#530c235d
Content hash
530c235d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20098
Status: valid/unmigrated Version: rel:R25-11#0c57734d 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_20098@rel:R25-11#0c57734d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#62146ddd2026-09-30
  • R20-11rel:R20-11#31b7c30b2026-10-14
  • R21-11rel:R21-11#450747932026-10-14
  • R22-11rel:R22-11#1e50ce5f2026-10-14
  • R23-11rel:R23-11#76f9cfec2026-10-14
  • R24-11rel:R24-11#267205092026-10-14
  • R25-11rel:R25-11#0c57734d2026-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

함수 ImportPrivateKey [SWS_CRYPT_50132] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized private key.

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

사용

ara::crypto::cryp::CryptoProvider 클래스의 ImportPrivateKey 메서드는 직렬화된 프라이빗 키를 동기식으로 가져오는 역할을 합니다 [SWS_CRYPT_50132]. 호출 시 페이로드는 메모리 영역 serialized(ReadOnlyMemRegion)을 통해 전달되며, 원하는 사용 제한(allowedUsage) 및 직렬화 형식(formatId)이 추가됩니다. 매개변수 algId은(는) 선택 사항(ara::core::Optional<AlgId>)이며, 선택한 형식이 필요한 키 속성을 자체적으로 이미 명확하게 정의하지 않는 경우에만 설정해야 합니다 [SWS_CRYPT_50132]. 반환값으로 함수는 성공 시 생성된 키 객체에 대한 공유 포인터를 포함하는 ara::core::Result<PrivateKey::Sptr>을(를) 반환합니다.

오류 처리

오류 발생 시 이 메서드는 롤백 시맨틱이 적용되도록 보장합니다 [SWS_CRYPT_50132]. Result을(를) 통해 다음 오류 코드가 반환될 수 있습니다:

  • InvalidArgument: serialized의 직렬화된 데이터가 지정된 형식과 일치하지 않습니다 [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: 전달된 allowedUsage이(가) algId과(와) 호환되지 않습니다 [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 Provider에서 함수를 지원하지 않습니다 [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kBusyResource: 점유된 리소스로 인해 연산을 일시적으로 실행할 수 없습니다 [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupportedFormat: 이 객체 유형에 대해 formatId이(가) 지원되지 않습니다 [SWS_CRYPT_50132].

동시성 및 제약사항

이 인터페이스는 noexcept(으)로 선언되어 있으며 예외 안전성(exception safe) 및 스레드 안전성(thread-safe)을 제공합니다 [SWS_CRYPT_50132]. 따라서 여러 스레드에서 병렬로 호출할 수 있습니다.

이 텍스트는 AUTOSAR 사양을 기반으로 AI 시스템에 의해 생성되었습니다.

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50132@rel:R25-11#0b47f9db
Content hash
0b47f9db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50132
Status: valid/unmigrated Version: rel:R25-11#014ff708 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_50132@rel:R25-11#014ff708
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

함수 ImportPublicKey [SWS_CRYPT_20732] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

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

사용

ImportPublicKey 메서드는 직렬화된 공개 키를 해당 ara::crypto::cryp::CryptoProvider(으)로 가져오는 역할을 합니다[SWS_CRYPT_20732]. 호출은 동기식으로 수행되며 성공 시 생성된 키 객체에 대한 스마트 포인터를 포함하는 ara::core::Result<PublicKey::Sptr>을(를) 반환합니다[SWS_CRYPT_20732].

호출 시 다음 매개변수들이 전달됩니다 [SWS_CRYPT_20732]:

  • serialized: 직렬화된 키의 원시 데이터를 제공하는 ReadOnlyMemRegion 메모리 영역입니다.
  • allowedUsage: 가져온 키에 대해 허용된 사용 플래그(AllowedUsageFlags)입니다.
  • formatId: 직렬화 포맷의 식별자(FormatId)입니다.
  • algId: 선택적 알고리즘 ID(ara::core::Optional<AlgId>)입니다. 직렬화 포맷이 이미 키의 속성을 고유하게 결정하는 경우에는 필요하지 않습니다.

오류 처리

처리 중 오류가 발생하면 반환된 ara::core::Result에 캡슐화됩니다. 다음 오류 코드가 지정되어 있습니다[SWS_CRYPT_20732]:

  • InvalidArgument: serialized에 전달된 데이터가 지정된 포맷과 일치하지 않습니다.
  • ara::crypto::CryptoErrc::kIncompatibleArguments: 사용 플래그 allowedUsage이(가) algId와(과) 호환되지 않습니다.
  • ara::crypto::CryptoErrc::kUnsupportedFormat: 지정된 formatId이(가) 이 객체 타입에 대해 지원되지 않습니다.
  • ara::crypto::CryptoErrc::kUnsupported: 요청된 기능이 CryptoProvider에서 지원되지 않습니다.
  • ara::crypto::CryptoErrc::kBusyResource: 작업을 일시적으로 실행할 수 없습니다.

동시성 및 안전성

이 메서드는 noexcept(으)로 선언되고, Exception-safe로 간주되며, 사양에 따라 Thread-safe로 지정되어 있습니다[SWS_CRYPT_20732]. 오류 케이스는 정의된 롤백 시맨틱을 따릅니다[SWS_CRYPT_20732].

이 텍스트는 AI 시스템에 의해 생성되었으며 릴리스 R25-11의 사양 데이터만을 기반으로 합니다.

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20732
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20732@rel:R25-11#6e856b4c
Content hash
6e856b4c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20732
Status: valid/unmigrated Version: rel:R25-11#51a436c4 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_20732@rel:R25-11#51a436c4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2473d8742026-09-30
  • R19-11rel:R19-11#1450fe912026-10-14
  • R20-11rel:R20-11#9c83b88d2026-10-14
  • R21-11rel:R21-11#56c01f3b2026-10-14
  • R22-11rel:R22-11#2ec0aa1f2026-10-14
  • R23-11rel:R23-11#56bf56252026-10-14
  • R24-11rel:R24-11#ada4cfb92026-10-14
  • R25-11rel:R25-11#51a436c42026-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

함수 ImportSymmetricKey [SWS_CRYPT_50014] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 ImportSymmetricKey은 직렬화된 대칭 키를 가져오는 역할을 합니다 [SWS_CRYPT_50014]. 반환값으로 ara::core::Result<SymmetricKey::Sptr>을 반환하며, 이는 성공 시 새로 인스턴스화된 키 객체에 대한 스마트 포인터를 제공합니다 [SWS_CRYPT_50014]. Future와 같은 비동기 반환 형식이 사용되지 않으므로 실행은 동기적으로 이루어질 것으로 보입니다. 질문 Q-720a495b07c4f31d (열림)

호출 시 다음 매개변수를 전달해야 합니다 [SWS_CRYPT_50014]:

  • serialized (ReadOnlyMemRegion): 직렬화된 키 데이터를 포함하는 메모리 영역.
  • allowedUsage (AllowedUsageFlags): 이 키에 대해 허용된 작업 및 용도의 비트마스크.
  • formatId (FormatId): 키 데이터의 직렬화 형식 식별자.
  • algId (ara::core::Optional<AlgId>): 선택적 알고리즘 식별자; 지정된 직렬화 형식이 키의 필요한 모든 속성을 이미 고유하게 결정하는 경우에는 필요하지 않습니다.

오류 처리 및 제약 조건

이 메서드는 thread-safe 및 exception safe(으)로 명시되어 있습니다 [SWS_CRYPT_50014]. 오류 발생 시 구현은 롤백 시맨틱을 보장하고 ara::core::Result에 해당 오류 코드를 반환합니다 [SWS_CRYPT_50014]:

  • InvalidArgument: serialized에 전달된 바이너리 데이터가 지정된 형식과 일치하지 않습니다.
  • ara::crypto::CryptoErrc::kIncompatibleArguments: 정의된 allowedUsage 플래그가 지정된 algId와(과) 호환되지 않습니다.
  • ara::crypto::CryptoErrc::kUnsupported: CryptoProvider의 구체적인 인스턴스에서 해당 기능을 지원하지 않습니다.
  • ara::crypto::CryptoErrc::kUnsupportedFormat: 지정된 형식이 이 키 유형에 대해 지원되지 않습니다.
  • ara::crypto::CryptoErrc::kBusyResource: 일시적으로 점유된 리소스로 인해 현재 작업을 실행할 수 없습니다.

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

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

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

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

함수 LoadPrivateKey [SWS_CRYPT_20764] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;

Load a private key from the provided KeySlot.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 LoadPrivateKey은(는) 제공된 키 슬롯에서 개인 키를 로드합니다([SWS_CRYPT_20764]). 호출은 동기적으로 실행되며 소스 리소스에 대한 공유 포인터(keySlot)를 매개변수로 받습니다. 성공 시 함수는 로드된 키 객체에 대한 공유 포인터(PrivateKey::Sptr)를 제공하며, 이는 ara::core::Result 내에 담겨 반환됩니다([SWS_CRYPT_20764]).

오류 처리

작업 중 오류가 발생하면 롤백 시맨틱이 적용되며 ara::core::Result에는 특정 오류 코드가 포함됩니다([SWS_CRYPT_20764]):

  • ara::crypto::CryptoErrc::kEmptyKeySlot: 전달된 키 슬롯이 비어 있습니다([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kIncompatibleObject: 기본 리소스가 호환되지 않는 다른 CryptoProvider에 속하거나 다른 키 타입을 포함합니다([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kBusyResource: 작업을 일시적으로 실행할 수 없습니다([SWS_CRYPT_20764]).

동시성 및 안전성

사양에서는 이 함수를 thread-safe 및 exception safe로 분류합니다. 시그니처는 noexcept(으)로 선언되어 있습니다([SWS_CRYPT_20764]). 여러 스레드가 메서드에 병렬로 접근할 수 있지만, 일시적인 리소스 충돌 시 발생할 수 있는 kBusyResource의 반환을 처리해야 합니다.

본 사용 지침은 명세를 기반으로 자동 생성되었습니다.

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20764
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20764@rel:R25-11#783dced7
Content hash
783dced7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20764
Status: valid/unmigrated Version: rel:R25-11#619ff9c3 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_20764@rel:R25-11#619ff9c3
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#562267092026-09-30
  • R20-11rel:R20-11#cf85edd52026-10-14
  • R21-11rel:R21-11#7866d75f2026-10-14
  • R22-11rel:R22-11#7ef331982026-10-14
  • R23-11rel:R23-11#9721217a2026-10-14
  • R24-11rel:R24-11#00f5f0232026-10-14
  • R25-11rel:R25-11#619ff9c32026-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

함수 LoadPublicKey [SWS_CRYPT_20763] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a public key from the provided KeySlot.

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

사용

인터페이스 ara::crypto::cryp::CryptoProvider의 메서드 LoadPublicKey은(는) 제공된 키 저장 공간 [SWS_CRYPT_20763]에서 공개 키를 로드합니다. 매개변수 keySlot(으)로서 로드할 키가 있는 저장 공간을 참조하는 KeySlot::Sptr을(를) 기대합니다 [SWS_CRYPT_20763]. 반환값으로 함수는 ara::core::Result<PublicKey::Sptr>을(를) 반환하며, 성공 시 로드된 공개 키 객체에 대한 공유 포인터가 포함됩니다 [SWS_CRYPT_20763]. Result 값을 직접 반환하는 것은 동기식 호출 동작을 나타내는 것으로 보입니다. 질문 Q-e0d2480909b1398a (열림)

오류 처리

로드 작업이 실패하면 ara::core::Result에는 도메인 ara::crypto::CryptoErrc의 해당 오류 코드가 포함되며, 지정된 모든 오류 사례에 대해 롤백 시맨틱이 정의되어 있습니다 [SWS_CRYPT_20763]:

  • ara::crypto::CryptoErrc::kEmptyKeySlot: 전달된 KeySlot이(가) 비어 있는 경우 발생합니다 [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kIncompatibleObject: 기본 리소스가 호환되지 않는 다른 CryptoProvider에 속하거나 다른 키 타입을 포함하는 경우 반환됩니다 [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kBusyResource: 리소스가 다른 용도로 사용 중이어서 작업을 일시적으로 실행할 수 없는 경우 발생합니다 [SWS_CRYPT_20763].

동시성 및 안전성

이 메서드는 noexcept(으)로 선언되어 있으며 Exception-safe로 명시되어 있습니다 [SWS_CRYPT_20763]. 동시성과 관련하여 이 작업은 명시적으로 Thread-safe로 분류되어 여러 스레드에서의 병렬 호출이 허용됩니다 [SWS_CRYPT_20763].

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

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20763
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20763@rel:R25-11#aa17ba1d
Content hash
aa17ba1d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20763
Status: valid/unmigrated Version: rel:R25-11#94997baf 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_20763@rel:R25-11#94997baf
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3b024d4b2026-09-30
  • R20-11rel:R20-11#5ef8747d2026-10-14
  • R21-11rel:R21-11#cecedb902026-10-14
  • R22-11rel:R22-11#3bab55812026-10-14
  • R23-11rel:R23-11#406c01632026-10-14
  • R24-11rel:R24-11#fc5230262026-10-14
  • R25-11rel:R25-11#94997baf2026-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

함수 LoadSymmetricKey [SWS_CRYPT_20762] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

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

클래스 ara::crypto::cryp::CryptoProvider의 순수 가상 메서드 LoadSymmetricKey은(는) 제공된 키 저장 공간 [SWS_CRYPT_20762]에서 대칭 키를 로드하는 데 사용됩니다. 이 함수는 해당 저장 공간에 대한 공유 포인터(keySlot)를 매개변수로 받으며, 동기적으로 ara::core::Result<SymmetricKey::Sptr>을(를) 반환하고, 성공적으로 실행될 경우 로드된 키 객체에 대한 공유 포인터를 제공합니다 [SWS_CRYPT_20762].

동시성 및 실행 안전성과 관련하여 이 메서드는 thread-safe 및 exception safe(으)로 명시되어 있으며 noexcept(으)로 선언되어 있습니다 [SWS_CRYPT_20762].

로드 중 오류가 발생하면 메서드는 Result 객체를 통해 정의된 롤백 시맨틱과 함께 ara::crypto::CryptoErrc 도메인의 특정 오류 코드를 반환합니다 [SWS_CRYPT_20762]:

  • ara::crypto::CryptoErrc::kEmptyKeySlot: 전달된 KeySlot이(가) 비어 있는 경우 발생합니다 [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kIncompatibleObject: 기본 리소스가 호환되지 않는 다른 Crypto-Provider에 속하거나 다른 키 타입을 포함하는 경우 반환됩니다 [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kBusyResource: 작업을 일시적으로 실행할 수 없음을 나타냅니다 [SWS_CRYPT_20762].

이 텍스트는 AI 시스템에 의해 생성되었으며 사양에만 근거합니다.

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

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20762
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20762@rel:R25-11#da0e385a
Content hash
da0e385a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20762
Status: valid/unmigrated Version: rel:R25-11#f47254ea 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_20762@rel:R25-11#f47254ea
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0e0c91c92026-09-30
  • R20-11rel:R20-11#a2b2b6ca2026-10-14
  • R21-11rel:R21-11#71269d212026-10-14
  • R22-11rel:R22-11#af928a362026-10-14
  • R23-11rel:R23-11#aa4c06512026-10-14
  • R24-11rel:R24-11#d7011cdb2026-10-14
  • R25-11rel:R25-11#f47254ea2026-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

함수 operator= [SWS_CRYPT_30216] Upstream: RS_CRYPTO_02004

CryptoProvider & operator= (const CryptoProvider &other)=delete;

Copy-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30216
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30216@rel:R25-11#554b0ff3
Content hash
554b0ff3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30216
Status: valid/unmigrated Version: rel:R25-11#96e40041 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_30216@rel:R25-11#96e40041
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d4dd587d2026-09-30
  • R20-11rel:R20-11#8f862b702026-10-14
  • R21-11rel:R21-11#8f862b702026-10-14
  • R22-11rel:R22-11#1f0154312026-10-14
  • R23-11rel:R23-11#b6c645d62026-10-14
  • R24-11rel:R24-11#96e400412026-10-14
  • R25-11rel:R25-11#96e400412026-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

함수 operator= [SWS_CRYPT_30217] Upstream: RS_CRYPTO_02004

CryptoProvider & operator= (CryptoProvider &&other)=delete;

Move-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30217
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30217@rel:R25-11#eb71808e
Content hash
eb71808e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30217
Status: valid/unmigrated Version: rel:R25-11#fcc3d64e 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_30217@rel:R25-11#fcc3d64e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#875b931c2026-09-30
  • R20-11rel:R20-11#ad3659582026-10-14
  • R21-11rel:R21-11#c29463602026-10-14
  • R22-11rel:R22-11#1048bb462026-10-14
  • R23-11rel:R23-11#4eff1ccf2026-10-14
  • R24-11rel:R24-11#53bda24c2026-10-14
  • R25-11rel:R25-11#fcc3d64e2026-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

함수 ~CryptoProvider [SWS_CRYPT_20710] Upstream: RS_CRYPTO_02107

virtual ~CryptoProvider () noexcept=default;

Destructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20710@rel:R25-11#755c2693
Content hash
755c2693
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20710
Status: valid/unmigrated Version: rel:R25-11#8dc356f1 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_20710@rel:R25-11#8dc356f1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#92a5ae4c2026-09-30
  • R19-11rel:R19-11#262154f72026-10-14
  • R20-11rel:R20-11#01fe77212026-10-14
  • R21-11rel:R21-11#01fe77212026-10-14
  • R22-11rel:R22-11#416497032026-10-14
  • R23-11rel:R23-11#9976743f2026-10-14
  • R24-11rel:R24-11#9c7dc3252026-10-14
  • R25-11rel:R25-11#8dc356f12026-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

타입 별칭 문서

타입 별칭 Sptr [SWS_CRYPT_20701] Upstream: RS_CRYPTO_02109

using Sptr = std::shared_ptr<CryptoProvider>;

Shared pointer of the CryptoProvider.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20701
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20701@rel:R25-11#c23b5e40
Content hash
c23b5e40
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20701
Status: valid/unmigrated Version: rel:R25-11#b2ab3ec9 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_20701@rel:R25-11#b2ab3ec9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#374f02562026-09-30
  • R19-11rel:R19-11#c100f8d02026-10-14
  • R20-11rel:R20-11#60b520932026-10-14
  • R21-11rel:R21-11#60b520932026-10-14
  • R22-11rel:R22-11#6cce43132026-10-14
  • R23-11rel:R23-11#35053b082026-10-14
  • R24-11rel:R24-11#90ffb1202026-10-14
  • R25-11rel:R25-11#b2ab3ec92026-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