DEENESPTFRRUARHIKOZHNL

类 ara::crypto::x509::X509Provider

[SWS_CRYPT_40600] Upstream: RS_CRYPTO_02306

class X509Provider {...};

X.509 Provider interface.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::x509

用户指南人工智能生成

提供用于创建、解析、持久存储和验证 X.509 安全证书的接口。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 8351921f4f2a 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

提供用于创建、解析、持久存储和验证 X.509 安全证书的接口。

该接口允许应用程序在 Adaptive 平台内创建、解析和管理 X.509 证书、证书吊销列表以及验证上下文([SWS_CRYPT_40614])。除了检查证书链之外,它还与加密子系统协作控制签名请求和 OCSP 查询的创建。它还封装了通过标准化实例标识符在单个证书槽以及证书组中的持久存储([SWS_CRYPT_40621])。所有操作均设计为线程安全,并且为了避免多次实例化,要求通过无拷贝或移动权限的智能指针进行严格引用。

上下文

在 AUTOSAR Adaptive Platform 中,类 ara::crypto::x509::X509Provider 构成了符合 X.509 标准的公钥基础设施(PKI)工件的核心抽象和管理接口。它将应用程序进程与加密驱动程序的厂商特定实现细节解耦,并为证书和证书吊销列表(CRL)的解析、创建和持久存储提供了统一的机制。

该接口主要与三个功能区域进行交互:

X509ProviderKontext Applikation Applikation X509Provider X509Provider Applikation->X509Provider nutzt API Persistenz Persistenter Speicher X509Provider->Persistenz verwaltet Zertifikate via InstanceSpecifier KryptoSubsystem Krypto-Subsystem (cryp) X509Provider->KryptoSubsystem nutzt Signierkontext

上下文图:X509Provider 的系统环境和交互伙伴。来源:[SWS_CRYPT_40621]、[SWS_CRYPT_40640]、[SWS_CRYPT_50125]

生命周期

接口 X509Provider 被定义为抽象类。在应用程序级别,通过标准化的智能指针 Sptr(std::shared_ptr<X509Provider> 的别名)来引用和管理实例([SWS_CRYPT_40601])。特定于平台的实现的实际实例化大概是通过加密模块的上层入口点完成的(解释)。 问题 Q-5ab7a7f5d30f48eb (未决)

为了防止多次实例化以及不受控的拷贝或移动操作,显式删除了拷贝构造函数([SWS_CRYPT_41013])、移动构造函数([SWS_CRYPT_41014])以及相应的赋值运算符([SWS_CRYPT_30226]、[SWS_CRYPT_30227])(=delete)。生命周期随着通过虚析构函数 ~X509Provider()([SWS_CRYPT_40604])进行的销毁而结束。

在并发性方面,该类的所有成员函数均被指定为线程安全(thread-safe)和异常安全(exception safe)(其中包括 [SWS_CRYPT_40614]、[SWS_CRYPT_40621]、[SWS_CRYPT_50125])。因此,多个线程可以并行使用同一个 Provider 实例,而无需手动同步机制。

使用路径

用于注册、存储和随后检查证书的典型流程包括以下步骤:

  1. 解析:通过传递内存区域和格式标识符,使用 ParseCert 读取以二进制或文本方式序列化的 X.509v3 证书,并将其转换为瞬态证书对象([SWS_CRYPT_40614])。对于证书链,等效提供 ParseCertChain([SWS_CRYPT_40616])。
  2. 持久存储:证书对象通过 ImportCertificate 永久保存在由实例标识符寻址的槽中([SWS_CRYPT_40621]),或者通过 ImportCertificateInGroup 分配给某个证书组([SWS_CRYPT_50127])。已存储的证书可在需要时通过 LoadCertificate([SWS_CRYPT_40641])或 LoadCertificateGroup([SWS_CRYPT_50126])加载。
  3. 创建验证上下文:为了检查证书,通过 CreateCertificateValidationCtx 创建一个上下文对象([SWS_CRYPT_50125])。
  4. 管理吊销信息:为了确保吊销状态,可以通过 ImportCrl 导入 CRL([SWS_CRYPT_50183]),或者通过 CreateOcspRequest 生成 OCSP 请求([SWS_CRYPT_40626])并使用 ParseOcspResponse 评估其响应([SWS_CRYPT_50185])。
用于证书管理和验证准备的典型流程ApplikationX509ProviderPersistenter SpeicherParseCert(certMem, formatId)Certificate::SptrcImportCertificate(slotSpecifier, cert)Zertifikat in Slot speichern存储已确认Result<void>CreateCertificateValidationCtx()CertificateValidationCtx::Sptr

时序图:解析、存储和准备证书验证的流程。来源:[SWS_CRYPT_40614]、[SWS_CRYPT_40621]、[SWS_CRYPT_50125]

错误场景

该接口通过 ara::core::Result 发出错误信号,而不使用 C++ 异常。错误处理分为功能性加密错误代码和流程性配置违规。

功能性错误代码(ara::crypto::CryptoErrc)包括:

在架构层面上区分清单冲突和权限冲突:

本指南由 AI 助手基于 AUTOSAR 规范 R25-11 编写。

成员图

类图

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

G nara__crypto__x509__X509Provider937 X509Provider + X509Provider() + operator=() + ~X509Provider() + ClearCertificateSlot() + CreateCertSignRequest() + CreateCertificateValidationCtx() + CreateDn() + CreateOcspRequest() + DeleteCrl() + ImportCertificate() + ImportCertificateInGroup() + ImportCrl() + ParseCert() + ParseCertChain() + ParseOcspResponse() + RemoveCertificateFromGroup() … 2 weitere

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

X509Provider 函数 2

Copy-Constructor.

重载 X509Provider 2
X509Provider (const X509Provider &)=delete; SWS_CRYPT_41013
X509Provider (X509Provider &&)=delete; SWS_CRYPT_41014

Destructor.

virtual ~X509Provider () noexcept=default;

方法

Clear the certificate slot identified by the passed instance specifier.

virtual ara::core::Result< bool > ClearCertificateSlot (const ara::core::InstanceSpecifier &instanceSpecifier) noexcept=0;

Create a certificate validation context.

Create certificate signing request according to RFC 2986.

virtual ara::core::Result< CertSignRequest::Sptrc > CreateCertSign Request (cryp::SignerPrivateCtx::Sptr signerCtx, X509DN::Sptrc subject Dn, cryp::PublicKey::Sptr publicKey, ara::core::Optional< ReadOnlyMem Region > attributes) const noexcept=0;
CreateDn 函数 2

Create DN from string representation.

重载 CreateDn 2
virtual ara::core::Result< X509DN::Sptrc > CreateDn (ara::core::String View dnString) const noexcept=0; SWS_CRYPT_50186
virtual ara::core::Result< X509DN::Sptrc > CreateDn (ReadOnlyMemRegion dn, FormatId formatId) const noexcept=0; SWS_CRYPT_50187

Create OCSP request for specified certificate according to RFC 6960.

重载 CreateOcspRequest 2
virtual ara::core::Result< ara::core::Vector< std::uint8_t > > Create OcspRequest (Certificate::Sptrc cert, Certificate::Sptrc issuerCert, ara::core::Optional< cryp::SignerPrivateCtx::Sptr > signerCtx) noexcept=0; SWS_CRYPT_40626
virtual ara::core::Result< ara::core::Vector< std::uint8_t > > Create OcspRequest (const ara::core::Span< Certificate::Sptrc > certList, const ara::core::Span< Certificate::Sptrc > issuerCertList, ara::core::Optional< cryp::SignerPrivateCtx::Sptr > signerCtx) noexcept=0; SWS_CRYPT_40627
DeleteCrl 函数

