DEENESPTFRRUARHIKOZHNL

클래스 ara::crypto::cryp::WriteableKeySlot

[SWS_CRYPT_50166] Upstream: RS_CRYPTO_02405

class WriteableKeySlot :             public KeySlot {...};

WriteableKeySlot interface representing a writeable storage location for a key in a Crypto Provider.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp
Basisklasse(n)KeySlot

사용자 가이드AI 생성

CryptoProvider 내 키의 관리 및 안전한 삭제를 위한 쓰기 가능 인터페이스 역할을 합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 5dc02afa7972 출처 열린 질문 (3)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

CryptoProvider 내 키의 관리 및 안전한 삭제를 위한 쓰기 가능 인터페이스 역할을 합니다.

인터페이스 ara::crypto::cryp::WriteableKeySlot은(는) AUTOSAR Adaptive에서 CryptoProvider의 키 저장 위치를 위한 쓰기 가능한 추상화 역할을 합니다. 인스턴스는 복사하거나 이동할 수 없으며([SWS_CRYPT_50170], [SWS_CRYPT_50168]), 스마트 포인터 타입 Sptr을(를) 통해 참조됩니다 [SWS_CRYPT_50172]. 스레드 안전한 메서드 Clear()을(를) 통해 키 슬롯의 내용이 정리되며, kBusyResource 또는 kUnsupported과 같은 오류 발생 시 롤백 시맨틱이 적용됩니다 [SWS_CRYPT_30405].

컨텍스트

인터페이스 ara::crypto::cryp::WriteableKeySlot은(는) AUTOSAR Adaptive Platform 내에서 CryptoProvider의 컨텍스트에서 암호화 키를 위한 쓰기 가능한 저장 공간을 정의합니다. 이는 기본 인터페이스 KeySlot에서 직접 파생되며 관리되는 키 슬롯을 의도한 대로 정리하고 해당 수명 주기를 제어하기 위한 표준화된 추상화를 나타냅니다. 주요 상호작용 파트너는 컨슈머로서의 암호화 스택 애플리케이션 및 물리적 또는 논리적 키 스토리지에 대한 바인딩을 관리하는 구체적인 CryptoProvider입니다. 인터페이스가 순수 추상 기본 클래스로 작동하므로, 구체적인 인스턴스 생성은 상위 팩토리 또는 프로바이더 메서드를 통해 수행될 것으로 추정됩니다. 질문 Q-5c3b13bb35c3ff53 (열림)

수명 주기

ara::crypto::cryp::WriteableKeySlot의 리소스 및 소유권 모델은 값 시맨틱을 통한 키 참조 복제를 엄격히 방지합니다. 이를 위해 복사 생성자 [SWS_CRYPT_50170] 및 이동 생성자 [SWS_CRYPT_50171]이(가) 모두 명시적으로 삭제되었습니다(=delete). 마찬가지로 복사 할당 연산자 [SWS_CRYPT_50168] 및 이동 할당 연산자 [SWS_CRYPT_50169]의 삭제된 선언은 어떠한 사후 할당도 차단합니다.

참조 전달 및 공유 관리는 대신 std::shared_ptr<WriteableKeySlot>(으)로 구체화된 정의된 스마트 포인터 타입 별칭 Sptr을(를) 통해 수행됩니다 [SWS_CRYPT_50172]. 인스턴스의 소멸은 예외 안전(exception safe)으로 명시되고 예외를 발생시키지 않는(noexcept=default) 가상 기본 소멸자에 의해 보호됩니다 [SWS_CRYPT_50167]. 이를 통해 인터페이스에 대한 포인터를 통한 안전한 다형성 해제가 가능합니다. 상태와 관련하여 슬롯은 점유되어 있거나 비어 있을 수 있습니다. 슬롯을 점유하는 것은 CryptoProvider의 별도 인터페이스를 통해 일어나는 것으로 보이며, 비우는 것은 스레드 안전한 메서드 Clear()을(를) 통해 구현됩니다 [SWS_CRYPT_30405]. 질문 Q-72dfcb17eb3e2d25 (열림)

keyslot_zustand Leer Leer Leer->Leer Clear() [이미 비어 있음] Leer->Leer Clear() [kBusyResource / kUnsupported] Belegt Belegt Belegt->Leer Clear() [Erfolg] Belegt->Belegt Clear() [kBusyResource / kUnsupported]

상태 다이어그램: Clear() 및 오류 처리를 통한 키 내용의 상태 전이. 출처: [SWS_CRYPT_30405]

사용 경로

