함수 GetPublicKey [SWS_CRYPT_22511] Upstream: RS_CRYPTO_02108, RS_CRYPTO_02115
virtual ara::core::Result< PublicKey::Sptr > GetPublicKey () const noexcept=0;
The interface shall return the public key correspondent to this private key.
사용
ara::crypto::cryp::PrivateKey 클래스의 GetPublicKey 메서드는 개인 키에 대응하는 공개 키 [SWS_CRYPT_22511]을(를) 동기식으로 검색하는 데 사용됩니다. 호출은 PrivateKey의 기존 인스턴스에서 매개변수 없이 수행됩니다. 인터페이스는 성공적인 실행 시 연결된 PublicKey 객체에 대한 공유 포인터를 제공하는 ara::core::Result<PublicKey::Sptr>을(를) 반환 값으로 제공합니다 [SWS_CRYPT_22511].
오류 처리 및 동시성
이 메서드에 대해 사양에 표준화된 오류 코드가 정의되어 있지 않습니다 [SWS_CRYPT_22511]. 오류 처리는 ara::core::Result 유형의 반환 객체를 통해 수행됩니다. 작업이 noexcept(으)로 선언되어 있으므로 예외 안전(exception safe)한 것으로 간주됩니다 [SWS_CRYPT_22511]. 또한 이 메서드는 const(으)로 한정되어 있으며 스레드 안전(thread-safe)한 것으로 명시되어 있어 여러 스레드에 걸친 병렬 읽기 접근이 허용됩니다 [SWS_CRYPT_22511].
상호 작용
전형적인 암호화 흐름에서 GetPublicKey은(는) GeneratePrivateKey을(를) 사용한 비대칭 키 쌍 생성 후에 사용됩니다 [SWS_CRYPT_20722]. 이때 생성된 개인 키의 허용된 사용 플래그가 대응하는 공개 키로 전송됩니다(예: 서명 생성의 권한이 서명 검증으로 전달됨) [SWS_CRYPT_20722]. 이 함수는 가져온 공개 키의 압축 해제에 사용되는 ProtectedKeyImportCtx의 동명 인터페이스와 구별되어야 합니다 [SWS_CRYPT_50211].
이 사용 지침은 AUTOSAR R25-11을 기반으로 자동 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/crypto/cryp/cryobj/private_key.h" |
|---|---|
| Scope | class ara::crypto::cryp::PrivateKey |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< PublicKey::Sptr > | A result containing a shared pointer to the public key correspondent to this private key |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| This function does not specify any standardized errors. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_22511- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_22511@rel:R25-11#0612bcfd- Content hash
0612bcfd- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_22511
Status: valid/unmigrated
Version: rel:R25-11#e5f0457b
Versionshistorie & Revisions (1 transition, 8 revision)
- 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_22511@rel:R25-11#e5f0457b
Recorded Revisions (8):
- R25-11
rel:R25-11#f0d041e72026-09-30 - R19-11
rel:R19-11#bb931c232026-10-14 - R20-11
rel:R20-11#85846a1e2026-10-14 - R21-11
rel:R21-11#85846a1e2026-10-14 - R22-11
rel:R22-11#99b114f02026-10-14 - R23-11
rel:R23-11#6fdc19552026-10-14 - R24-11
rel:R24-11#a752dbfc2026-10-14 - R25-11
rel:R25-11#e5f0457b2026-10-14 active
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 · 독일어 원문