함수 Cancel [SWS_CRYPT_50023] 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()에 의해 시작되었으나 아직 완료되지 않은 진행 중인 스트리밍 작업을 중단합니다 [SWS_CRYPT_50023]. 이 메서드는 헤더 ara/crypto/cryp/verifier_public_ctx.h에 컨텍스트 ara::crypto::cryp::VerifierPublicCtx의 순수 가상 메서드로 정의되어 있습니다 [SWS_CRYPT_50023]. 호출은 동기적으로 매개변수 없이 수행됩니다. 반환값으로는 ara::core::Result<void>이(가) 사용되며, 이는 성공 시 비어 있고 작업의 성공적인 중단을 확인합니다 [SWS_CRYPT_50023].
오류 처리
Start() 메서드 호출을 통해 데이터 처리가 아직 시작되지 않은 경우 중단 작업이 실패합니다. 이 시나리오에서 함수는 롤백 시맨틱을 보장하면서 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted을(를) 포함하는 오류 결과를 반환합니다 [SWS_CRYPT_50023].
동시성 및 제약사항
사양에서는 이 메서드를 noexcept 표시와 함께 스레드 안전(thread-safe) 및 예외 안전(exception safe)으로 지정합니다 [SWS_CRYPT_50023]. 해석: 성공적으로 중단된 후에는 컨텍스트가 처리 시작 전의 초기 상태로 되돌아가 새로운 스트리밍 작업을 시작할 수 있을 것으로 추정됩니다. 질문 Q-d80d09c8a8311bbc (열림)
crypt 모듈 내 상호 작용
동일한 시그니처와 오류 처리를 갖춘 이 통일된 중단 패턴은 crypt 모듈의 모든 스트리밍 컨텍스트에 일관되게 적용됩니다:
- 메시지 인증 코드용
MessageAuthnCodeCtx[SWS_CRYPT_50027], - 디지털 서명 생성용
SignerPrivateCtx[SWS_CRYPT_50041], - 대칭 암호화 및 복호화용
SymmetricCipherCtx[SWS_CRYPT_50046], - 암호화 해시 작업용
HashFunctionCtx[SWS_CRYPT_50058], - 비대칭 복호화용
DecryptorPrivateCtx[SWS_CRYPT_50069], - 인증된 암호화용
AuthCipherCtx[SWS_CRYPT_50077] 및 - 비대칭 암호화용
EncryptorPublicCtx[SWS_CRYPT_50089].
이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/crypto/cryp/verifier_public_ctx.h" |
|---|---|
| Scope | class ara::crypto::cryp::VerifierPublicCtx |
| 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_50023- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#f5c14cfa- Content hash
f5c14cfa- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated
Version: rel:R25-11#ccbcbc55
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_50023@rel:R25-11#ccbcbc55
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 · 독일어 원문