핵심 사용 경로는 저장된 키 자료의 제어된 재설정 또는 삭제에 집중됩니다:

  • 참조: 호출자는 WriteableKeySlot::Sptr 타입의 공유 포인터를 통해 인스턴스에 접근합니다 [SWS_CRYPT_50172].
  • 삭제 호출: 순수 가상 메서드 Clear()을(를) 호출하여 키 슬롯의 현재 내용에 대한 삭제 프로세스가 시작됩니다 [SWS_CRYPT_30405]. 이 메서드는 스레드 안전하므로 동시성 컨텍스트에서도 호출이 수행될 수 있습니다 [SWS_CRYPT_30405].
  • 결과 확인: 이 작업은 ara::core::Result<void>을(를) 반환합니다 [SWS_CRYPT_30405]. 키 슬롯이 이미 이전에 비어 있었거나 내용이 오류 없이 제거된 경우, 결과는 빈 값을 가진 성공 상태를 나타냅니다 [SWS_CRYPT_30405].

오류 시나리오

메서드 Clear()은(는) 예외 안전 및 noexcept(으)로 선언되어 있습니다. 오류 상황은 AUTOSAR Adaptive의 오류 모델에 따라 ara::core::Result을(를) 통해 전달됩니다 [SWS_CRYPT_30405]. 가능한 오류 코드는 다음과 같습니다:

  • ara::crypto::CryptoErrc::kUnsupported: 키 슬롯의 구체적인 구현이 삭제를 지원하지 않을 때 발생합니다 [SWS_CRYPT_30405]. 이 경우 인터페이스는 상태가 변경되지 않도록 롤백 시맨틱을 보장합니다 [SWS_CRYPT_30405].
  • ara::crypto::CryptoErrc::kBusyResource: 삭제 작업을 일시적으로 수행할 수 없는 경우 반환됩니다 [SWS_CRYPT_30405]. 이는 일반적으로 하드웨어 바인딩된 스토리지 리소스에 대한 경합 접근으로 인해 발생할 것으로 보입니다. 질문 (열림) 여기서도 롤백 시맨틱을 통해 부분적인 변경 사항이 남지 않도록 보장합니다 [SWS_CRYPT_30405].

이 가이드는 crypto 모듈에 대한 AUTOSAR Adaptive 사양 R25-11을 기반으로 하며 자동으로 작성되었습니다.

멤버 맵

생성자 및 소멸자

2

메서드

1

연산자

1

타입 별칭

1

클래스 다이어그램

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__crypto__cryp__WriteableKeySlot529 WriteableKeySlot + WriteableKeySlot() + operator=() + ~WriteableKeySlot() + Clear() nara__crypto__cryp__KeySlot637 KeySlot nara__crypto__cryp__WriteableKeySlot529->nara__crypto__cryp__KeySlot637

상세 보기

개요에서 항목을 선택하세요.

생성자 및 소멸자

Copy-Constructor.

오버로드 WriteableKeySlot 2
WriteableKeySlot (const WriteableKeySlot &)=delete; SWS_CRYPT_50170
WriteableKeySlot (WriteableKeySlot &&)=delete; SWS_CRYPT_50171

Destructor.

virtual ~WriteableKeySlot () noexcept=default;

메서드

Clear 함수

The interface shall delete the current content of the KeySlot.

virtual ara::core::Result< void > Clear () const noexcept=0;

연산자

operator= 함수 2

Copy-assign another WriteableKeySlot to this instance.

오버로드 = 2
WriteableKeySlot & operator= (const WriteableKeySlot &other)=delete; SWS_CRYPT_50168
WriteableKeySlot & operator= (WriteableKeySlot &&other)=delete; SWS_CRYPT_50169

타입 별칭

Sptr 타입 별칭

Smart pointer of the interface.

메서드 문서

함수 Clear [SWS_CRYPT_30405] Upstream: RS_CRYPTO_02009

virtual ara::core::Result< void > Clear () const noexcept=0;

The interface shall delete the current content of the KeySlot.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 9f91b0070fcf 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용법 및 의미론

인터페이스 ara::crypto::cryp::WriteableKeySlot의 메서드 Clear()은(는) 참조된 키 저장소의 현재 내용을 삭제하는 데 사용됩니다 [SWS_CRYPT_30405]. 이 함수는 헤더 파일 ara/crypto/cryp/writeable_keyslot.h을(를) 통해 선언되며 매개변수 없이 상수 작업으로 호출됩니다 [SWS_CRYPT_30405]. KeySlot을 성공적으로 비웠거나 호출 전부터 이미 비어 있었던 경우 동기적으로 빈 ara::core::Result<void>을(를) 반환합니다 [SWS_CRYPT_30405].

오류 처리 및 동시성

