फ़ंक्शन 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#b76ab5a5- Content hash
b76ab5a5- 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 · जर्मन मूल