función Cancel [SWS_CRYPT_50027] Upstream: RS_CRYPTO_02302
virtual ara::core::Result< void > Cancel () noexcept=0;
Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.
El método virtual puro Cancel sirve en la interfaz ara::crypto::cryp::MessageAuthnCodeCtx para cancelar una operación en flujo continua previamente iniciada mediante Start() y aún no finalizada [SWS_CRYPT_50027]. La llamada se efectúa de forma síncrona, no admite parámetros de entrada y devuelve, en caso de éxito, un ara::core::Result<void> vacío que confirma la cancelación satisfactoria de la operación [SWS_CRYPT_50027].
Si el procesamiento de datos no se inició correctamente antes de la llamada mediante el método Start(), la ejecución falla. En este caso, la función devuelve un resultado con el código de error específico ara::crypto::CryptoErrc::kProcessingNotStarted garantizando una semántica de reversión (rollback) [SWS_CRYPT_50027]. En cuanto a la seguridad de ejecución, la interfaz está especificada como segura para hilos (thread-safe) y garantiza seguridad frente a excepciones (exception safe), ya que está declarada como noexcept y no lanza excepciones [SWS_CRYPT_50027].
El comportamiento de cancelación idéntico para procesamientos en flujo aún no finalizados es compartido por todas las interfaces de contexto afines del módulo criptográfico:
VerifierPublicCtxpara la verificación de firmas digitales [SWS_CRYPT_50023],SignerPrivateCtxpara la generación de firmas digitales [SWS_CRYPT_50041],SymmetricCipherCtxpara cifrados simétricos [SWS_CRYPT_50046],HashFunctionCtxpara cálculos de valores hash [SWS_CRYPT_50058],DecryptorPrivateCtxpara descifrados asimétricos [SWS_CRYPT_50069],AuthCipherCtxpara cifrados autenticados [SWS_CRYPT_50077], así comoEncryptorPublicCtxpara cifrados asimétricos [SWS_CRYPT_50089].
Interpretación: Al cancelar la operación incompleta, el contexto debería restablecerse a un estado limpio que permita una posterior reinicialización a través de Start(). Pregunta Q-a8fa5cb85c3dab50 (abierta)
Esta nota de uso se ha generado de forma automatizada sobre la base de la especificación AUTOSAR Adaptive R25-11.
Guía del implementador pendiente (complejidad I1)
| Header-Datei | #include "ara/crypto/cryp/message_authn_code_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::MessageAuthnCodeCtx |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kProcessingNotStarted | rollback_semantics if data processing was not started by a call of the Start() method |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_50027- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50027@rel:R25-11#883614a2- Content hash
883614a2- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50027
Status: valid/unmigrated
Version: rel:R25-11#c993fffd
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_50027@rel:R25-11#c993fffd
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