función 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.
El método CreateAuthCipherCtx sirve para crear un contexto para cifrado autenticado simétrico ([SWS_CRYPT_20745]). Está definido como interfaz virtual pura en la clase ara::crypto::cryp::CryptoProvider y debe incluirse a través del archivo de cabecera ara/crypto/cryp/crypto_provider.h ([SWS_CRYPT_20745]).
Uso y semántica
Como parámetro de entrada se pasa algId, que identifica el algoritmo criptográfico de destino ([SWS_CRYPT_20745]). La función opera de forma síncrona y no genera excepciones (noexcept) ([SWS_CRYPT_20745]). En caso de ejecución correcta, devuelve un ara::core::Result con un puntero inteligente a la instancia creada AuthCipherCtx::Sptr ([SWS_CRYPT_20745]).
Manejo de errores
En caso de error, se devuelve el código de error correspondiente en el ara::core::Result con semántica de reversión ([SWS_CRYPT_20745]):
ara::crypto::CryptoErrc::kInvalidArgument: SialgIdno especifica un algoritmo para un cifrado de flujo autenticado simétrico ([SWS_CRYPT_20745]).ara::crypto::CryptoErrc::kUnknownIdentifier: Si se ha pasado un valor no compatible paraalgId([SWS_CRYPT_20745]).
concurrencia
La llamada a CreateAuthCipherCtx es segura para subprocesos (thread-safe) y está especificada como segura frente a excepciones (exception safe) ([SWS_CRYPT_20745]).
Este texto ha sido generado automáticamente. Todas las afirmaciones técnicas están respaldadas por referencias de especificación.
| 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#a6661883- Content hash
a6661883- 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 en alemán