función Cancel [SWS_CRYPT_50077] 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.
usar
El método Cancel() de la interfaz ara::crypto::cryp::AuthCipherCtx cancela una operación de streaming activa que se inició previamente mediante Start() y aún no ha concluido [SWS_CRYPT_50077]. La función se proporciona a través de la cabecera ara/crypto/cryp/auth_cipher_ctx.h y opera sincrónicamente sin parámetros de entrada [SWS_CRYPT_50077]. Devuelve un ara::core::Result<void>, que está vacío en caso de éxito.
Tratamiento de errores y condiciones límite
Una cancelación presupone que el procesamiento de datos se haya iniciado efectivamente con anterioridad mediante Start(). Si la operación de streaming no se inició, la llamada falla y devuelve el código de error ara::crypto::CryptoErrc::kProcessingNotStarted con semántica de reversión [SWS_CRYPT_50077].
concurrencia
La operación está declarada como noexcept y, según la especificación, está clasificada tanto como thread-safe como exception safe [SWS_CRYPT_50077].
Interacción
El patrón de cancelación implementado por Cancel() está estandarizado en el módulo crypt. Se han definido una semántica de interfaz idéntica y el mismo código de error ara::crypto::CryptoErrc::kProcessingNotStarted para los contextos de streaming correspondientes:
ara::crypto::cryp::VerifierPublicCtx[SWS_CRYPT_50023]ara::crypto::cryp::MessageAuthnCodeCtx[SWS_CRYPT_50027]ara::crypto::cryp::SignerPrivateCtx[SWS_CRYPT_50041]ara::crypto::cryp::SymmetricCipherCtx[SWS_CRYPT_50046]ara::crypto::cryp::HashFunctionCtx[SWS_CRYPT_50058]ara::crypto::cryp::DecryptorPrivateCtx[SWS_CRYPT_50069]ara::crypto::cryp::EncryptorPublicCtx[SWS_CRYPT_50089]
Esta nota de uso fue generada automáticamente sobre la base de la especificación AUTOSAR R25-11.
Guía del implementador pendiente (complejidad I1)
| Header-Datei | #include "ara/crypto/cryp/auth_cipher_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::AuthCipherCtx |
| 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_50077- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50077@rel:R25-11#92c0fa68- Content hash
92c0fa68- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50077
Status: valid/unmigrated
Version: rel:R25-11#863ca4bd
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_50077@rel:R25-11#863ca4bd
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