함수 ExportPublicly [SWS_CRYPT_10711] Upstream: RS_CRYPTO_02112
virtual ara::core::Result< std::size_t > ExportPublicly (ReadWriteMem Region out, FormatId format) const noexcept=0;
Serialize object using the provided format.
사용
인터페이스 ara::crypto::Serializable의 동기 멤버 함수 ExportPublicly은(는) 지정된 출력 형식으로 객체를 직렬화합니다 [SWS_CRYPT_10711]. 매개변수로 형식 식별자 format(타입 FormatId) 및 대상 메모리 영역 out(타입 ReadWriteMem Region)이(가) 전달됩니다. 성공적으로 완료되면 함수는 기록된 실제 바이트 수를 ara::core::Result<std::size_t>에 담아 반환합니다 [SWS_CRYPT_10711].
관련 함수와의 상호 작용
이 함수는 특정 형식에 필요한 바이트 크기를 확인할 수 있는 GetExportSize과(와) 직접적인 관련이 있습니다 [SWS_CRYPT_50006]. 호출자는 일반적으로 충분한 버퍼 용량을 확보하기 위해 출력 버퍼 out을(를) 제공하기 전에 먼저 GetExportSize을(를) 쿼리할 것으로 보입니다. 질문 Q-394ae08d9d7e6fa7 (열림)
오류 처리
오류 발생 시 롤백 시맨틱이 적용되며 해당하는 오류 코드가 반환됩니다 [SWS_CRYPT_10711]:
ara::crypto::CryptoErrc::kInsufficientCapacity: 전달된 출력 버퍼out의 크기가 너무 작습니다 [SWS_CRYPT_10711].ara::crypto::CryptoErrc::kUnsupportedFormat: 전달된 형식 식별자가 이 객체 타입에 대해 지원되지 않습니다 [SWS_CRYPT_10711].ara::crypto::CryptoErrc::kUnsupported: 객체 내보내기가 일반적으로 지원되지 않습니다 [SWS_CRYPT_10711].ara::crypto::CryptoErrc::kUsageViolation: 내보낼 객체가 사용 규칙상 일반 텍스트 내보내기(kAllowPlaintextExport)를 허용하지 않는 키입니다 [SWS_CRYPT_10711].
동시성 및 제약 조건
이 메서드는 const, noexcept, 스레드 안전(“thread-safe”) 및 예외 안전(“exception safe”)으로 명시되어 있습니다 [SWS_CRYPT_10711]. 따라서 동시에 실행될 수 있으며 C++ 예외를 발생시키지 않습니다.
이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 AI에 의해 생성되었습니다.
구현자 가이드 준비 중 (복잡도 I1)
| Header-Datei | #include "ara/crypto/common/serializable.h" |
|---|---|
| Scope | class ara::crypto::Serializable |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| format | identifier of the output format |
Parameter (out)
| Parameter | Beschreibung |
|---|---|
| out | an output buffer that the serialized object will be written to |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<std::size_t > | A result containing the size in bytes of the serialized object or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kInsufficientCapacity | rollback_semantics if the output buffer is too small |
| ara::crypto::CryptoErrc::kUnsupportedFormat | rollback_semantics if the specified format ID is not supported for this object type |
| ara::crypto::CryptoErrc::kUnsupported | rollback_semantics if exporting the object is not supported |
| ara::crypto::CryptoErrc::kUsageViolation | rollback_semantics if the object to be exported is a key and the allowed usage of the key does not include kAllowPlaintextExport |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_10711- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_10711@rel:R25-11#6a61e237- Content hash
6a61e237- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_10711
Status: valid/unmigrated
Version: rel:R25-11#c8dd72d0
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_10711@rel:R25-11#c8dd72d0
Recorded Revisions (8):
- R25-11
rel:R25-11#6e8a805e2026-09-30 - R19-11
rel:R19-11#fe62960e2026-10-14 - R20-11
rel:R20-11#4cac78d62026-10-14 - R21-11
rel:R21-11#13d51a182026-10-14 - R22-11
rel:R22-11#3bb1942d2026-10-14 - R23-11
rel:R23-11#ee143e792026-10-14 - R24-11
rel:R24-11#761192782026-10-14 - R25-11
rel:R25-11#c8dd72d02026-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 · 독일어 원문