DEENESPTFRRUARHIKOZHNL

클래스 ara::crypto::cryp::RandomGeneratorCtx

[SWS_CRYPT_22900] Upstream: RS_CRYPTO_02206

class RandomGeneratorCtx :               public CryptoContext {...};

Interface of Random Number Generator Context.

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

사용자 가이드AI 생성

암호화 난수 데이터를 생성하고 내부 생성기 상태 및 엔트로피 공급을 관리합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: ef81953cc5a7 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

암호화 난수 데이터를 생성하고 내부 생성기 상태 및 엔트로피 공급을 관리합니다.

인터페이스 ara::crypto::cryp::RandomGeneratorCtx은 준비된 버퍼에 의사 난수를 생성하기 위한 스레드 안전한 컨텍스트를 제공합니다 [SWS_CRYPT_22915]. 컨텍스트 구현에 따라 엔트로피 데이터 또는 키를 사용하여 Seed를 통해 내부 생성기 상태를 사전에 초기화해야 합니다([SWS_CRYPT_22911], [SWS_CRYPT_22912]). 초기화되지 않았거나 엔트로피 풀이 고갈된 경우 생성 함수는 해당 표준화된 오류 코드로 호출에 응답합니다 [SWS_CRYPT_22915].

컨텍스트

인터페이스 ara::crypto::cryp::RandomGeneratorCtx은 Adaptive 모듈 crypto 내 난수 생성기를 위한 암호화 컨텍스트를 정의합니다. CryptoContext의 특수화로서 이 클래스는 암호학적으로 안전한 (의사) 난수 시퀀스 생성 및 생성기의 내부 상태 관리에 사용됩니다. 응용 서비스는 일반적으로 키 자료, 초기화 벡터 또는 보안 관련 프로토콜을 위한 난수 값을 얻기 위해 이 인터페이스의 인스턴스에 접근합니다. 컨텍스트 인스턴스의 제공 및 교환은 주로 공유 스마트 포인터를 통해 수행되며, 이를 위해 타입 앨리어스 Sptr [SWS_CRYPT_22901]가 제공됩니다.

수명 주기

난수 생성기 컨텍스트의 수명은 std::shared_ptr을 통한 참조 카운팅으로 제어됩니다([SWS_CRYPT_22901]). 인스턴스화 후 생성기는 기반 구현에 따라 이미 사용할 준비가 된 상태에 있거나 애플리케이션에 의한 사전 초기화가 필요합니다. 내부 생성기 상태를 초기화하는 데는 ReadOnlyMemRegion [SWS_CRYPT_22911]를 통한 로우 메모리 영역 또는 SymmetricKey::Sptr [SWS_CRYPT_22912] 타입의 대칭 키 객체가 제공되는 메서드 Seed가 사용됩니다. 모든 핵심 멤버 함수(Seed, AddEntropy 및 Generate)는 명세에 따라 예외 안전(noexcept)하며 스레드 안전([SWS_CRYPT_22911], [SWS_CRYPT_22912], [SWS_CRYPT_22914], [SWS_CRYPT_22915])으로 선언되어 있어, 애플리케이션 내부 잠금 없이 여러 스레드로부터의 병렬 호출을 지원합니다.

사용 경로

일반적인 사용 절차에는 생성기 상태 준비, 추가 엔트로피 혼합(선택 사항), 그리고 후속 난수 데이터 조회가 포함됩니다:

  • 상태 초기화(시딩): 컨텍스트에 호출자에 의한 시딩이 필요한 경우, 엔트로피 데이터 [SWS_CRYPT_22911] 또는 대칭 키 [SWS_CRYPT_22912]를 사용하여 Seed이 실행됩니다. 구현이 하드웨어 기반이거나 고정 초기화되어 시딩을 지원하지 않는 경우 호출은 실패합니다.
  • 추가 엔트로피 혼합: AddEntropy [SWS_CRYPT_22914]을 통해 런타임에 내부 상태에 새로 획득한 엔트로피(ReadOnlyMemRegion로 전달됨)를 보강할 수 있습니다.
  • 난수 시퀀스 생성: 메서드 Generate [SWS_CRYPT_22915]은 전달된 출력 버퍼 ReadWriteMemRegion를 의사 난수 데이터로 채웁니다.
