fonction Cancel [SWS_CRYPT_50069] 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.
La méthode Cancel de la classe ara::crypto::cryp::DecryptorPrivateCtx, définie dans ara/crypto/cryp/decryptor_private_ctx.h, interrompt une opération de streaming en cours qui a été initiée auparavant au moyen de Start() et n'est pas encore terminée [SWS_CRYPT_50069]. L'appel ne prend aucun paramètre d'entrée et fournit comme valeur de retour un ara::core::Result<void> [SWS_CRYPT_50069]. Si l'interruption du traitement de streaming a réussi, l'objet contient un résultat vide ; sinon, il transporte une erreur survenue [SWS_CRYPT_50069]. L'interface purement virtuelle est déclarée comme noexcept, présente une sécurité complète vis-à-vis des exceptions et est désignée comme thread-safe pour l'accès concurrent [SWS_CRYPT_50069].
Lors du traitement des erreurs et des conditions de déroulement, l'ordre exact doit être respecté : si le traitement des données n'a pas été préalablement initié par l'appel de la méthode Start(), l'opération échoue et renvoie le code d'erreur spécifique ara::crypto::CryptoErrc::kProcessingNotStarted avec une sémantique de rollback [SWS_CRYPT_50069]. L'appelant doit donc s'assurer qu'une opération active existe déjà avant l'interruption afin d'éviter cet état d'erreur [SWS_CRYPT_50069].
En interaction avec l'ensemble de l'architecture modulaire de crypt, Cancel suit un patron de conception standardisé pour les opérations de streaming avec état. Les contextes cryptographiques apparentés 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::AuthCipherCtx [SWS_CRYPT_50077] ainsi que ara::crypto::cryp::EncryptorPublicCtx [SWS_CRYPT_50089] partagent la même signature, la même sémantique de retour et le même traitement des erreurs.
Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR R25-11.
Guide de l'implémenteur à venir (complexité I1)
| Header-Datei | #include "ara/crypto/cryp/decryptor_private_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::DecryptorPrivateCtx |
| 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_50069- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50069@rel:R25-11#45ee3159- Content hash
45ee3159- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50069
Status: valid/unmigrated
Version: rel:R25-11#2a0972af
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_50069@rel:R25-11#2a0972af
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