함수 Cancel [SWS_CRYPT_50027] 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은 인터페이스 ara::crypto::cryp::MessageAuthnCodeCtx에서 이전에 Start()를 통해 시작되었으나 아직 완료되지 않은 스트리밍 작업을 중단하는 역할을 합니다[SWS_CRYPT_50027]. 호출은 동기식으로 수행되고 전달 매개변수를 받지 않으며, 성공 시 작업의 성공적인 중단을 확인하는 빈 ara::core::Result<void>를 반환합니다[SWS_CRYPT_50027].
호출 전에 데이터 처리가 Start() 메서드를 통해 적절히 시작되지 않은 경우 실행이 실패합니다. 이 경우 함수는 롤백 시맨틱을 보장하면서 특정 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted을 갖는 결과를 반환합니다[SWS_CRYPT_50027]. 실행 안전성과 관련하여 이 인터페이스는 스레드 안전(thread-safe)으로 명시되어 있으며, noexcept으로 선언되어 예외를 던지지 않으므로 예외 안전성(exception safe)을 보장합니다[SWS_CRYPT_50027].
암호화 모듈의 모든 관련 컨텍스트 인터페이스는 아직 완료되지 않은 스트리밍 처리에 대해 동일한 중단 동작을 공유합니다:
- 디지털 서명 검증을 위한
VerifierPublicCtx[SWS_CRYPT_50023], - 디지털 서명 생성을 위한
SignerPrivateCtx[SWS_CRYPT_50041], - 대칭 암호화를 위한
SymmetricCipherCtx[SWS_CRYPT_50046], - 해시값 계산을 위한
HashFunctionCtx[SWS_CRYPT_50058], - 비대칭 복호화를 위한
DecryptorPrivateCtx[SWS_CRYPT_50069], - 인증된 암호화를 위한
AuthCipherCtx[SWS_CRYPT_50077] 및 - 비대칭 암호화를 위한
EncryptorPublicCtx[SWS_CRYPT_50089].
해석: 미완료된 작업을 중단함으로써 컨텍스트는 나중에 Start()을 통한 재초기화를 허용하는 정리된 상태로 복원될 것으로 보입니다. 질문 Q-a8fa5cb85c3dab50 (열림)
이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 바탕으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/crypto/cryp/message_authn_code_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::MessageAuthnCodeCtx |
| 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_50027- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50027@rel:R25-11#2f9c619b- Content hash
2f9c619b- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50027
Status: valid/unmigrated
Version: rel:R25-11#c993fffd
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_50027@rel:R25-11#c993fffd
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 · 독일어 원문