fonction CreateAuthCipherCtx [SWS_CRYPT_20745] Upstream: RS_CRYPTO_02207, RS_AP_00144
virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;
Create a symmetric authenticated cipher context.
La méthode CreateAuthCipherCtx sert à créer un contexte pour le chiffrement symétrique authentifié ([SWS_CRYPT_20745]). Elle est définie comme une interface virtuelle pure dans la classe ara::crypto::cryp::CryptoProvider et doit être incluse via le fichier d'en-tête ara/crypto/cryp/crypto_provider.h ([SWS_CRYPT_20745]).
Utilisation et sémantique
Le paramètre d'entrée transmis est algId, qui identifie l'algorithme cryptographique cible ([SWS_CRYPT_20745]). La fonction opère de manière synchrone et ne lève aucune exception (noexcept) ([SWS_CRYPT_20745]). En cas d'exécution réussie, elle renvoie un ara::core::Result avec un smart pointer vers l'instance créée AuthCipherCtx::Sptr ([SWS_CRYPT_20745]).
Gestion des erreurs
En cas d'erreur, un code d'erreur correspondant est renvoyé dans le ara::core::Result avec une sémantique de rollback ([SWS_CRYPT_20745]) :
ara::crypto::CryptoErrc::kInvalidArgument: lorsquealgIdne spécifie pas d'algorithme pour un chiffrement de flux symétrique authentifié ([SWS_CRYPT_20745]).ara::crypto::CryptoErrc::kUnknownIdentifier: lorsqu'une valeur non prise en charge a été transmise pouralgId([SWS_CRYPT_20745]).
concurrence
L'appel de CreateAuthCipherCtx est thread-safe (thread-safe) et spécifié comme sûr vis-à-vis des exceptions (exception safe) ([SWS_CRYPT_20745]).
Ce texte a été généré automatiquement. Toutes les déclarations techniques sont étayées par des références aux spécifications.
| Header-Datei | #include "ara/crypto/cryp/crypto_provider.h" |
|---|---|
| Scope | class ara::crypto::cryp::CryptoProvider |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| algId | identifier of the target crypto algorithm |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< AuthCipherCtx::Sptr > | Smart pointer to the created context |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kInvalidArgument | rollback_semantics if algId argument specifies a crypto algorithm different from symmetric authenticated stream cipher |
| ara::crypto::CryptoErrc::kUnknownIdentifier | rollback_semantics if algId argument has an unsupported value |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_20745- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_20745@rel:R25-11#14bb6c5b- Content hash
14bb6c5b- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20745
Status: valid/unmigrated
Version: rel:R25-11#39b58f01
Versionshistorie & Revisions (1 transition, 8 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_20745@rel:R25-11#39b58f01
Recorded Revisions (8):
- R25-11
rel:R25-11#f26e531e2026-09-30 - R19-11
rel:R19-11#068856e02026-10-14 - R20-11
rel:R20-11#07ae27852026-10-14 - R21-11
rel:R21-11#35bf37702026-10-14 - R22-11
rel:R22-11#69962f862026-10-14 - R23-11
rel:R23-11#ca5aac9e2026-10-14 - R24-11
rel:R24-11#7d9792cd2026-10-14 - R25-11
rel:R25-11#39b58f012026-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 · Original allemand