Nutzungsablauf an RandomGeneratorCtxApp: AnwendungRngCtx: RandomGeneratorCtxalt원시 데이터로 초기화Seed(ReadOnlyMemRegion)Result<void>SymmetricKey로 초기화Seed(SymmetricKey::Sptr)Result<void>optOptionale EntropiezufuhrAddEntropy(ReadOnlyMemRegion)Result<void>Generate(ReadWriteMemRegion)Result<void>

시퀀스 다이어그램: RandomGeneratorCtx에서의 상태 초기화, 엔트로피 공급 및 난수 생성의 일반적인 흐름. 출처: [SWS_CRYPT_22911], [SWS_CRYPT_22912], [SWS_CRYPT_22914], [SWS_CRYPT_22915]

오류 시나리오

연산은 결과를 ara::core::Result에 담아 반환하며 오류 시 정의된 롤백 시맨틱을 갖습니다:

  • 초기화되지 않은 컨텍스트: 컨텍스트가 사전에 반드시 시딩을 요구함에도 애플리케이션이 Generate을 호출하면, 연산은 ara::crypto::CryptoErrc::kUninitializedContext로 실패합니다 [SWS_CRYPT_22915].
  • 엔트로피 부족: 내부 엔트로피 풀이 고갈되어 컨텍스트가 요청된 바이트 양을 일시적으로 생성할 수 없는 경우, Generate은 오류 ara::crypto::CryptoErrc::kBusyResource을 보고합니다 [SWS_CRYPT_22915]. 이 경우 애플리케이션은 나중에 호출을 재시도하거나 추가 시딩을 수행할 수 있습니다.
  • 허용되지 않은 키 사용: Seed 호출 시 전달된 SymmetricKey의 구성된 사용 권한에 kAllowRngInit 플래그가 포함되어 있지 않으면, 호출은 ara::crypto::CryptoErrc::kUsageViolation으로 거부됩니다 [SWS_CRYPT_22912].
  • 지원되지 않는 기능: 구체적인 컨텍스트 구현이 원칙적으로 시드 설정이나 사후 엔트로피 혼합을 지원하지 않는 경우, Seed([SWS_CRYPT_22911], [SWS_CRYPT_22912]) 및 AddEntropy [SWS_CRYPT_22914]은 오류 코드 ara::crypto::CryptoErrc::kUnsupported로 응답합니다.

이 가이드는 AUTOSAR Adaptive Platform R25-11 명세(crypto 모듈)를 기반으로 하며 명시된 명세 요구사항에만 근거합니다.

멤버 맵

타입 별칭

1

클래스 다이어그램

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

G nara__crypto__cryp__RandomGeneratorCtx512 RandomGeneratorCtx + AddEntropy() + Generate() + Seed() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__RandomGeneratorCtx512->nara__crypto__cryp__CryptoContext85

상세 보기

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

메서드

AddEntropy 함수

Update the internal state of the RNG by mixing it with the provided additional entropy.

virtual ara::core::Result< void > AddEntropy (ReadOnlyMemRegion entropy) noexcept=0;
Generate 함수

Fill the provided output buffer with a (pseudo)random sequence.

virtual ara::core::Result< void > Generate (ReadWriteMemRegion output) noexcept=0;
Seed 함수 2

Set the internal state of the RNG using the provided seed.

오버로드 Seed 2
virtual ara::core::Result< void > Seed (ReadOnlyMemRegion seed) noexcept=0; SWS_CRYPT_22911
virtual ara::core::Result< void > Seed (SymmetricKey::Sptr seed) noexcept=0; SWS_CRYPT_22912

타입 별칭

Sptr 타입 별칭

Shared smart pointer of the interface.

메서드 문서

함수 AddEntropy [SWS_CRYPT_22914] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > AddEntropy (ReadOnlyMemRegion entropy) noexcept=0;

Update the internal state of the RNG by mixing it with the provided additional entropy.

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

클래스 ara::crypto::cryp::RandomGeneratorCtx의 메서드 AddEntropy은(는) 추가로 전달된 엔트로피 값을 혼합하여 난수 생성기(RNG)의 내부 상태를 업데이트하는 데 사용됩니다 [SWS_CRYPT_22914]. 선언은 헤더 파일 ara/crypto/cryp/random_generator_ctx.h을(를) 통해 사용할 수 있습니다 [SWS_CRYPT_22914]. 입력 매개변수로 함수는 추가할 엔트로피 값을 가진 메모리 영역을 캡슐화하는 entropy 이름의 ReadOnlyMemRegion 타입 객체를 기대합니다 [SWS_CRYPT_22914].