Delete a stored CRL identified by the passed instance specifier.

virtual ara::core::Result< void > DeleteCrl (ara::core::Instance Specifier crlInstanceSpecifier) noexcept=0;

Persistently store a certificate in a certificate slot.

virtual ara::core::Result< void > ImportCertificate (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;

Persistently store a certificate in a certificate group.

virtual ara::core::Result< void > ImportCertificateInGroup (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;
ImportCrl 函数

Parse and persist a Certificate Revocation List (CRL) or Delta CRL which is issued by the CA certificate identified by the passed ara::core::InstanceSpecifier.

virtual ara::core::Result< CertificateValidationStatus > ImportCrl (ara::core::InstanceSpecifier crlInstanceSpecifier, ReadOnlyMemRegion crl, FormatId formatId) noexcept=0;

Load a certificate from the persistent certificate storage.

virtual ara::core::Result< Certificate::Sptrc > LoadCertificate (const ara::core::InstanceSpecifier &instanceSpecifier) noexcept=0;

Load a group of certificates from the persistent certificate storage.

virtual ara::core::Result< ara::core::Vector< Certificate::Sptrc > > LoadCertificateGroup (const ara::core::InstanceSpecifier &instance Specifier) noexcept=0;
ParseCert 函数

Parse a serialized representation of an X.509v3 certificate and create a certificate object.

virtual ara::core::Result< Certificate::Sptrc > ParseCert (ReadOnlyMem Region cert, FormatId formatId) noexcept=0;

Parse a serialized representation of a certificate chain, creating a new Certificate instance for each parsed certificate. Certificates in the returned vector will be placed in the same order as provided in certChain.

virtual ara::core::Result< ara::core::Vector< Certificate::Sptrc > > ParseCertChain (ReadOnlyMemRegion certChain, FormatId formatId) noexcept=0;

Parse serialized OCSP response.

virtual ara::core::Result< OcspResponse::Sptrc > ParseOcspResponse (ReadOnlyMemRegion response, FormatId formatId) const noexcept=0;

Remove a certificate from a certificate group.

virtual ara::core::Result< void > RemoveCertificateFromGroup (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;

运算符

operator= 函数 2

Copy-assign another X509Provider to this instance.

重载 = 2
X509Provider & operator= (const X509Provider &other)=delete; SWS_CRYPT_30226
X509Provider & operator= (X509Provider &&other)=delete; SWS_CRYPT_30227

类型别名

Sptr 类型别名

Smart pointer of the interface.

方法文档

函数 ClearCertificateSlot [SWS_CRYPT_40622] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< bool > ClearCertificateSlot (const ara::core::InstanceSpecifier &instanceSpecifier) noexcept=0;

Clear the certificate slot identified by the passed instance specifier.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 99a52bea08ed 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::crypto::x509::X509Provider 的同步方法 ClearCertificateSlot 清空通过参数 instanceSpecifier 指定的证书存储位置 [SWS_CRYPT_40622]。它返回一个 ara::core::Result<bool>:如果成功删除了现有证书,则返回值是 true;如果该插槽原本就未被占用,则返回值为 false [SWS_CRYPT_40622]。

错误处理与限制

如果该操作暂时无法执行,该函数将提供具有回滚语义的错误代码 ara::crypto::CryptoErrc::kBusyResource [SWS_CRYPT_40622]。此外,还定义了特定的建模和访问前提条件:

  • ProcessMappingViolation:当 InstanceSpecifier 未指向针对当前进程建模且具有接口 CryptoCertificateInterface 的 PortPrototype 时出现 [SWS_CRYPT_40622]。
  • InsufficientPermissionsViolation:当当前进程缺少写权限时发生,即设置了 CryptoCertificateToPortPrototypeMapping.writeAccess != True [SWS_CRYPT_40622]。

并发性

该接口标明为 noexcept,被指定为异常安全(exception safe),并针对并发调用被指定为线程安全(thread-safe)[SWS_CRYPT_40622]。

本使用说明基于规范数据自动生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
instanceSpecifierAn instance specifier identifying a storage location of a certificate.

Rückgabewert

TypBeschreibung
ara::core::Result< bool >true if the slot contained a certificate which has been successfully removed false if the slot contained no certificate.

Fehler

FehlercodeBeschreibung
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_40622
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40622@rel:R25-11#2acc8e90
Content hash
2acc8e90
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40622
Status: valid/unmigrated Version: rel:R25-11#c87d5644 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_40622@rel:R25-11#c87d5644
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4acf5aaa2026-09-30
  • R19-11rel:R19-11#9a648bef2026-10-14
  • R20-11rel:R20-11#9816a1ad2026-10-14
  • R21-11rel:R21-11#be9e5a522026-10-14
  • R22-11rel:R22-11#a6750b412026-10-14
  • R23-11rel:R23-11#c52c6c322026-10-14
  • R24-11rel:R24-11#a2473ff72026-10-14
  • R25-11rel:R25-11#c87d56442026-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

函数 CreateCertSignRequest [SWS_CRYPT_40640] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertSignRequest::Sptrc > CreateCertSign Request (cryp::SignerPrivateCtx::Sptr signerCtx, X509DN::Sptrc subject Dn, cryp::PublicKey::Sptr publicKey, ara::core::Optional< ReadOnlyMem Region > attributes) const noexcept=0;

Create certificate signing request according to RFC 2986.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: dc6f7ceeea9e 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 ara/crypto/x509/x509_provider.h 的接口 ara::crypto::x509::X509Provider 的同步方法 CreateCertSignRequest 根据 RFC 2986 标准创建证书签名请求(Certificate Signing Request,CSR)[SWS_CRYPT_40640]。作为参数,该函数需要一个完整配置的签名上下文 signerCtx、主题的可分辨名称 subjectDn、关联的公钥 publicKey 以及可选的 DER 编码属性 attributes [SWS_CRYPT_40640]。传入的公钥必须与签名上下文中配置的私钥严格对应。成功时,将返回打包在 ara::core::Result 中的指向已创建 CSR(CertSignRequest::Sptrc)的智能指针 [SWS_CRYPT_40640]。

错误处理

出错时,该方法将根据回滚语义返回带有相应错误代码的 ara::core::Result [SWS_CRYPT_40640]:

  • ara::crypto::CryptoErrc::kInvalidArgument:如果传入的属性数据无效,或者公钥与签名上下文的私钥不匹配。
  • ara::crypto::CryptoErrc::kUninitializedContext:如果签名上下文未用密钥值进行初始化。
  • ara::crypto::CryptoErrc::kEmptyKeySlot:如果配置的 KeySlot 当前为空。
  • ara::crypto::CryptoErrc::kUsageViolation:如果允许的密钥用法不包含签名生成(kAllowSigGeneration)。
  • ara::crypto::CryptoErrc::kBusyResource:如果操作所需的资源被占用。

并发性与限制

该方法被指定为 const、noexcept、异常安全(exception safe)以及线程安全(thread-safe)[SWS_CRYPT_40640]。只要传入的上下文和密钥对象不同时被其他线程修改,通过同一提供程序实例进行的并行调用很可能是允许的。 问题 Q-aef8777dce55a033 (未决)

本使用说明基于 AUTOSAR Adaptive Release R25-11 规范自动生成。

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
signerCtxthe fully configured SignerPrivateCtx to be used for signing this certificate request
subjectDnthe DN to be used in the CSR
publicKeythe public key to be used in the CSR. Must correspond to the private key configured in the signerCtx.
attributesthe DER-encoded attributes that should be included to the certificate signing request

Rückgabewert

TypBeschreibung
ara::core::Result< CertSignRequest::Sptrc >Smart pointer to created certificate signing request

Fehler

FehlercodeBeschreibung
InvalidArgumentif the attributes parameter contains invalid data
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by a key value
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Generation
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the publicKey does not correspond to the private key configured at the signerCtx

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40640
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40640@rel:R25-11#4cae66a6
Content hash
4cae66a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40640
Status: valid/unmigrated Version: rel:R25-11#ac494cfd 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_40640@rel:R25-11#ac494cfd
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#6c6194a72026-09-30
  • R20-11rel:R20-11#e83871e52026-10-14
  • R21-11rel:R21-11#6eff8cfd2026-10-14
  • R22-11rel:R22-11#87637b592026-10-14
  • R23-11rel:R23-11#39e766542026-10-14
  • R24-11rel:R24-11#978b01462026-10-14
  • R25-11rel:R25-11#ac494cfd2026-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

函数 CreateCertificateValidationCtx [SWS_CRYPT_50125] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertificateValidationCtx::Sptr > Create CertificateValidationCtx () noexcept=0;

Create a certificate validation context.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 29344148ca27 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 CreateCertificateValidationCtx 是类 ara::crypto::x509::X509Provider 的功能接口,根据 [SWS_CRYPT_50125] 用于创建证书验证上下文。它在头文件 #include "ara/crypto/x509/x509_provider.h" 中声明,并定义为无参数的纯虚函数 [SWS_CRYPT_50125]。

同步调用返回类型 ara::core::Result<CertificateValidationCtx::Sptr> 作为返回值,该类型在成功时提供一个指向所创建上下文的智能指针 [SWS_CRYPT_50125]。规范中未为此函数定义标准化的错误代码 [SWS_CRYPT_50125]。但由于通过结果类型 ara::core::Result 进行返回,因此在上下文创建期间任何 provider 特定的错误大概都会通过此 Result 对象的错误组件反映出来。 问题 Q-f81f52d8e3d73bcf (未决)

关于调用上下文和并发性,该方法被明确规范定义为线程安全(thread-safe),并被声明为异常安全(exception safe)和 noexcept [SWS_CRYPT_50125]。因此,调用者可以安全地从多个线程并发执行该函数,而无需为创建过程提供额外的同步 [SWS_CRYPT_50125]。

本使用说明基于 AUTOSAR Adaptive R25-11 规范。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result<CertificateValidationCtx::Sptr >Smart pointer to the created context

Fehler

FehlercodeBeschreibung
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_50125
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50125@rel:R25-11#c355d092
Content hash
c355d092
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50125
Status: valid/unmigrated Version: rel:R25-11#7943aae2 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_50125@rel:R25-11#7943aae2
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

函数 CreateDn [SWS_CRYPT_50186] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< X509DN::Sptrc > CreateDn (ara::core::String View dnString) const noexcept=0;

Create DN from string representation.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 085f2fe97f25 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

纯虚方法 CreateDn 通过来自头文件 ara/crypto/x509/x509_provider.h 的接口 ara::crypto::x509::X509Provider 提供 [SWS_CRYPT_50186]。它用于根据字符串表示实例化 X.509 识别名对象(X509DN::Sptrc)[SWS_CRYPT_50186]。作为输入参数,它需要类型为 ara::core::StringView 的 dnString,该参数必须表示符合 RFC 4514 的识别名 [SWS_CRYPT_50186]。解释:由于该函数声明为 const noexcept 并直接返回 ara::core::Result,因此该调用大概率以同步阻塞方式发生,且不会改变提供程序的状态。 问题 Q-c7e3ab6b4f34ad0f (未决)

错误处理

如果由于传入的字符串不表示符合 RFC 4514 的有效 DN 而导致无法成功处理,该函数将返回带有错误码 ara::crypto::CryptoErrc::kInvalidArgument 的 ara::core::Result [SWS_CRYPT_50186]。已为此错误情况指定了回滚语义 [SWS_CRYPT_50186]。

并发性与限制

该方法被明确指定为异常安全(exception safe)和线程安全(thread-safe)[SWS_CRYPT_50186]。因此,可以从并发线程调用它而无需额外的外部同步。

相互作用

作为基于字符串生成的替代方案,ara::crypto::x509::X509Provider 提供了 CreateDn 的另一重载 [SWS_CRYPT_50187]。该重载允许通过指定格式标识符(FormatId)从序列化缓冲区(ReadOnlyMemRegion)构造 X509DN [SWS_CRYPT_50187]。

本使用说明由 AI 基于规范生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
dnStringstring representing a DN according to RFC 4514

Rückgabewert

TypBeschreibung
ara::core::Result< X509DN::Sptrc >a result containing a X509DN or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided DN string is invalid.

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50186
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50186@rel:R25-11#9952b86e
Content hash
9952b86e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50186
Status: valid/unmigrated Version: rel:R25-11#1156623b 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_50186@rel:R25-11#1156623b
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

函数 CreateDn [SWS_CRYPT_50187] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< X509DN::Sptrc > CreateDn (ReadOnlyMemRegion dn, FormatId formatId) const noexcept=0;

Create DN from a serialized buffer.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 9e16d7d285e3 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

符合 [SWS_CRYPT_50187] 的方法 CreateDn 用于从序列化缓冲区创建专有名称(DN)。它在 ara::crypto::x509::X509Provider 的实例上同步调用。作为输入,该函数需要包含序列化数据的类型为 ReadOnlyMemRegion 的内存区域 dn,以及类型为 FormatId 的格式标识符 formatId。在成功执行时,该方法返回一个 ara::core::Result<X509DN::Sptrc>,其提供指向所创建 X509DN 对象的共享指针(Shared Pointer)。

错误处理

若创建失败,该方法在 ara::core::Result 内返回相应的错误代码([SWS_CRYPT_50187]):

  • ara::crypto::CryptoErrc::kInvalidArgument:在传入的缓冲区 dn 无效时发生,具有回滚语义。
  • ara::crypto::CryptoErrc::kUnsupportedFormat:在指定的 formatId 未知或不受支持时报告,具有回滚语义。

并发性与交互

该接口被指定为 thread-safe 以及 exception safe,并声明为 noexcept([SWS_CRYPT_50187])。因此,它可以安全地从多个执行上下文中并行调用。

与依据 RFC 4514 从字符串(ara::core::StringView)创建 DN 的备选重载 [SWS_CRYPT_50186] 不同,此函数处理序列化的二进制数据。FormatId 的具体表现形式推测在模块范围的其他位置定义。 问题 Q-dd7cbf35ba6fa7d1 (未决)

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
dna DN serialized according to the provided format
formatIdinput format identifier

Rückgabewert

TypBeschreibung
ara::core::Result< X509DN::Sptrc >a result containing a X509DN or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided dn buffer is invalid.
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50187
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50187@rel:R25-11#da878ed7
Content hash
da878ed7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50187
Status: valid/unmigrated Version: rel:R25-11#0812b274 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_50187@rel:R25-11#0812b274
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

函数 CreateOcspRequest [SWS_CRYPT_40626] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< ara::core::Vector< std::uint8_t > > Create OcspRequest (Certificate::Sptrc cert, Certificate::Sptrc issuerCert, ara::core::Optional< cryp::SignerPrivateCtx::Sptr > signerCtx) noexcept=0;

Create OCSP request for specified certificate according to RFC 6960.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0ede64b86ad6 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::crypto::x509::X509Provider 的方法 CreateOcspRequest 根据 RFC 6960 为单个证书同步生成 OCSP(联机证书状态协议)检查请求 [SWS_CRYPT_40626]。作为参数,待检查证书 cert 及其签发者证书 issuerCert 分别作为 Certificate::Sptrc 传递 [SWS_CRYPT_40626]。如果请求需要进行密码学签名,则可以通过可选参数 signerCtx 提供指向签名上下文的指针 [SWS_CRYPT_40626]。该函数返回包含 ara::core::Vector<std::uint8_t> 的 ara::core::Result;所包含的原始数据可能对应于符合 RFC 6960 的 DER 编码请求结构 [SWS_CRYPT_40626]。 问题 Q-c43cf023ee5eddd9 (未决)

错误处理

如果在生成过程中发生错误,ara::core::Result 将提供具有回滚语义的特定错误码 [SWS_CRYPT_40626]:

  • ara::crypto::CryptoErrc::kUninitializedContext:当传入的签名上下文未用密钥初始化时发生 [SWS_CRYPT_40626]。
  • ara::crypto::CryptoErrc::kBusyResource:当由于资源暂时被占用而无法执行操作时发生 [SWS_CRYPT_40626]。

并发性与交互

该方法声明为 noexcept,被视为异常安全(exception safe),并被指定为 thread-safe [SWS_CRYPT_40626]。对于需要在单个公共 OCSP 请求中同时打包多个证书的场景,提供了针对证书列表的重载接口 [SWS_CRYPT_40627]。

此文本由 AI 生成,仅供参考。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certa certificate that should be verified
issuerCertthe issuer certificate of the certificate that should be verified
signerCtxan optional pointer to initialized signer context (if the request should be signed)

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<std::uint8_t > >Smart pointer to the created OCSP request

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the signer context is not initialized by a key
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_40626
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40626@rel:R25-11#cdb14c6c
Content hash
cdb14c6c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40626
Status: valid/unmigrated Version: rel:R25-11#afe90920 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_40626@rel:R25-11#afe90920
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2ba524d72026-09-30
  • R19-11rel:R19-11#8197a6182026-10-14
  • R20-11rel:R20-11#438e8ee12026-10-14
  • R21-11rel:R21-11#6413c43a2026-10-14
  • R22-11rel:R22-11#7df0940a2026-10-14
  • R23-11rel:R23-11#a8b4a3b12026-10-14
  • R24-11rel:R24-11#d6335c382026-10-14
  • R25-11rel:R25-11#afe909202026-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

函数 CreateOcspRequest [SWS_CRYPT_40627] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< ara::core::Vector< std::uint8_t > > Create OcspRequest (const ara::core::Span< Certificate::Sptrc > certList, const ara::core::Span< Certificate::Sptrc > issuerCertList, ara::core::Optional< cryp::SignerPrivateCtx::Sptr > signerCtx) noexcept=0;

Create OCSP request for specified list of certificates according to RFC 6960.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 045b7f496270 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

接口 ara::crypto::x509::X509Provider([SWS_CRYPT_40627])的方法 CreateOcspRequest 用于根据 RFC 6960 为多个证书同步创建 OCSP 检查请求(联机证书状态协议)。该调用通过头文件 #include "ara/crypto/x509/x509_provider.h" 提供。

该函数需要的输入参数如下:

  • certList:要验证的证书列表,作为 ara::core::Span<Certificate::Sptrc>。
  • issuerCertList:关联的颁发者证书列表,作为 ara::core::Span<Certificate::Sptrc>。解释:两个列表的条目之间很可能预设了按索引成对对应。 问题 Q-9132b017c2c4be75 (未决)
  • signerCtx:指向已初始化签名上下文(ara::core::Optional<cryp::SignerPrivateCtx::Sptr>)的可选指针,用于需要对请求进行加密签名的情况。

作为返回值,该函数提供一个 ara::core::Result,成功生成时,它会在 ara::core::Vector<std::uint8_t> 中提供 OCSP 请求的二进制数据([SWS_CRYPT_40627])。

错误处理

出错时,ara::core::Result 会提供具有回滚语义的错误代码([SWS_CRYPT_40627]):

  • ara::crypto::CryptoErrc::kUninitializedContext:当传入的签名上下文未通过密钥初始化时发生。
  • ara::crypto::CryptoErrc::kBusyResource:由于资源暂时被占用导致操作暂时无法执行时发生。

并发性与交互

该方法被指定为 thread-safe 以及 exception safe,并声明为 noexcept([SWS_CRYPT_40627])。与为单个证书生成 OCSP 请求的 [SWS_CRYPT_40626] 相比,该接口允许将多个证书捆绑在单个请求中。

本使用说明自动生成,并基于 AUTOSAR 规范 R25-11。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certLista list of certificates that should be verified
issuerCertLista list of issuer certificates of the certificates that should be verified
signerCtxan optional pointer to initialized signer context (if the request should be signed)

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<std::uint8_t > >Smart pointer to the created OCSP request

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the signer context is not initialized by a key
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_40627
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40627@rel:R25-11#01d8660c
Content hash
01d8660c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40627
Status: valid/unmigrated Version: rel:R25-11#28f7db2c 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_40627@rel:R25-11#28f7db2c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#35c80f532026-09-30
  • R19-11rel:R19-11#ddd2c1962026-10-14
  • R20-11rel:R20-11#745575b22026-10-14
  • R21-11rel:R21-11#e962488d2026-10-14
  • R22-11rel:R22-11#255821312026-10-14
  • R23-11rel:R23-11#e4d2938a2026-10-14
  • R24-11rel:R24-11#293b816f2026-10-14
  • R25-11rel:R25-11#28f7db2c2026-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

函数 DeleteCrl [SWS_CRYPT_50184] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > DeleteCrl (ara::core::Instance Specifier crlInstanceSpecifier) noexcept=0;

Delete a stored CRL identified by the passed instance specifier.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 0e40ef1af7c7 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

接口ara::crypto::x509::X509Provider的方法DeleteCrl用于删除持久化保存的证书吊销列表(Certificate Revocation List,CRL)[SWS_CRYPT_50184]。作为参数传入crlInstanceSpecifier,该参数指向标识相应证书的CryptoCertificateInterface的RPortPrototype[SWS_CRYPT_50184]。该函数同步工作并返回一个ara::core::Result<void>;若 CRL 已成功删除或先前根本未保存 CRL,则该结果为空[SWS_CRYPT_50184]。

错误处理与并发

若执行期间发生临时资源冲突,该函数将以回滚语义报告错误ara::crypto::CryptoErrc::kBusyResource[SWS_CRYPT_50184]。该方法声明为noexcept,并指定为异常安全(exception safe)和线程安全(thread-safe)[SWS_CRYPT_50184]。

限制和配置条件

调用适用以下配置与权限前提条件[SWS_CRYPT_50184]:

  • ProcessMappingViolation:当InstanceSpecifier未指向针对当前进程建模且由CryptoCertificateInterface类型化的PortPrototype时发生[SWS_CRYPT_50184]。
  • InsufficientPermissionsViolation:当当前进程没有写权限时发生,即CryptoCertificateToPortPrototypeMapping.writeAccess != True[SWS_CRYPT_50184]。

本使用说明基于 AUTOSAR 规范由 AI 自动生成。

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
crlInstanceSpecifierinstance specifier to the RPortPrototype of a CryptoCertificate Interface that identifies the certificate for which the CRL shall be deleted

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if no CRL was stored or if the CRL was successfully deleted, or a result containing an error

Fehler

FehlercodeBeschreibung
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_50184
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50184@rel:R25-11#aab6476e
Content hash
aab6476e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50184
Status: valid/unmigrated Version: rel:R25-11#925229b1 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_50184@rel:R25-11#925229b1
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

函数 ImportCertificate [SWS_CRYPT_40621] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > ImportCertificate (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;

Persistently store a certificate in a certificate slot.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f23066eba231 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

接口 ara::crypto::x509::X509Provider 的方法 ImportCertificate(声明于 ara/crypto/x509/x509_provider.h)用于将 X.509 证书持久存储在定义的证书槽位中 [SWS_CRYPT_40621]。目标槽位通过 instanceSpecifier(类型 ara::core::InstanceSpecifier)寻址,而要导入的证书则通过参数 certificate(类型 Certificate::Sptrc)传递 [SWS_CRYPT_40621]。解释:执行大概是同步进行的,因为接口直接返回 ara::core::Result<void> [SWS_CRYPT_40621]。 问题 Q-514863e9a90f1c72 (未决)

错误处理和建模规则

发生错误时,将返回错误的 ara::core::Result。如果操作暂时无法执行,该方法将返回具有回滚语义的 ara::crypto::CryptoErrc::kBusyResource [SWS_CRYPT_40621]。此外,还必须满足配置和建模规范,否则将报告运行时违规 [SWS_CRYPT_40621]:

  • ProcessMappingViolation:如果 instanceSpecifier 未指向为当前进程建模的、由 CryptoCertificateInterface 类型化的 PortPrototype,则触发 [SWS_CRYPT_40621]。
  • InsufficientPermissionsViolation:在当前进程没有写权限(CryptoCertificateToPortPrototypeMapping.writeAccess != True)时发生 [SWS_CRYPT_40621]。

并发性与执行上下文

该操作被指定为 thread-safe 和 exception safe(noexcept=0),从而确保了无外部锁并发调用的安全性 [SWS_CRYPT_40621]。

此文本由 AI 生成,用作 AUTOSAR 规范的参考指南。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
instanceSpecifieran InstanceSpecifier identifying a certificate slot
certificatea certificate that should be imported

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
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_40621
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40621@rel:R25-11#6289af11
Content hash
6289af11
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40621
Status: valid/unmigrated Version: rel:R25-11#512b6299 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_40621@rel:R25-11#512b6299
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c60e824f2026-09-30
  • R19-11rel:R19-11#66df9bb02026-10-14
  • R20-11rel:R20-11#e902d4782026-10-14
  • R21-11rel:R21-11#ed0fa6be2026-10-14
  • R22-11rel:R22-11#f860cec72026-10-14
  • R23-11rel:R23-11#55f297932026-10-14
  • R24-11rel:R24-11#f3490f622026-10-14
  • R25-11rel:R25-11#512b62992026-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

函数 ImportCertificateInGroup [SWS_CRYPT_50127] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > ImportCertificateInGroup (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;

Persistently store a certificate in a certificate group.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2cbd935cbbae 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

类 ara::crypto::x509::X509Provider 的方法 ImportCertificateInGroup 将提供的证书持久存储在通过 instanceSpecifier 标识的证书组中 [SWS_CRYPT_50127]。作为参数,传递对目标组 ara::core::InstanceSpecifier 的引用以及指向该证书的智能指针(Certificate::Sptrc certificate)[SWS_CRYPT_50127]。该调用通过头文件 ara/crypto/x509/x509_provider.h 声明,并同步返回一个 ara::core::Result<void>,其指示成功导入或封装错误状态 [SWS_CRYPT_50127]。

错误处理与违规

在常规错误情况下,该操作提供回滚语义,并在 Result 对象中返回特定错误代码 [SWS_CRYPT_50127]:

  • ara::crypto::CryptoErrc::kInsufficientCapacity:所寻址证书组的容量不足以容纳该证书 [SWS_CRYPT_50127]。
  • ara::crypto::CryptoErrc::kBusyResource:由于所需资源被占用,操作暂时无法执行 [SWS_CRYPT_50127]。

此外,还定义了约束性的建模与权限要求,不遵守这些要求将被归类为违规(Violations)[SWS_CRYPT_50127]:

  • ProcessMappingViolation:当 InstanceSpecifier 未指向为当前进程建模且由 CryptoCertificateGroupInterface 进行类型化的 PortPrototype 时发生 [SWS_CRYPT_50127]。
  • InsufficientPermissionsViolation:当调用进程不具备写权限(以 CryptoCertificateGroupToPortPrototypeMapping.writeAccess != True 为特征)时发生 [SWS_CRYPT_50127]。

并发性与执行上下文

该接口被指定为线程安全(thread-safe)以及异常安全(exception safe),并声明为 noexcept [SWS_CRYPT_50127]。

本使用说明由 AI 基于 AUTOSAR R25-11 规范生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateGroupInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateGroupToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
instanceSpecifieran InstanceSpecifier identifying a certificate group
certificatea certificate that should be imported

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the capacity of the certificate group is not sufficient to store the certificate
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_50127
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50127@rel:R25-11#20c06557
Content hash
20c06557
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50127
Status: valid/unmigrated Version: rel:R25-11#b5718b48 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_50127@rel:R25-11#b5718b48
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

函数 ImportCrl [SWS_CRYPT_50183] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< CertificateValidationStatus > ImportCrl (ara::core::InstanceSpecifier crlInstanceSpecifier, ReadOnlyMemRegion crl, FormatId formatId) noexcept=0;

Parse and persist a Certificate Revocation List (CRL) or Delta CRL which is issued by the CA certificate identified by the passed ara::core::InstanceSpecifier.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b949726f73e5 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

类 ara::crypto::x509::X509Provider 的方法 ImportCrl 解析并持久化由通过 crlInstanceSpecifier 识别的 CA 证书签发的证书吊销列表(CRL)或增量 CRL(Delta CRL)[SWS_CRYPT_50183]。执行应当是同步进行的,因为会立即返回一个 ara::core::Result。 问题 Q-648a00ec967c7524 (未决)

调用时会传递以下参数[SWS_CRYPT_50183]:

  • crlInstanceSpecifier:指向用于标识证书的 CryptoCertificateInterface 的 RPortPrototype 的 ara::core::InstanceSpecifier。
  • crl:包含序列化 CRL 或增量 CRL 数据的 ReadOnlyMemRegion。
  • formatId:序列化 CRL 的格式。

该操作被指定为 thread-safe 以及 exception safe [SWS_CRYPT_50183]。在成功情况下,它返回状态为 CertificateValidationStatus::kValid 的 ara::core::Result 或 CRL 的验证结果 [SWS_CRYPT_50183]。

在错误情况下,返回值具有回滚语义 [SWS_CRYPT_50183]:

  • ara::crypto::CryptoErrc::kInvalidArgument:CRL 不符合指定的格式。
  • ara::crypto::CryptoErrc::kUnsupportedFormat:指定的 FormatId 未知或不受支持。
  • ara::crypto::CryptoErrc::kBusyResource:该操作暂时无法执行。

此外还必须遵守配置前提条件 [SWS_CRYPT_50183]:若实例标识符未指向为当前进程建模的端口,则发生 ProcessMappingViolation;若设置了 CryptoCertificateToPortPrototypeMapping.writeAccess != True,则发生 InsufficientPermissionsViolation。

本使用说明由自动化生成,基于 AUTOSAR Adaptive Platform 规范。

实现者指南即将推出(复杂度 I2)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
crlInstanceSpecifierara::core::InstanceSpecifier to the RPortPrototype of a CryptoCertificateInterface that identifies the certificate for which the CRL shall be imported
crlserialized CRL or Delta CRL
formatIdthe format of the serialized CRL

Rückgabewert

TypBeschreibung
ara::core::Result<CertificateValidationStatus >a result containing kValid if the CRL was added, or the result of the CRL validation, or an error otherwise.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if crl does not conform to the specified format
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported
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_50183
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50183@rel:R25-11#2a8fbfe5
Content hash
2a8fbfe5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50183
Status: valid/unmigrated Version: rel:R25-11#8304d910 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_50183@rel:R25-11#8304d910
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

函数 LoadCertificate [SWS_CRYPT_40641] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< Certificate::Sptrc > LoadCertificate (const ara::core::InstanceSpecifier &instanceSpecifier) noexcept=0;

Load a certificate from the persistent certificate storage.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 84a69aeba7b5 来源 未决问题(1)
译自德文指南AI 生成gemini-3.8-flash-low · 2026-10-13 · 德文原文

接口 ara::crypto::x509::X509Provider 的方法 LoadCertificate 用于从持久性证书存储中加载证书 [SWS_CRYPT_40641]。该调用同步执行(解释:直接返回 ara::core::Result,而无需像 ara::core::Future 这样的异步 Future 对象)。 问题 Q-a2e3c23a02b4f8a1 (未决)作为输入参数,该函数期望一个 ara::core::InstanceSpecifier,用于标识证书的具体存储位置 [SWS_CRYPT_40641]。

成功执行时,返回值在一个 ara::core::Result 中封装了指向已实例化证书(Certificate::Sptrc)的智能指针 [SWS_CRYPT_40641]。如果加载失败,结果将包含一个错误码:

  • ara::crypto::CryptoErrc::kEmptyCertificateSlot:如果由指定的 instanceSpecifier 标识的 CryptoCertificate 不包含持久化证书,则发生并具有回滚语义 [SWS_CRYPT_40641]。

在并发性和异常安全性方面,LoadCertificate 被指定为 thread-safe 以及 exception-safe,并声明为 noexcept [SWS_CRYPT_40641]。在配置和进程分配时必须注意一项建模约束:如果传入的 instanceSpecifier 未指向为当前进程建模的、由 CryptoCertificateInterface 类型化的 PortPrototype,则构成 ProcessMappingViolation [SWS_CRYPT_40641]。

本文本由 AI 生成;不能替代对官方 AUTOSAR 规范的研读。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateInterface modeled for the current process.

Parameter (in)

ParameterBeschreibung
instanceSpecifierAn ara::core::InstanceSpecifier identifying a storage location of a certificate.

Rückgabewert

TypBeschreibung
ara::core::Result<Certificate::Sptrc >an Smart pointer to the instantiated certificate

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyCertificateSlotrollback_semantics The CryptoCertificate identified by the provided InstanceSpecifier does not contain a persisted Certificate

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40641
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40641@rel:R25-11#cc72e3b2
Content hash
cc72e3b2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40641
Status: valid/unmigrated Version: rel:R25-11#3e5e929d 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_40641@rel:R25-11#3e5e929d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#94627f002026-09-30
  • R20-11rel:R20-11#f6a245932026-10-14
  • R21-11rel:R21-11#08172d492026-10-14
  • R22-11rel:R22-11#ac029e1a2026-10-14
  • R23-11rel:R23-11#484d2a182026-10-14
  • R24-11rel:R24-11#38d686ab2026-10-14
  • R25-11rel:R25-11#3e5e929d2026-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

函数 LoadCertificateGroup [SWS_CRYPT_50126] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< ara::core::Vector< Certificate::Sptrc > > LoadCertificateGroup (const ara::core::InstanceSpecifier &instance Specifier) noexcept=0;

Load a group of certificates from the persistent certificate storage.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: b9c11fbc2aed 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 ara::crypto::x509::X509Provider::LoadCertificateGroup 用于根据 [SWS_CRYPT_50126] 从持久证书存储中加载一组证书。

用法与调用上下文

调用通过来自头文件 ara/crypto/x509/x509_provider.h 的 X509Provider 实例进行。作为输入参数,该函数需要类型为 const ara::core::InstanceSpecifier& 的 instanceSpecifier,其标识目标证书组的逻辑存储位置 [SWS_CRYPT_50126]。作为结果,该接口返回一个 ara::core::Result<ara::core::Vector<Certificate::Sptrc>>,其在成功时提供一个包含指向已加载证书的智能指针的 vector [SWS_CRYPT_50126]。由于缺少诸如 ara::core::Future 之类的异步返回类型,对持久存储的访问大概是以同步阻塞方式进行的。 问题 Q-b743367ccc9904ab (未决)

错误处理与建模限制

规范中未对返回值定义标准化的错误代码 [SWS_CRYPT_50126]。然而,规定了运行时检查:如果传入的 instanceSpecifier 未指向针对当前进程建模且由 CryptoCertificateGroupInterface 确定类型的 PortPrototype,则存在 ProcessMappingViolation [SWS_CRYPT_50126]。

并发与异常安全性

纯虚方法带有 noexcept 注解,并被规范定义为异常安全(exception safe)。此外,该调用被明确声明为线程安全(thread-safe),因此来自多个线程的并行读取访问是安全的 [SWS_CRYPT_50126]。

本文字由人工智能创建,基于 AUTOSAR R25-11。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateGroupInterface modeled for the current process.

Parameter (in)

ParameterBeschreibung
instanceSpecifierAn instance specifier identifying a storage location of a certificate group.

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<Certificate::Sptrc > >a vector containing the certificates stored in the certificate group.

Fehler

FehlercodeBeschreibung
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_50126
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50126@rel:R25-11#1c81908a
Content hash
1c81908a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50126
Status: valid/unmigrated Version: rel:R25-11#1708c4f4 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_50126@rel:R25-11#1708c4f4
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

函数 ParseCert [SWS_CRYPT_40614] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< Certificate::Sptrc > ParseCert (ReadOnlyMem Region cert, FormatId formatId) noexcept=0;

Parse a serialized representation of an X.509v3 certificate and create a certificate object.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6e6cff229e6f 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

方法 ParseCert 是类 ara::crypto::x509::X509Provider 的组成部分(定义在头文件 ara/crypto/x509/x509_provider.h 中),用于分析 X.509v3 证书的序列化表示并实例化相应的证书对象 [SWS_CRYPT_40614]。

调用与参数:该函数被同步调用,并被指定为 noexcept [SWS_CRYPT_40614]。它接收两个输入参数:

  • cert:类型为 ReadOnlyMemRegion 的内存区域,提供按指定格式编码的证书数据 [SWS_CRYPT_40614]。
  • formatId:用于确定解析过程的输入格式标识符 [SWS_CRYPT_40614]。

返回值与错误处理:结果作为 ara::core::Result<Certificate::Sptrc> 返回,成功时包含指向所创建证书对象的共享指针 [SWS_CRYPT_40614]。如果发生错误,将采用回滚语义并带有以下特定错误代码 [SWS_CRYPT_40614]:

  • ara::crypto::CryptoErrc::kInvalidArgument:参数 cert 无法解析为有效证书 [SWS_CRYPT_40614]。
  • ara::crypto::CryptoErrc::kUnsupportedFormat:指定的 formatId 未知或不受支持 [SWS_CRYPT_40614]。

并发性与实现:该接口明确被指定为异常安全(exception safe)和线程安全(thread-safe)[SWS_CRYPT_40614]。由于 ParseCert 声明为纯虚方法,实际的解析逻辑很可能由平台特定的加密驱动程序或提供程序提供 [SWS_CRYPT_40614]。 问题 Q-d3239d62d2e7d831 (未决)

本使用说明由 AI 整理,并基于 AUTOSAR Adaptive R25-11 规范。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certcertificate encoded in the given format
formatIdinput format identifier

Rückgabewert

TypBeschreibung
ara::core::Result<Certificate::Sptrc >A result containing either the parsed certificate or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the cert argument cannot be parsed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40614
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40614@rel:R25-11#e270a9fb
Content hash
e270a9fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40614
Status: valid/unmigrated Version: rel:R25-11#a0375fd1 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_40614@rel:R25-11#a0375fd1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f8a4d6b92026-09-30
  • R19-11rel:R19-11#9e0555992026-10-14
  • R20-11rel:R20-11#6667ce072026-10-14
  • R21-11rel:R21-11#dbc78a3c2026-10-14
  • R22-11rel:R22-11#49d5e95f2026-10-14
  • R23-11rel:R23-11#246cb3d52026-10-14
  • R24-11rel:R24-11#1fdcfb692026-10-14
  • R25-11rel:R25-11#a0375fd12026-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

函数 ParseCertChain [SWS_CRYPT_40616] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< ara::core::Vector< Certificate::Sptrc > > ParseCertChain (ReadOnlyMemRegion certChain, FormatId formatId) noexcept=0;

Parse a serialized representation of a certificate chain, creating a new Certificate instance for each parsed certificate. Certificates in the returned vector will be placed in the same order as provided in certChain.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f7a9ecb9b926 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自头文件 ara/crypto/x509/x509_provider.h 的接口 ara::crypto::x509::X509Provider 的方法 ParseCertChain 解析证书链的序列化表示 [SWS_CRYPT_40616]。作为参数,它接收作为 ReadOnlyMemRegion 的已编码证书链内存区域 certChain,以及类型为 FormatId 的格式标识符 formatId [SWS_CRYPT_40616]。对于每个成功解析的证书,都会创建一个新的 Certificate 实例。在成功情况下,该同步函数返回一个带有 ara::core::Vector<Certificate::Sptrc> 的 ara::core::Result,其中证书的排列顺序与传入链中的顺序相同 [SWS_CRYPT_40616]。

错误处理

出错时,返回的 ara::core::Result 包含具有回滚语义的特定错误代码 [SWS_CRYPT_40616]:

  • ara::crypto::CryptoErrc::kInvalidArgument:无法解析参数 certChain [SWS_CRYPT_40616]。
  • ara::crypto::CryptoErrc::kUnsupportedFormat:指定的标识符 formatId 未知或不受支持 [SWS_CRYPT_40616]。

并发性与边界条件

该方法声明为 noexcept,被指定为线程安全(thread-safe),并保证异常安全(exception safe)[SWS_CRYPT_40616]。

本使用说明基于 AUTOSAR Adaptive R25-11 规范自动创建。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
certChaincertificate chain encoded in the given format
formatIdinput format identifier

Rückgabewert

TypBeschreibung
ara::core::Result<ara::core::Vector<Certificate::Sptrc > >A result containing either the vector of certificates or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the certChain argument cannot be parsed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40616
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40616@rel:R25-11#ecbfe46a
Content hash
ecbfe46a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40616
Status: valid/unmigrated Version: rel:R25-11#a4d81c6b 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_40616@rel:R25-11#a4d81c6b
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ec35b0c52026-09-30
  • R19-11rel:R19-11#5bda10c72026-10-14
  • R20-11rel:R20-11#b056b6bd2026-10-14
  • R21-11rel:R21-11#57527f702026-10-14
  • R22-11rel:R22-11#0f12bbca2026-10-14
  • R23-11rel:R23-11#f0b325b82026-10-14
  • R24-11rel:R24-11#88f50d562026-10-14
  • R25-11rel:R25-11#a4d81c6b2026-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

函数 ParseOcspResponse [SWS_CRYPT_50185] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< OcspResponse::Sptrc > ParseOcspResponse (ReadOnlyMemRegion response, FormatId formatId) const noexcept=0;

Parse serialized OCSP response.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 2f25210e0a2c 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

用法与调用上下文

同步方法 ParseOcspResponse 是接口 ara::crypto::x509::X509Provider(定义于 ara/crypto/x509/x509_provider.h 中)的一部分,用于读取和解析序列化的 OCSP 响应 [SWS_CRYPT_50185]。调用方通过参数 response 将响应的原始数据作为 ReadOnlyMemRegion 传递,并通过类型为 FormatId 的 formatId 传递期望的数据格式 [SWS_CRYPT_50185]。在成功验证和处理后,该函数返回一个 ara::core::Result,其封装了指向新创建的 OCSP 响应对象的智能指针 OcspResponse::Sptrc [SWS_CRYPT_50185]。

错误处理

错误情况通过具有回滚语义的返回类型 ara::core::Result 指示,且不抛出异常 [SWS_CRYPT_50185]:

  • ara::crypto::CryptoErrc::kInvalidArgument:在缓冲区 response 中提供的字节无法解析为有效 OCSP 响应时发生 [SWS_CRYPT_50185]。
  • ara::crypto::CryptoErrc::kUnsupportedFormat:在传入的标识符 formatId 未知或不受 Provider 支持时报告 [SWS_CRYPT_50185]。

并发与线程安全

该纯虚方法声明为 noexcept,归类为异常安全(exception safe),并显式指定为线程安全(thread-safe)[SWS_CRYPT_50185]。得益于 const 声明,在多线程环境中可以在同一 Provider 实例上并发调用 ParseOcspResponse,而不会修改对象的内部状态 [SWS_CRYPT_50185]。

本文由 AI 基于 AUTOSAR 规范 R25-11 生成。

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
responsea serialized OCSP response
formatIdthe format of the serialized OCSP response

Rückgabewert

TypBeschreibung
ara::core::Result< OcspResponse::Sptrc >Smart pointer to the created OCSP response instance

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the response argument cannot be parsed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified FormatId is unknown or not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50185
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50185@rel:R25-11#2b2824ea
Content hash
2b2824ea
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50185
Status: valid/unmigrated Version: rel:R25-11#a8464cf9 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_50185@rel:R25-11#a8464cf9
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

函数 RemoveCertificateFromGroup [SWS_CRYPT_50128] Upstream: RS_CRYPTO_02306

virtual ara::core::Result< void > RemoveCertificateFromGroup (const ara::core::InstanceSpecifier &instanceSpecifier, Certificate::Sptrc certificate) noexcept=0;

Remove a certificate from a certificate group.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 6047b8eed140 来源
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用

来自作用域 ara::crypto::x509::X509Provider 的同步接口方法 RemoveCertificateFromGroup 用于有针对性地从现有证书组中移除证书 [SWS_CRYPT_50128]。通过参数 instanceSpecifier 标识相关证书组,而 certificate 作为智能指针(Certificate::Sptrc)提供待移除的证书 [SWS_CRYPT_50128]。该调用返回一个 ara::core::Result<void>,其确认成功完成且无返回值,或封装所发生的错误 [SWS_CRYPT_50128]。

错误处理

若在执行时发生错误,则会应用定义的回滚语义,从而使证书组的状态保持不变 [SWS_CRYPT_50128]。指定了以下错误代码:

  • ara::crypto::CryptoErrc::kNoSuchValue:指定的证书组不包含待移除的证书 [SWS_CRYPT_50128]。
  • ara::crypto::CryptoErrc::kBusyResource:由于所需资源被占用,操作暂时无法执行 [SWS_CRYPT_50128]。

并发与配置条件

该方法被指定为 thread-safe 与 exception safe,并声明为 noexcept [SWS_CRYPT_50128]。在调用之前,系统模型中进程必须满足以下前提条件 [SWS_CRYPT_50128]:

  • 为避免 ProcessMappingViolation,传入的 InstanceSpecifier 必须指向由为当前进程建模的 CryptoCertificateGroupInterface 进行类型化的 PortPrototype [SWS_CRYPT_50128]。
  • 为避免 InsufficientPermissionsViolation,当前进程必须拥有写权限,即 CryptoCertificateGroupToPortPrototypeMapping.writeAccess 必须配置为 True [SWS_CRYPT_50128]。

此文本由 AI 基于 AUTOSAR 规范生成。

实现者指南即将推出(复杂度 I1)

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)ProcessMappingVio- In case InstanceSpecifier does not point to a PortPrototype typed lation by a CryptoCertificateGroupInterface modeled for the current process. InsufficientPer- In case the current process does not have write permissions, i.e., missionsViolation CryptoCertificateGroupToPortPrototypeMapping.writeAccess != True

Parameter (in)

ParameterBeschreibung
instanceSpecifieran InstanceSpecifier identifying a certificate group
certificatea certificate that should be removed from the certificate group

Rückgabewert

TypBeschreibung
ara::core::Result< void >An empty result or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kNoSuchValuerollback_semantics if the certificate group does not contain the certificate to be removed
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_50128
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50128@rel:R25-11#07229587
Content hash
07229587
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50128
Status: valid/unmigrated Version: rel:R25-11#c929d5da 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_50128@rel:R25-11#c929d5da
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

函数 X509Provider [SWS_CRYPT_41013] Upstream: RS_CRYPTO_02004

X509Provider (const X509Provider &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41013
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41013@rel:R25-11#c59c2993
Content hash
c59c2993
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41013
Status: valid/unmigrated Version: rel:R25-11#a59769dd Versionshistorie & Revisions (1 transition, 4 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_41013@rel:R25-11#a59769dd
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#9c2705c62026-09-30
  • R23-11rel:R23-11#efcf94072026-10-14
  • R24-11rel:R24-11#a59769dd2026-10-14
  • R25-11rel:R25-11#a59769dd2026-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

函数 X509Provider [SWS_CRYPT_41014] Upstream: RS_CRYPTO_02004

X509Provider (X509Provider &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41014
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41014@rel:R25-11#f57f6fab
Content hash
f57f6fab
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41014
Status: valid/unmigrated Version: rel:R25-11#5b6536a0 Versionshistorie & Revisions (1 transition, 4 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_41014@rel:R25-11#5b6536a0
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#fdd5b9a72026-09-30
  • R23-11rel:R23-11#d7191e3b2026-10-14
  • R24-11rel:R24-11#5b6536a02026-10-14
  • R25-11rel:R25-11#5b6536a02026-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

函数 operator= [SWS_CRYPT_30226] Upstream: RS_CRYPTO_02004

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

Copy-assign another X509Provider to this instance.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30226
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30226@rel:R25-11#ebd6204c
Content hash
ebd6204c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30226
Status: valid/unmigrated Version: rel:R25-11#12d2e41d 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_30226@rel:R25-11#12d2e41d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#aae6547a2026-09-30
  • R20-11rel:R20-11#563473892026-10-14
  • R21-11rel:R21-11#563473892026-10-14
  • R22-11rel:R22-11#12450a782026-10-14
  • R23-11rel:R23-11#f0fbd67b2026-10-14
  • R24-11rel:R24-11#12d2e41d2026-10-14
  • R25-11rel:R25-11#12d2e41d2026-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

函数 operator= [SWS_CRYPT_30227] Upstream: RS_CRYPTO_02004

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

Move-assign another X509Provider to this instance.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30227
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30227@rel:R25-11#d4ba290d
Content hash
d4ba290d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30227
Status: valid/unmigrated Version: rel:R25-11#ff5ab280 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_30227@rel:R25-11#ff5ab280
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#2b134e522026-09-30
  • R20-11rel:R20-11#dd07e2212026-10-14
  • R21-11rel:R21-11#dd07e2212026-10-14
  • R22-11rel:R22-11#b03c080d2026-10-14
  • R23-11rel:R23-11#64256a592026-10-14
  • R24-11rel:R24-11#ff5ab2802026-10-14
  • R25-11rel:R25-11#ff5ab2802026-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

函数 ~X509Provider [SWS_CRYPT_40604] Upstream: RS_CRYPTO_02306

virtual ~X509Provider () noexcept=default;

Destructor.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40604
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40604@rel:R25-11#d56ba477
Content hash
d56ba477
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40604
Status: valid/unmigrated Version: rel:R25-11#c0e827a2 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_40604@rel:R25-11#c0e827a2
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1b8a4c3c2026-09-30
  • R20-11rel:R20-11#b5e2a64e2026-10-14
  • R21-11rel:R21-11#eda85ff32026-10-14
  • R22-11rel:R22-11#402ee9402026-10-14
  • R23-11rel:R23-11#d51406d72026-10-14
  • R24-11rel:R24-11#e1f88ed22026-10-14
  • R25-11rel:R25-11#c0e827a22026-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

类型别名文档

类型别名 Sptr [SWS_CRYPT_40601] Upstream: RS_CRYPTO_02306

using Sptr = std::shared_ptr<X509Provider>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/x509/x509_provider.h"
Scopeclass ara::crypto::x509::X509Provider
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_40601
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_40601@rel:R25-11#fef103a6
Content hash
fef103a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_40601
Status: valid/unmigrated Version: rel:R25-11#668083df 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_40601@rel:R25-11#668083df
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f92a0a2d2026-09-30
  • R19-11rel:R19-11#82ff42682026-10-14
  • R20-11rel:R20-11#4c14c58b2026-10-14
  • R21-11rel:R21-11#4c14c58b2026-10-14
  • R22-11rel:R22-11#e631eabf2026-10-14
  • R23-11rel:R23-11#ebbb281a2026-10-14
  • R24-11rel:R24-11#ebbb281a2026-10-14
  • R25-11rel:R25-11#668083df2026-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