이 인터페이스는 noexcept(으)로 정의되어 있으며 동시 호출 시 Exception 안전성 및 Thread 안전성을 모두 보장합니다 [SWS_CRYPT_30405]. 오류 발생 시 KeySlot의 상태를 변경하지 않고 유지하는 롤백 시맨틱이 적용됩니다 [SWS_CRYPT_30405]. 결과에는 다음 오류 코드가 나타날 수 있습니다 [SWS_CRYPT_30405]:

  • ara::crypto::CryptoErrc::kUnsupported: 구체적인 KeySlot이 삭제를 지원하지 않는 경우 롤백 시맨틱과 함께 발생합니다 [SWS_CRYPT_30405].
  • ara::crypto::CryptoErrc::kBusyResource: 일시적으로 점유된 리소스로 인해 작업을 현재 실행할 수 없는 경우 보고됩니다 [SWS_CRYPT_30405].

상호 작용

이 함수는 암호화 키를 정리하기 위해 ara::crypto::cryp::WriteableKeySlot의 인스턴스에 직접 작용합니다 [SWS_CRYPT_30405]. 이와 구별되는 것은 ara::crypto::x509::X509Provider의 인증서 관리이며, 여기서는 인증서 슬롯의 정리가 InstanceSpecifier을(를) 지정하여 메서드 ClearCertificateSlot()을(를) 통해 수행됩니다 [SWS_CRYPT_40622].

이 사용 지침은 자동으로 생성되었으며 릴리스 R25-11용 AUTOSAR 사양을 기반으로 합니다.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if the keyslot was already empty or successfully cleared

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the KeySlot does not support clearing
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_30405
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30405@rel:R25-11#8d035eb5
Content hash
8d035eb5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30405
Status: valid/unmigrated Version: rel:R25-11#f254660d Versionshistorie & Revisions (1 transition, 7 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_30405@rel:R25-11#f254660d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3b03ed2b2026-09-30
  • R20-11rel:R20-11#9d3696442026-10-14
  • R21-11rel:R21-11#bda76d622026-10-14
  • R22-11rel:R22-11#006988182026-10-14
  • R23-11rel:R23-11#e7cea4b12026-10-14
  • R24-11rel:R24-11#490dfcff2026-10-14
  • R25-11rel:R25-11#f254660d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 WriteableKeySlot [SWS_CRYPT_50170] Upstream: RS_CRYPTO_02004

WriteableKeySlot (const WriteableKeySlot &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50170
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50170@rel:R25-11#8a897bb5
Content hash
8a897bb5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50170
Status: valid/unmigrated Version: rel:R25-11#9a69e3b3 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_50170@rel:R25-11#9a69e3b3
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 WriteableKeySlot [SWS_CRYPT_50171] Upstream: RS_CRYPTO_02004

WriteableKeySlot (WriteableKeySlot &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50171
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50171@rel:R25-11#fccbb940
Content hash
fccbb940
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50171
Status: valid/unmigrated Version: rel:R25-11#1a7fb0b7 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_50171@rel:R25-11#1a7fb0b7
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 operator= [SWS_CRYPT_50168] Upstream: RS_CRYPTO_02004

WriteableKeySlot & operator= (const WriteableKeySlot &other)=delete;

Copy-assign another WriteableKeySlot to this instance.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50168
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50168@rel:R25-11#2ea10581
Content hash
2ea10581
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50168
Status: valid/unmigrated Version: rel:R25-11#51e3ecf9 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_50168@rel:R25-11#51e3ecf9
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 operator= [SWS_CRYPT_50169] Upstream: RS_CRYPTO_02004

WriteableKeySlot & operator= (WriteableKeySlot &&other)=delete;

Move-assign another WriteableKeySlot to this instance.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50169
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50169@rel:R25-11#c7b21ac1
Content hash
c7b21ac1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50169
Status: valid/unmigrated Version: rel:R25-11#05bfa0a2 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_50169@rel:R25-11#05bfa0a2
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

함수 ~WriteableKeySlot [SWS_CRYPT_50167] Upstream: RS_CRYPTO_02405

virtual ~WriteableKeySlot () noexcept=default;

Destructor.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot
Exception-Sicherheitexception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50167
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50167@rel:R25-11#e4955421
Content hash
e4955421
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50167
Status: valid/unmigrated Version: rel:R25-11#651255bc 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_50167@rel:R25-11#651255bc
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

타입 별칭 문서

타입 별칭 Sptr [SWS_CRYPT_50172] Upstream: RS_CRYPTO_02405

using Sptr = std::shared_ptr<WriteableKeySlot>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/writeable_keyslot.h"
Scopeclass ara::crypto::cryp::WriteableKeySlot
SymbolSptr

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_CRYPT_50172
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50172@rel:R25-11#e776156e
Content hash
e776156e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50172
Status: valid/unmigrated Version: rel:R25-11#afe92846 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_50172@rel:R25-11#afe92846
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill