function 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.
The AddEntropy method of class ara::crypto::cryp::RandomGeneratorCtx serves to update the internal state of a random number generator (RNG) by mixing in additionally passed entropy values [SWS_CRYPT_22914]. The declaration is available via header file ara/crypto/cryp/random_generator_ctx.h [SWS_CRYPT_22914]. As an input parameter, the function expects an object of type ReadOnlyMemRegion named entropy, which encapsulates the memory region with the entropy value to be added [SWS_CRYPT_22914].
The call is executed synchronously (interpretation: the interface returns the result directly without an asynchronous result type). Question Q-6e56e1daaa526bf8 (open) The result is returned as ara::core::Result<void>, which is empty in case of success if the method is supported and the entropy could be successfully mixed in [SWS_CRYPT_22914]. If the concrete random number generator context does not support adding entropy, however, the call fails and returns the error code ara::crypto::CryptoErrc::kUnsupported with guaranteed rollback semantics [SWS_CRYPT_22914].
With regard to concurrency and failure safety, the interface is specified as thread-safe (thread-safe) as well as exception-safe (exception safe) and provided with the identifier noexcept [SWS_CRYPT_22914]. Callers can thus safely call the function from multiple threads, but should always evaluate the returned ara::core::Result to handle a lack of support for entropy addition in the respective context [SWS_CRYPT_22914].
This usage note was generated automatically based on the specification.
Implementer's Guide to follow (complexity 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#c6792085- Content hash
c6792085- 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 · German original