fonction 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.
La fonction membre purement virtuelle Convert de l'interface ara::crypto::Formatter exécute une conversion synchrone de données conformément à la configuration préalablement définie de l'objet formateur [SWS_CRYPT_50198]. La déclaration est disponible via l'en-tête #include "ara/crypto/common/formatter.h" [SWS_CRYPT_50198]. Pour l'appel, l'appelant transmet les données d'entrée dans le format d'origine via le tampon input de type ReadOnlyMemRegion ainsi qu'un tampon accessible en écriture out de type ReadWriteMemRegion, dans lequel les données converties sont écrites au format cible [SWS_CRYPT_50198].
La valeur de retour est définie comme ara::core::Result<void> et signale le succès ou une erreur survenue [SWS_CRYPT_50198]. Si un problème survient pendant la conversion, une sémantique de rollback s'applique avec les codes d'erreur spécifiques suivants [SWS_CRYPT_50198] :
ara::crypto::CryptoErrc::kInvalidArgument: renvoyé si les données d'entrée sérialisées ne correspondent pas au format spécifié [SWS_CRYPT_50198].ara::crypto::CryptoErrc::kInsufficientCapacity: survient lorsque la capacité du tampon de sortieouttransmis est insuffisante pour accueillir les données de résultat [SWS_CRYPT_50198].
Concernant la concurrence et la tolérance aux pannes, la méthode est spécifiée comme sûre du point de vue des threads (thread-safe) et sûre face aux exceptions (exception safe) [SWS_CRYPT_50198]. La signature étant dotée des spécificateurs const et noexcept, l'opération ne lève aucune exception C++ et ne modifie pas l'état de l'instance du formateur [SWS_CRYPT_50198].
Cette note d'utilisation a été générée automatiquement par une IA sur la base de la spécification.
| 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#8bf49637- Content hash
8bf49637- 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 · Original allemand