호출은 동기적으로 실행됩니다(해석: 인터페이스가 비동기 결과 타입 없이 직접 결과를 반환함). 질문 Q-6e56e1daaa526bf8 (열림) 결과는 ara::core::Result<void>(으)로 반환되며, 메서드가 지원되고 엔트로피가 성공적으로 혼합된 경우 성공 시 비어 있습니다 [SWS_CRYPT_22914]. 반면에 구체적인 난수 생성기 컨텍스트가 엔트로피 추가를 지원하지 않는 경우 호출은 실패하고 보장된 롤백 시맨틱과 함께 오류 코드 ara::crypto::CryptoErrc::kUnsupported을(를) 반환합니다 [SWS_CRYPT_22914].

동시성 및 오류 안전성과 관련하여 이 인터페이스는 스레드 안전(thread-safe) 및 예외 안전(exception safe)(으)로 명시되어 있으며 식별자 noexcept이(가) 지정되어 있습니다 [SWS_CRYPT_22914]. 따라서 호출자는 여러 스레드에서 안전하게 함수를 호출할 수 있지만, 각 컨텍스트에서 엔트로피 공급 미지원을 처리하기 위해 반환된 ara::core::Result을(를) 항상 평가해야 합니다 [SWS_CRYPT_22914].

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

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

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

Parameter (in)

ParameterBeschreibung
entropya memory region with the additional entropy value

Rückgabewert

TypBeschreibung
ara::core::Result< void >a result that is empty if the method is supported and the entropy has been added successfully, an error otherwise

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the RandomGeneratorContext does not support adding entropy.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22914
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22914@rel:R25-11#eff87f7d
Content hash
eff87f7d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22914
Status: valid/unmigrated Version: rel:R25-11#03de5ab1 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_22914@rel:R25-11#03de5ab1
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#c67920852026-09-30
  • R20-11rel:R20-11#79cd0e4d2026-10-14
  • R21-11rel:R21-11#79cd0e4d2026-10-14
  • R22-11rel:R22-11#ac415c9e2026-10-14
  • R23-11rel:R23-11#0440a4ee2026-10-14
  • R24-11rel:R24-11#75d73d2c2026-10-14
  • R25-11rel:R25-11#03de5ab12026-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

함수 Generate [SWS_CRYPT_22915] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > Generate (ReadWriteMemRegion output) noexcept=0;

Fill the provided output buffer with a (pseudo)random sequence.

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

인터페이스 ara::crypto::cryp::RandomGeneratorCtx의 함수 Generate은(는) 제공된 출력 버퍼를 (의사) 난수 시퀀스로 채우는 데 사용됩니다 [SWS_CRYPT_22915]. 전달 매개변수로 메서드는 생성된 난수 바이트가 직접 기록되는 ReadWriteMemRegion 타입의 쓰기 가능한 메모리 영역 output을(를) 받습니다 [SWS_CRYPT_22915].

실행 안전성 및 동시성과 관련하여 이 메서드는 noexcept(으)로 선언되어 있고, Exception-safe로 간주되며, 명시적으로 thread-safe로 지정되어 있습니다 [SWS_CRYPT_22915]. 이를 통해 여러 스레드에서의 동시 호출이 허용됩니다.

오류 처리

반환 타입 ara::core::Result<void>은(는) 빈 결과를 통해 작업의 성공을 알리거나, 오류 발생 시 롤백 시맨틱과 함께 해당 오류 코드를 반환합니다 [SWS_CRYPT_22915]:

  • ara::crypto::CryptoErrc::kUninitializedContext: 컨텍스트가 사전에 애플리케이션에 의해 초기화되거나 엔트로피가 공급(“seeded”)되어야 하는 경우에 발생합니다 [SWS_CRYPT_22915].
  • ara::crypto::CryptoErrc::kBusyResource: 현재 컨텍스트의 엔트로피가 고갈되어(“out-of-entropy”) 요청된 양의 난수 바이트를 제공할 수 없는 경우에 반환됩니다 [SWS_CRYPT_22915].

상호작용 및 구분

RandomGeneratorCtx::Generate이(가) 버퍼에 원시 난수 데이터 바이트를 쓰는 반면 [SWS_CRYPT_22915], crypt 모듈에는 다른 목적을 가진 추가 생성 함수가 존재합니다. 예를 들어 CryptoProvider::GenerateSymmetricKey [SWS_CRYPT_20721]은(는) 대칭 키의 인스턴스화에 사용되고, CryptoProvider::GeneratePrivateKey [SWS_CRYPT_20722]은(는) 비대칭 키 쌍의 생성에 사용됩니다. 또한 이 메서드는 MAC 다이제스트 계산에 사용되는 MessageAuthnCodeCtx의 동일한 이름의 함수 Generate과(와) 혼동해서는 안 됩니다 [SWS_CRYPT_50029].

이 사용법 안내는 명세를 기반으로 AI에 의해 작성되었습니다.

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

Parameter (out)

ParameterBeschreibung
outputan output buffer the random sequence will be written into

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if this context has to be seeded by the application
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if this context is currently out-of-entropy and therefore cannot provide the requested number of random bytes

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22915
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22915@rel:R25-11#42f38cb6
Content hash
42f38cb6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22915
Status: valid/unmigrated Version: rel:R25-11#3fb7d1d3 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_22915@rel:R25-11#3fb7d1d3
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#f3af431f2026-09-30
  • R20-11rel:R20-11#2366a0852026-10-14
  • R21-11rel:R21-11#c128f5042026-10-14
  • R22-11rel:R22-11#8d39094f2026-10-14
  • R23-11rel:R23-11#31b6da982026-10-14
  • R24-11rel:R24-11#a6d941df2026-10-14
  • R25-11rel:R25-11#3fb7d1d32026-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

함수 Seed [SWS_CRYPT_22911] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > Seed (ReadOnlyMemRegion seed) noexcept=0;

Set the internal state of the RNG using the provided seed.

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

사용

ara::crypto::cryp::RandomGeneratorCtx 인터페이스의 순수 가상 메서드 Seed은(는) 제공된 메모리 영역 [SWS_CRYPT_22911]을(를) 통해 난수 생성기(RNG)의 내부 상태를 설정하는 데 사용됩니다. 선언은 헤더 ara/crypto/cryp/random_generator_ctx.h에서 시그니처 virtual ara::core::Result<void> Seed(ReadOnlyMemRegion seed) noexcept = 0;(으)로 이루어집니다 [SWS_CRYPT_22911].

입력 매개변수로 동기 함수는 시드 값을 포함하는 메모리 영역인 ReadOnlyMemRegion 유형의 seed을(를) 전달받습니다 [SWS_CRYPT_22911]. 성공적으로 실행되고 컨텍스트에서 지원하는 경우 메서드는 빈 ara::core::Result<void>을(를) 반환합니다 [SWS_CRYPT_22911].

오류 처리

오류가 발생하면 반환된 ara::core::Result에 해당 오류 코드가 포함됩니다 [SWS_CRYPT_22911]:

  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 RandomGeneratorCtx이(가) 시딩을 지원하지 않는 경우 발생하며, 이 오류 사례에 대해 롤백 의미론이 명시되어 있습니다 [SWS_CRYPT_22911].

동시성 및 제약사항

인터페이스는 noexcept(으)로 선언되어 있으며 실행 안전성 측면에서 exception safe 및 thread-safe로 분류됩니다 [SWS_CRYPT_22911].

상호 작용

이 메모리 영역 기반 함수를 보완하여 [SWS_CRYPT_22912]은(는) 대칭 키를 사용하여 RNG의 상태를 초기화하고 kAllowRngInit과(와) 같은 사용 제약을 평가하는 오버로드 Seed(SymmetricKey::Sptr seed)을(를) 정의합니다.

이 텍스트는 AI에 의해 생성되었으며 참조용입니다. 공식 AUTOSAR 사양이 결정적인 기준입니다.

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

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

Parameter (in)

ParameterBeschreibung
seeda memory region with the seed value

Rückgabewert

TypBeschreibung
ara::core::Result< void >a result that is empty if the method is supported and the state has been set successfully, an error otherwise

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the RandomGeneratorContext does not support seeding.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22911
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22911@rel:R25-11#93d6f64a
Content hash
93d6f64a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22911
Status: valid/unmigrated Version: rel:R25-11#2bcb8016 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_22911@rel:R25-11#2bcb8016
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9fb457fe2026-09-30
  • R19-11rel:R19-11#193a3e4f2026-10-14
  • R20-11rel:R20-11#78f96a302026-10-14
  • R21-11rel:R21-11#78f96a302026-10-14
  • R22-11rel:R22-11#fba8b4f92026-10-14
  • R23-11rel:R23-11#95e124962026-10-14
  • R24-11rel:R24-11#3e5b43f12026-10-14
  • R25-11rel:R25-11#2bcb80162026-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

함수 Seed [SWS_CRYPT_22912] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > Seed (SymmetricKey::Sptr seed) noexcept=0;

Set the internal state of the RNG using the provided seed.

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

메서드 Seed은(는) 대칭 키 [SWS_CRYPT_22912]을(를) 사용하여 ara::crypto::cryp::RandomGeneratorCtx의 컨텍스트에서 난수 생성기의 내부 상태를 초기화합니다. 호출은 동기식으로 수행되며 스레드 안전 및 예외 안전(exception safe 및 noexcept)(으)로 명시되어 있습니다 [SWS_CRYPT_22912]. 입력 매개변수로는 키에 대한 스마트 포인터(SymmetricKey::Sptr)가 사용되며, 해당 키 값이 시드로 사용됩니다 [SWS_CRYPT_22912].

오류 처리 시 함수는 성공할 경우 비어 있는 ara::core::Result<void>을(를) 반환합니다 [SWS_CRYPT_22912]. 작업이 실패하면 롤백 의미론이 적용되며, 이는 특히 다음 오류 코드에 해당합니다:

  • ara::crypto::CryptoErrc::kUsageViolation: 전달된 키의 허용된 키 사용에 kAllowRngInit 플래그가 포함되어 있지 않은 경우 발생합니다 [SWS_CRYPT_22912].
  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 컨텍스트 인스턴스가 대칭 키를 사용한 시드 설정을 지원하지 않는 경우 보고됩니다 [SWS_CRYPT_22912].

인터페이스 패밀리와의 상호작용에서 이 함수는 키 기반 변형을 나타내는 반면, [SWS_CRYPT_22911]에 따른 오버로드는 비정형 메모리 영역(ReadOnlyMemRegion)을 통한 초기화를 다룹니다. 롤백 의미론으로 인해 오류 발생 시 내부 생성기 상태는 이전 상태로 유지될 것으로 추정됩니다(해석). 질문 Q-970cbedd1843b26a (열림)

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

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

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

Parameter (in)

ParameterBeschreibung
seeda SymmetricKey with the key used as seed value

Rückgabewert

TypBeschreibung
ara::core::Result< void >a result that is empty if the method is supported and the state has been set successfully, an error otherwise

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowRngInit
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the RandomGeneratorContext does not support seeding with a symmetric key.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22912
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22912@rel:R25-11#1d761a38
Content hash
1d761a38
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22912
Status: valid/unmigrated Version: rel:R25-11#54e43b09 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_22912@rel:R25-11#54e43b09
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0427c1122026-09-30
  • R20-11rel:R20-11#5aeacae82026-10-14
  • R21-11rel:R21-11#5c22d3612026-10-14
  • R22-11rel:R22-11#1850986c2026-10-14
  • R23-11rel:R23-11#93854cda2026-10-14
  • R24-11rel:R24-11#ed5981cb2026-10-14
  • R25-11rel:R25-11#54e43b092026-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_22901] Upstream: RS_CRYPTO_02206

using Sptr = std::shared_ptr<RandomGeneratorCtx>;

Shared smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/random_generator_ctx.h"
Scopeclass ara::crypto::cryp::RandomGeneratorCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_22901
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_22901@rel:R25-11#b3f01df1
Content hash
b3f01df1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22901
Status: valid/unmigrated Version: rel:R25-11#7a09160c 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_22901@rel:R25-11#7a09160c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#27c190352026-09-30
  • R19-11rel:R19-11#3a4f19922026-10-14
  • R20-11rel:R20-11#79345f482026-10-14
  • R21-11rel:R21-11#a390f4732026-10-14
  • R22-11rel:R22-11#7a7cdbaa2026-10-14
  • R23-11rel:R23-11#df7bd4af2026-10-14
  • R24-11rel:R24-11#c6c47a032026-10-14
  • R25-11rel:R25-11#7a09160c2026-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