fonction Cancel [SWS_CRYPT_50041] 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() sert à l'interruption synchrone d'une opération de streaming en cours et non encore achevée au sein de la classe ara::crypto::cryp::SignerPrivateCtx, qui avait été initiée auparavant par un appel de Start() [SWS_CRYPT_50041]. L'interface purement virtuelle virtual ara::core::Result<void> Cancel() noexcept = 0; est déclarée dans l'en-tête ara/crypto/cryp/signer_private_ctx.h, ne prend aucun paramètre d'entrée et signale l'interruption réussie par un ara::core::Result<void> vide [SWS_CRYPT_50041]. Pour l'appelant, la méthode est spécifiée comme sûre vis-à-vis des exceptions (exception safe) et sûre pour les threads en accès concurrent (thread-safe) [SWS_CRYPT_50041].
En ce qui concerne l'ordre des appels et le traitement des erreurs, Cancel() requiert impérativement un traitement actif : si le traitement des données n'a pas été préalablement engagé par un appel de la méthode Start(), l'interruption échoue et renvoie le code d'erreur ara::crypto::CryptoErrc::kProcessingNotStarted avec une sémantique de rollback définie [SWS_CRYPT_50041]. Interprétation : après un appel réussi de Cancel(), le contexte devrait revenir à un état initial non démarré, de sorte qu'une nouvelle opération de signature ou de streaming puisse être commencée. Question Q-348fb3ae43e424c9 (ouverte)
La conception suit un principe uniforme pour toutes les opérations de streaming du module cryptographique. Des signatures et des sémantiques d'erreur strictement identiques existent pour des contextes apparentés tels que VerifierPublicCtx [SWS_CRYPT_50023], MessageAuthnCodeCtx [SWS_CRYPT_50027], SymmetricCipherCtx [SWS_CRYPT_50046], HashFunctionCtx [SWS_CRYPT_50058], DecryptorPrivateCtx [SWS_CRYPT_50069], AuthCipherCtx [SWS_CRYPT_50077] ainsi que EncryptorPublicCtx [SWS_CRYPT_50089].
Cette note d'utilisation a été générée de manière automatisée sur la base des exigences de spécification d'AUTOSAR Adaptive.
Guide de l'implémenteur à venir (complexité I1)
| Header-Datei | #include "ara/crypto/cryp/signer_private_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::SignerPrivateCtx |
| 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_50041- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50041@rel:R25-11#8736b608- Content hash
8736b608- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50041
Status: valid/unmigrated
Version: rel:R25-11#5f721a2b
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_50041@rel:R25-11#5f721a2b
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