function Convert [SWS_CRYPT_50198] Upstream: RS_CRYPTO_02112
virtual ara::core::Result< void > Convert (ReadOnlyMemRegion input, ReadWriteMemRegion out) const noexcept=0;
Converts the data according to the previous configuration of the Formatter.
The pure virtual member function Convert of interface ara::crypto::Formatter performs a synchronous conversion of data according to the previously defined configuration of the formatter object [SWS_CRYPT_50198]. The declaration is available via header #include "ara/crypto/common/formatter.h" [SWS_CRYPT_50198]. For the call, the caller passes the input data in the original format via buffer input of type ReadOnlyMemRegion, as well as a writable buffer out of type ReadWriteMemRegion into which the converted data in the target format is written [SWS_CRYPT_50198].
The return value is defined as ara::core::Result<void> and signals success or an error that occurred [SWS_CRYPT_50198]. If a problem occurs during conversion, rollback semantics take effect with the following specific error codes [SWS_CRYPT_50198]:
ara::crypto::CryptoErrc::kInvalidArgument: Returned if the serialized input data does not conform to the specified format [SWS_CRYPT_50198].ara::crypto::CryptoErrc::kInsufficientCapacity: Occurs when the capacity of the passed output bufferoutis too small to receive the result data [SWS_CRYPT_50198].
With respect to concurrency and fault tolerance, the method is specified as thread-safe (thread-safe) and exception-safe (exception safe) [SWS_CRYPT_50198]. Since the signature is provided with the specifiers const and noexcept, the operation throws no C++ exceptions and does not modify the state of the formatter instance [SWS_CRYPT_50198].
This usage note was generated automatically by an AI based on the specification.
| Header-Datei | #include "ara/crypto/common/formatter.h" |
|---|---|
| Scope | class ara::crypto::Formatter |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| input | an input buffer containing the data in the input format |
Parameter (out)
| Parameter | Beschreibung |
|---|---|
| out | an output buffer that the data will be written to in the output format |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | An empty result or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kInvalidArgument | rollback_semantics if serialized does not conform to the specified format |
| ara::crypto::CryptoErrc::kInsufficientCapacity | rollback_semantics if the output buffer is too small |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_50198- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50198@rel:R25-11#19644f36- Content hash
19644f36- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50198
Status: valid/unmigrated
Version: rel:R25-11#19644f36
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_50198@rel:R25-11#19644f36
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