função 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
O método Cancel() da interface ara::crypto::cryp::AuthCipherCtx cancela uma operação de streaming ativa que foi previamente iniciada por meio de Start() e ainda não concluída [SWS_CRYPT_50077]. A função é disponibilizada através do cabeçalho ara/crypto/cryp/auth_cipher_ctx.h e opera de forma síncrona sem parâmetros de entrada [SWS_CRYPT_50077]. Ela retorna um ara::core::Result<void>, que está vazio em caso de sucesso.
Tratamento de erros e condições de contorno
Um cancelamento pressupõe que o processamento de dados tenha sido de fato iniciado previamente por Start(). Se a operação de streaming não foi iniciada, a chamada falha e retorna o código de erro ara::crypto::CryptoErrc::kProcessingNotStarted com semântica de rollback [SWS_CRYPT_50077].
simultaneidade
A operação está declarada como noexcept e, de acordo com a especificação, é classificada tanto como thread-safe quanto como exception safe [SWS_CRYPT_50077].
Interação
O padrão de cancelamento implementado por Cancel() é padronizado no módulo crypt. Uma semântica de interface idêntica e o mesmo código de erro ara::crypto::CryptoErrc::kProcessingNotStarted estão definidos para contextos de streaming correspondentes:
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 utilização foi gerada automaticamente com base na especificação AUTOSAR R25-11.
Guia do implementador em breve (complexidade 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#6b125c7d- Content hash
6b125c7d- 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 em alemão