फ़ंक्शन 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.
उपयोग और सिमेंटिक्स
इंटरफ़ेस ara::crypto::cryp::WriteableKeySlot की विधि Clear() संदर्भित कुंजी मेमोरी की वर्तमान सामग्री को हटाने का कार्य करती है [SWS_CRYPT_30405]। फ़ंक्शन हेडर फ़ाइल ara/crypto/cryp/writeable_keyslot.h के माध्यम से घोषित किया गया है और बिना पैरामीटर के एक निरंतर (constant) ऑपरेशन के रूप में कॉल किया जाता है [SWS_CRYPT_30405]। यह समकालिक रूप से एक खाली ara::core::Result<void> लौटाता है यदि KeySlot को सफलतापूर्वक खाली किया जा सका या कॉल से पहले ही खाली था [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" |
|---|---|
| Scope | class ara::crypto::cryp::WriteableKeySlot |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | an empty result if the keyslot was already empty or successfully cleared |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| ara::crypto::CryptoErrc::kUnsupported | rollback_semantics if the KeySlot does not support clearing |
| ara::crypto::CryptoErrc::kBusyResource | rollback_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#00d9aa7e- Content hash
00d9aa7e- 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
Recorded Revisions (7):
- R25-11
rel:R25-11#3b03ed2b2026-09-30 - R20-11
rel:R20-11#9d3696442026-10-14 - R21-11
rel:R21-11#bda76d622026-10-14 - R22-11
rel:R22-11#006988182026-10-14 - R23-11
rel:R23-11#e7cea4b12026-10-14 - R24-11
rel:R24-11#490dfcff2026-10-14 - R25-11
rel:R25-11#f254660d2026-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 · जर्मन मूल