함수 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.
클래스 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" |
|---|---|
| Scope | class ara::crypto::cryp::RandomGeneratorCtx |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| entropy | a memory region with the additional entropy value |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| 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
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kUnsupported | rollback_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
Recorded Revisions (7):
- R25-11
rel:R25-11#c67920852026-09-30 - R20-11
rel:R20-11#79cd0e4d2026-10-14 - R21-11
rel:R21-11#79cd0e4d2026-10-14 - R22-11
rel:R22-11#ac415c9e2026-10-14 - R23-11
rel:R23-11#0440a4ee2026-10-14 - R24-11
rel:R24-11#75d73d2c2026-10-14 - R25-11
rel:R25-11#03de5ab12026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 독일어 원문