함수 Cancel [SWS_CRYPT_50089] 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.
Cancel() 메서드는 이전에 Start()을(를) 통해 시작되어 아직 완료되지 않은 ara::crypto::cryp::EncryptorPublicCtx 컨텍스트의 활성 스트리밍 작업을 중단합니다[SWS_CRYPT_50089]. 이 메서드는 전달 매개변수를 받지 않으며, 성공 시 비어 있는 ara::core::Result<void>을(를) 반환합니다[SWS_CRYPT_50089]. 시그니처가 Future가 아닌 Result를 즉시 반환하므로 중단은 동기식으로 실행될 것으로 보입니다. 질문 Q-cd18e56d693fe1a4 (열림)
오류 처리 및 동시성
데이터 처리가 사전에 Start()을(를) 통해 시작되지 않은 경우, 이 작업은 롤백 시맨틱을 준수하면서 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted과(와) 함께 실패합니다[SWS_CRYPT_50089]. 명세에 따르면 이 인터페이스는 noexcept(으)로 선언되어 있고, 예외에 안전(exception safe)하며, 동시 접근에 대해 스레드 안전(thread-safe)으로 분류되어 있습니다[SWS_CRYPT_50089].
암호화 스택에서의 상호작용
Cancel()을(를) 통해 구현된 중단 동작은 암호화 모듈의 상태 저장 스트리밍 작업에 대한 통일된 설계 패턴을 따릅니다. 동일한 오류 시맨틱을 가진 유사한 인터페이스가 다음에 대해 존재합니다:
SignerPrivateCtx[SWS_CRYPT_50041] 및VerifierPublicCtx[SWS_CRYPT_50023]의 서명 및 검증 작업,SymmetricCipherCtx[SWS_CRYPT_50046] 및AuthCipherCtx[SWS_CRYPT_50077]의 대칭 및 인증된 암호화,DecryptorPrivateCtx[SWS_CRYPT_50069]의 비대칭 복호화,MessageAuthnCodeCtx[SWS_CRYPT_50027]의 메시지 인증 코드 및HashFunctionCtx[SWS_CRYPT_50058]의 해시 계산.
이 텍스트는 AI에 의해 작성되었으며 AUTOSAR Adaptive R25-11을 기반으로 합니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/crypto/cryp/encryptor_public_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::EncryptorPublicCtx |
| 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_50089- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50089@rel:R25-11#4823bd68- Content hash
4823bd68- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50089
Status: valid/unmigrated
Version: rel:R25-11#e205d10b
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_50089@rel:R25-11#e205d10b
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 · 독일어 원문