DEENESPTFRRUARHIKOZHNL

classe ara::crypto::cryp::CryptoProvider

[SWS_CRYPT_20700] Upstream: RS_CRYPTO_02305, RS_CRYPTO_02307, RS_CRYPTO_02401

class CryptoProvider {...};

CryptoProviderInterface representing one implementation of a set of cryptographic primitives with a key storage.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Forwarding-Header#include "ara/crypto/crypto_fwd.h"
Scopenamespace ara::crypto::cryp

Guide utilisateurGÉNÉRÉ PAR IA

Sert de fabrique centrale pour la création et la gestion de contextes cryptographiques, d'algorithmes et d'objets clés.
GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 0bf253450f85 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Sert de fabrique centrale pour la création et la gestion de contextes cryptographiques, d'algorithmes et d'objets clés.

La classe sert de fabrique centrale pour la mise à disposition de primitives cryptographiques ainsi que pour la création et la gestion de clés et de contextes cryptographiques ([SWS_CRYPT_20742], [SWS_CRYPT_20721]). Les instances ne sont ni copiables ni déplaçables et sont gérées via des pointeurs partagés ([SWS_CRYPT_20701], [SWS_CRYPT_41005]). Les erreurs telles que des algorithmes incompatibles ou des ressources épuisées sont renvoyées avec sûreté de typage via ara::core::Result ([SWS_CRYPT_30098]).

Contexte

La classe ara::crypto::cryp::CryptoProvider constitue l'interface centrale pour la fourniture d'opérations et d'algorithmes cryptographiques dans la pile AUTOSAR Adaptive. En tant que couche d'abstraction, elle regroupe des implémentations concrètes de primitives cryptographiques ainsi que l'accès aux clés et aux structures de stockage. Dans une architecture système typique, le CryptoProvider agit comme médiateur et fabrique entre la logique applicative, les mémoires de clés persistantes et les contextes de traitement spécialisés. Les applications demandent via le fournisseur des contextes spécialisés pour le chiffrement symétrique ([SWS_CRYPT_20742]), le chiffrement asymétrique ([SWS_CRYPT_20750], [SWS_CRYPT_20751]), les signatures numériques ([SWS_CRYPT_20756], [SWS_CRYPT_20757]), les fonctions de hachage ([SWS_CRYPT_20747]), l'authentification de messages ([SWS_CRYPT_20746]) ou les procédures d'échange de clés ([SWS_CRYPT_20758], [SWS_CRYPT_20752]). Parallèlement, le fournisseur interagit avec les KeySlot sous-jacents afin d'instancier les clés stockées ([SWS_CRYPT_20762], [SWS_CRYPT_20764]).

ProviderKontext Anwendung Anwendung CryptoProvider CryptoProvider Anwendung->CryptoProvider KeySlot KeySlot CryptoProvider->KeySlot CryptoContext CryptoContext CryptoProvider->CryptoContext CryptoObject CryptoObject CryptoProvider->CryptoObject

Diagramme de contexte : Intégration du CryptoProvider comme fabrique et intermédiaire entre l'application, les contextes et le KeySlot. Sources : [SWS_CRYPT_20742], [SWS_CRYPT_20756], [SWS_CRYPT_20762].

Cycle de vie

Les instances de CryptoProvider possèdent des sémantiques strictes concernant les opérations de copie et de déplacement : le constructeur de copie ([SWS_CRYPT_41005]) et le constructeur de déplacement ([SWS_CRYPT_41006]) ainsi que les opérateurs d'assignation correspondants ([SWS_CRYPT_30216], [SWS_CRYPT_30217]) sont explicitement supprimés (delete). Le cycle de vie d'une instance est donc habituellement géré via des références ou une propriété partagée, pour laquelle l'alias de type CryptoProvider::Sptr basé sur std::shared_ptr est défini ([SWS_CRYPT_20701]). Le nettoyage s'effectue via le destructeur virtuel standard ([SWS_CRYPT_20710]). Toutes les méthodes d'interface du fournisseur sont spécifiées comme sûres face aux exceptions (exception safe) et thread-safe (thread-safe), ce qui autorise un accès concurrent depuis plusieurs threads sans synchronisation externe au niveau du fournisseur.

Parcours d'utilisation

Un chemin d'utilisation typique comprend la mise à disposition des clés, l'instanciation du contexte cryptographique adapté, puis l'exécution des transformations. L'application génère ou importe d'abord le matériel de clé requis. Pour cela, CryptoProvider propose des méthodes telles que GenerateSymmetricKey ([SWS_CRYPT_20721]), GeneratePrivateKey ([SWS_CRYPT_20722]), ImportPublicKey ([SWS_CRYPT_20732]) ou le chargement depuis un KeySlot existant ([SWS_CRYPT_20762], [SWS_CRYPT_20763]). En fonction de l'algorithme, des autorisations par défaut peuvent être déterminées via GetDefaultAllowedUsage ([SWS_CRYPT_20955]). À l'étape suivante, l'application génère le contexte respectif via les méthodes de fabrique, par exemple un AuthCipherCtx ([SWS_CRYPT_20745]) ou un SignerPrivateCtx ([SWS_CRYPT_20756]). De plus, le fournisseur met à disposition des données aléatoires via GenerateRandomData ([SWS_CRYPT_30098]) ou une valeur de compteur strictement croissante via GetSecureCounter ([SWS_CRYPT_20098]). Pour un échange sécurisé, le matériel de clé peut être exporté de manière protégée au moyen de ExportSecuredKey ([SWS_CRYPT_20728]).

Génération de clés et de contextesApplicationCryptoProviderAuthCipherCtxGenerateSymmetricKey(algId, allowedUsage)Erzeugt SymmetricKey::SptrResult<SymmetricKey::Sptr>CreateAuthCipherCtx(algId)InstanziierungResult<AuthCipherCtx::Sptr>

Diagramme de séquence : Déroulement de la génération de clés et de la création d'un contexte Authenticated-Cipher. Sources : [SWS_CRYPT_20721], [SWS_CRYPT_20745].

Scénarios d'erreur

Les méthodes du CryptoProvider signalent les erreurs via le type de retour ara::core::Result avec des valeurs issues de ara::crypto::CryptoErrc. En cas d'échec des opérations, la sémantique de rollback s'applique. Parmi les scénarios d'erreur essentiels figurent :

  • Paramètres invalides ou incompatibles : Si un identifiant d'algorithme non pris en charge est transmis, les méthodes de création de contexte et de clé fournissent CryptoErrc::kUnknownIdentifier ([SWS_CRYPT_20741], [SWS_CRYPT_20742], [SWS_CRYPT_20721]). Si l'algorithme ne correspond pas à la primitive attendue (par ex. un algorithme asymétrique lors d'une demande de fonction de hachage) ou si les indicateurs d'utilisation ne correspondent pas à la configuration, CryptoErrc::kInvalidArgument ou CryptoErrc::kIncompatibleArguments survient ([SWS_CRYPT_20747], [SWS_CRYPT_20722], [SWS_CRYPT_50132]).
  • Erreurs de stockage de clé et de format : Lors du chargement via des KeySlot, un emplacement non garni entraîne CryptoErrc::kEmptyKeySlot, tandis que des types de clés étrangers ou incorrects déclenchent CryptoErrc::kIncompatibleObject ([SWS_CRYPT_20762], [SWS_CRYPT_20764]). Des formats de sérialisation erronés conduisent à CryptoErrc::kUnsupportedFormat ([SWS_CRYPT_50014], [SWS_CRYPT_20732]).
  • Goulots d'étranglement de ressources et de capacité : Si le générateur de nombres aléatoires est temporairement épuisé ou qu'une ressource matérielle est bloquée, CryptoErrc::kBusyResource est renvoyé ([SWS_CRYPT_30098], [SWS_CRYPT_20721], [SWS_CRYPT_20098]). Si les tampons de destination sont dimensionnés de façon insuffisante pour des données d'identification ou des exports de clés, l'interface signale CryptoErrc::kInsufficientCapacity ([SWS_CRYPT_50015], [SWS_CRYPT_20728]).
  • Fonctionnalités non prises en charge : Si des fonctions optionnelles telles que l'identification du fournisseur, le compteur sécurisé ou le RNG standard ne sont pas prises en charge par une implémentation concrète de fournisseur, l'erreur CryptoErrc::kUnsupported est signalée ([SWS_CRYPT_50015], [SWS_CRYPT_20098], [SWS_CRYPT_30098]).

Ce guide est exclusivement basé sur la définition d'interface de ara::crypto::cryp::CryptoProvider pour AUTOSAR R25-11.

Carte des membres

Diagramme de classes

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

G nara__crypto__cryp__CryptoProvider844 CryptoProvider + CryptoProvider() + operator=() + ~CryptoProvider() + CreateAuthCipherCtx() + CreateDecryptorPrivateCtx() + CreateEncryptorPublicCtx() + CreateHashFunctionCtx() + CreateKeyAgreementPrivateCtx() + CreateKeyDecapsulatorPrivateCtx() + CreateKeyDerivationFunctionCtx() + CreateKeyEncapsulatorPublicCtx() + CreateMessageAuthnCodeCtx() + CreateProtectedKeyImportCtx() + CreateRandomGeneratorCtx() + CreateSignerPrivateCtx() + CreateSymmetricCipherCtx() … 16 weitere

Vue détaillée

Sélectionnez une entrée dans le plan.

Constructeurs et destructeur

CryptoProvider fonction 2

Copy-Constructor.

Surcharges CryptoProvider 2
CryptoProvider (const CryptoProvider &)=delete; SWS_CRYPT_41005
CryptoProvider (CryptoProvider &&)=delete; SWS_CRYPT_41006

Destructor.

virtual ~CryptoProvider () noexcept=default;

Méthodes

Create a symmetric authenticated cipher context.

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create a hash function context.

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

Create a Random Number Generator (RNG) context.

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a signature private key context.

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

Create a signature verification public key context.

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Fill the provided output data buffer randomData with random data.

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Generate a new symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;
GetProviderID fonction

Obtain provider specific identification data.

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Get the required size of the output buffer for ID data used by GetProviderID.

virtual ara::core::Result< std::size_t > GetProviderIdSize () noexcept=0;

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Import a serialized private key.

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Load a private key from the provided KeySlot.

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;
LoadPublicKey fonction

Load a public key from the provided KeySlot.

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

Opérateurs

operator= fonction 2

Copy-assign another CryptoProvider to this instance.

Surcharges = 2
CryptoProvider & operator= (const CryptoProvider &other)=delete; SWS_CRYPT_30216
CryptoProvider & operator= (CryptoProvider &&other)=delete; SWS_CRYPT_30217

Alias de type

Sptr alias de type

Shared pointer of the CryptoProvider.

Documentation des méthodes

fonction CreateAuthCipherCtx [SWS_CRYPT_20745] Upstream: RS_CRYPTO_02207, RS_AP_00144

virtual ara::core::Result< AuthCipherCtx::Sptr > CreateAuthCipherCtx (AlgId algId) noexcept=0;

Create a symmetric authenticated cipher context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 11ce33c6da44 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateAuthCipherCtx sert à créer un contexte pour le chiffrement symétrique authentifié ([SWS_CRYPT_20745]). Elle est définie comme une interface virtuelle pure dans la classe ara::crypto::cryp::CryptoProvider et doit être incluse via le fichier d'en-tête ara/crypto/cryp/crypto_provider.h ([SWS_CRYPT_20745]).

Utilisation et sémantique

Le paramètre d'entrée transmis est algId, qui identifie l'algorithme cryptographique cible ([SWS_CRYPT_20745]). La fonction opère de manière synchrone et ne lève aucune exception (noexcept) ([SWS_CRYPT_20745]). En cas d'exécution réussie, elle renvoie un ara::core::Result avec un smart pointer vers l'instance créée AuthCipherCtx::Sptr ([SWS_CRYPT_20745]).

Gestion des erreurs

En cas d'erreur, un code d'erreur correspondant est renvoyé dans le ara::core::Result avec une sémantique de rollback ([SWS_CRYPT_20745]) :

  • ara::crypto::CryptoErrc::kInvalidArgument : lorsque algId ne spécifie pas d'algorithme pour un chiffrement de flux symétrique authentifié ([SWS_CRYPT_20745]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier : lorsqu'une valeur non prise en charge a été transmise pour algId ([SWS_CRYPT_20745]).

concurrence

L'appel de CreateAuthCipherCtx est thread-safe (thread-safe) et spécifié comme sûr vis-à-vis des exceptions (exception safe) ([SWS_CRYPT_20745]).

Ce texte a été généré automatiquement. Toutes les déclarations techniques sont étayées par des références aux spécifications.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric authenticated stream cipher
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20745
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20745@rel:R25-11#14bb6c5b
Content hash
14bb6c5b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20745
Status: valid/unmigrated Version: rel:R25-11#39b58f01 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_20745@rel:R25-11#39b58f01
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f26e531e2026-09-30
  • R19-11rel:R19-11#068856e02026-10-14
  • R20-11rel:R20-11#07ae27852026-10-14
  • R21-11rel:R21-11#35bf37702026-10-14
  • R22-11rel:R22-11#69962f862026-10-14
  • R23-11rel:R23-11#ca5aac9e2026-10-14
  • R24-11rel:R24-11#7d9792cd2026-10-14
  • R25-11rel:R25-11#39b58f012026-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

fonction CreateDecryptorPrivateCtx [SWS_CRYPT_20751] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< DecryptorPrivateCtx::Sptr > CreateDecryptor PrivateCtx (AlgId algId) noexcept=0;

Create a decryption private key context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 7d14bb93ecba Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode CreateDecryptorPrivateCtx de l'interface ara::crypto::cryp::CryptoProvider sert à créer un contexte pour le déchiffrement asymétrique à l'aide d'une clé privée conformément à [SWS_CRYPT_20751]. Comme paramètre d'entrée, la fonction attend algId, qui définit l'identifiant de l'algorithme de chiffrement ou de déchiffrement asymétrique souhaité. Interprétation : l'appel devrait être exécuté de manière synchrone, étant donné que la signature renvoie directement un ara::core::Result qui, en cas de succès, contient un smart pointer vers le contexte créé (DecryptorPrivateCtx::Sptr) [SWS_CRYPT_20751]. Question Q-45d1c4a1b2133f4c (ouverte)

Gestion des erreurs

Si le contexte ne peut pas être créé, l'erreur est acheminée dans le ara::core::Result renvoyé. Si une valeur non prise en charge a été transmise pour le paramètre algId, cela se traduit spécifiquement par le code d'erreur ara::crypto::CryptoErrc::kUnknownIdentifier avec une sémantique de rollback [SWS_CRYPT_20751].

Concurrence et restrictions

La fonction est définie comme noexcept et garantit la sécurité vis-à-vis des exceptions (exception safe) [SWS_CRYPT_20751]. Pour l'accès simultané depuis plusieurs threads, la méthode est spécifiée comme thread-safe [SWS_CRYPT_20751]. Étant donné que la signature dans l'en-tête ara/crypto/cryp/crypto_provider.h est déclarée comme méthode virtuelle pure, la réalisation concrète incombe à l'implémentation du fournisseur respectif [SWS_CRYPT_20751].

Cette note d'utilisation a été générée automatiquement et repose exclusivement sur les données de spécification de la version AUTOSAR Adaptive R25-11.

Guide de l'implémenteur à venir (complexité I1)

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20751
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20751@rel:R25-11#b520e3d2
Content hash
b520e3d2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20751
Status: valid/unmigrated Version: rel:R25-11#9ad4a16f 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_20751@rel:R25-11#9ad4a16f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d0572a212026-09-30
  • R19-11rel:R19-11#958150e62026-10-14
  • R20-11rel:R20-11#db1918e82026-10-14
  • R21-11rel:R21-11#d03527eb2026-10-14
  • R22-11rel:R22-11#19548e8e2026-10-14
  • R23-11rel:R23-11#b4b720e52026-10-14
  • R24-11rel:R24-11#00b7d5452026-10-14
  • R25-11rel:R25-11#9ad4a16f2026-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

fonction CreateEncryptorPublicCtx [SWS_CRYPT_20750] Upstream: RS_CRYPTO_02202, RS_AP_00144

virtual ara::core::Result< EncryptorPublicCtx::Sptr > CreateEncryptor PublicCtx (AlgId algId) noexcept=0;

Create an encryption public key context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : f47db9d84d9a Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode d'interface virtuelle pure CreateEncryptorPublicCtx appartient à la classe ara::crypto::cryp::CryptoProvider et est déclarée via le fichier d'en-tête ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20750]. Son rôle consiste à instancier un nouveau contexte pour les opérations de chiffrement asymétrique avec une clé publique [SWS_CRYPT_20750].

Utilisation : l'appel s'effectue de manière synchrone en spécifiant le paramètre algId de type AlgId, qui définit l'identifiant de l'algorithme de chiffrement ou de déchiffrement asymétrique souhaité [SWS_CRYPT_20750]. La méthode renvoie le résultat dans un ara::core::Result qui, en cas de succès, fournit un smart pointer de type EncryptorPublicCtx::Sptr vers le contexte créé [SWS_CRYPT_20750].

Gestion des erreurs : pour autant que l'argument algId contienne une valeur d'algorithme non prise en charge, l'appel échoue et renvoie dans le ara::core::Result le code d'erreur ara::crypto::CryptoErrc::kUnknownIdentifier [SWS_CRYPT_20750]. Pour ce cas d'erreur, une sémantique de rollback explicite est spécifiée [SWS_CRYPT_20750].

Concurrence et sécurité vis-à-vis des exceptions : l'interface est déclarée comme noexcept, est considérée comme sûre vis-à-vis des exceptions (exception safe) et est expressément spécifiée comme thread-safe (thread-safe) [SWS_CRYPT_20750].

Ce texte a été rédigé par une IA sur la base de la spécification.

Guide de l'implémenteur à venir (complexité I1)

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target asymmetric encryption/decryption algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20750
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20750@rel:R25-11#08c493eb
Content hash
08c493eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20750
Status: valid/unmigrated Version: rel:R25-11#645c8167 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_20750@rel:R25-11#645c8167
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8b735d082026-09-30
  • R19-11rel:R19-11#245f8fcf2026-10-14
  • R20-11rel:R20-11#56691f5f2026-10-14
  • R21-11rel:R21-11#f1e172112026-10-14
  • R22-11rel:R22-11#e5ba293e2026-10-14
  • R23-11rel:R23-11#128841ba2026-10-14
  • R24-11rel:R24-11#e48790ba2026-10-14
  • R25-11rel:R25-11#645c81672026-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

fonction CreateHashFunctionCtx [SWS_CRYPT_20747] Upstream: RS_CRYPTO_02205, RS_AP_00144

virtual ara::core::Result< HashFunctionCtx::Sptr > CreateHashFunction Ctx (AlgId algId) noexcept=0;

Create a hash function context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : d5d380ddf0c0 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateHashFunctionCtx sert à instancier un contexte de hachage cryptographique ([SWS_CRYPT_20747]). Elle est mise à disposition sous la forme d'une interface virtuelle pure de la classe ara::crypto::cryp::CryptoProvider via l'en-tête ara/crypto/cryp/crypto_provider.h.

Utilisation et paramètres

L'appel s'effectue de manière synchrone et attend comme paramètre d'entrée algId (de type AlgId), qui identifie l'algorithme cryptographique souhaité ([SWS_CRYPT_20747]). Comme valeur de retour, la fonction fournit un ara::core::Result<HashFunctionCtx::Sptr> qui, en cas de succès, contient un smart pointer vers le contexte créé.

Gestion des erreurs

Si la création échoue, le ara::core::Result contient un code d'erreur correspondant avec une sémantique de rollback ([SWS_CRYPT_20747]) :

  • ara::crypto::CryptoErrc::kInvalidArgument : est renvoyé lorsque la algId transmise est spécifiée pour un type d'algorithme autre qu'une fonction de hachage ([SWS_CRYPT_20747]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier : survient si un identifiant non pris en charge a été transmis pour algId ([SWS_CRYPT_20747]).

Concurrence et restrictions

La fonction est déclarée comme noexcept et spécifiée comme sûre vis-à-vis des exceptions (« exception safe ») ([SWS_CRYPT_20747]). De plus, l'appel est thread-safe (« thread-safe »), de sorte que des appels simultanés depuis plusieurs threads sur la même instance de CryptoProvider sont autorisés ([SWS_CRYPT_20747]).

Ce texte a été généré par une IA sur la base de la spécification R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from hash function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20747
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20747@rel:R25-11#4da28601
Content hash
4da28601
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20747
Status: valid/unmigrated Version: rel:R25-11#a65adf82 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_20747@rel:R25-11#a65adf82
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f2f9f89e2026-09-30
  • R19-11rel:R19-11#27d8bfbe2026-10-14
  • R20-11rel:R20-11#8ae2344a2026-10-14
  • R21-11rel:R21-11#5db0d9fb2026-10-14
  • R22-11rel:R22-11#f8120b092026-10-14
  • R23-11rel:R23-11#cd6826a42026-10-14
  • R24-11rel:R24-11#8ca5ca262026-10-14
  • R25-11rel:R25-11#a65adf822026-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

fonction CreateKeyAgreementPrivateCtx [SWS_CRYPT_20758] Upstream: RS_CRYPTO_02104, RS_AP_00144

virtual ara::core::Result< KeyAgreementPrivateCtx::Sptr > CreateKey AgreementPrivateCtx (AlgId algId) noexcept=0;

Create a key-agreement private key context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : f0aaacbed75d Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateKeyAgreementPrivateCtx de la classe ara::crypto::cryp::CryptoProvider sert à créer un contexte de clé privée pour les accords de clés (KeyAgreementPrivateCtx) conformément à [SWS_CRYPT_20758]. La déclaration est fournie via le fichier d'en-tête #include "ara/crypto/cryp/crypto_provider.h".

Utilisation et appel

Comme paramètre d'entrée, la méthode synchrone attend l'identifiant algId de type AlgId, qui spécifie l'algorithme cryptographique souhaité pour le key-agreement. Comme valeur de retour, la fonction renvoie un ara::core::Result<KeyAgreementPrivateCtx::Sptr> qui encapsule, en cas de succès, un pointeur intelligent vers l'instance de contexte nouvellement créée [SWS_CRYPT_20758].

Gestion des erreurs

Si l'instanciation échoue, le ara::core::Result retourné contient un code d'erreur avec sémantique de rollback [SWS_CRYPT_20758] :

  • ara::crypto::CryptoErrc::kInvalidArgument : Se produit si l'argument algId indique un algorithme cryptographique qui diffère des procédures d'accord de clés.
  • ara::crypto::CryptoErrc::kUnknownIdentifier : Est retourné si l'identifiant algId présente une valeur non prise en charge.

Concurrence et sécurité

L'interface est déclarée comme noexcept et définie comme sûre du point de vue des exceptions (exception safe). De plus, l'appel est spécifié comme sûr du point de vue des threads (thread-safe), de sorte que les appels simultanés sur la même instance de CryptoProvider sont autorisés [SWS_CRYPT_20758].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification d'AUTOSAR R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target key-agreement crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key-agreement
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20758
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20758@rel:R25-11#f4cfb456
Content hash
f4cfb456
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20758
Status: valid/unmigrated Version: rel:R25-11#768fe78c 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_20758@rel:R25-11#768fe78c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#64be1dbd2026-09-30
  • R19-11rel:R19-11#b377ec0f2026-10-14
  • R20-11rel:R20-11#8e18e3592026-10-14
  • R21-11rel:R21-11#d272fd992026-10-14
  • R22-11rel:R22-11#4a3ac1a22026-10-14
  • R23-11rel:R23-11#ad3845082026-10-14
  • R24-11rel:R24-11#c10793c52026-10-14
  • R25-11rel:R25-11#768fe78c2026-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

fonction CreateKeyDecapsulatorPrivateCtx [SWS_CRYPT_20753] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyDecapsulatorPrivateCtx::Sptr > CreateKey DecapsulatorPrivateCtx (AlgId algId) noexcept=0;

Create a key-decapsulator private context of a Key Encapsulation Mechanism (KEM).

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 29715a46f6b0 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode CreateKeyDecapsulatorPrivateCtx de l'interface ara::crypto::cryp::CryptoProvider sert à la création d'un contexte privé de décapsulation de clé pour un mécanisme d'encapsulation de clé (KEM) [SWS_CRYPT_20753]. Elle attend comme paramètre d'entrée algId de type AlgId, qui identifie l'algorithme cryptographique KEM souhaité [SWS_CRYPT_20753]. La fonction opère de manière synchrone et renvoie le résultat dans un ara::core::Result<KeyDecapsulatorPrivateCtx::Sptr> qui, en cas de succès, encapsule un pointeur intelligent vers le contexte nouvellement instancié [SWS_CRYPT_20753].

Gestion des erreurs

Si une erreur survient lors de la création du contexte, celle-ci est signalée via le ara::core::Result avec sémantique de rollback [SWS_CRYPT_20753] :

  • ara::crypto::CryptoErrc::kInvalidArgument : l'argument algId spécifie un algorithme cryptographique qui n'est pas un mécanisme KEM asymétrique [SWS_CRYPT_20753].
  • ara::crypto::CryptoErrc::kUnknownIdentifier : l'argument algId présente une valeur non prise en charge [SWS_CRYPT_20753].

Concurrence et sécurité d'exécution

L'interface est déclarée comme noexcept et spécifiée comme sûre vis-à-vis des exceptions (exception safe) [SWS_CRYPT_20753]. De plus, l'exécution est conçue pour être thread-safe (thread-safe) [SWS_CRYPT_20753].

Cette note d'utilisation est basée sur la spécification AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20753
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20753@rel:R25-11#5a75c6b3
Content hash
5a75c6b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20753
Status: valid/unmigrated Version: rel:R25-11#2a254e1e 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_20753@rel:R25-11#2a254e1e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce72d5082026-09-30
  • R19-11rel:R19-11#8ce1bc4c2026-10-14
  • R20-11rel:R20-11#c151a2bd2026-10-14
  • R21-11rel:R21-11#d9e99bf42026-10-14
  • R22-11rel:R22-11#34ef693d2026-10-14
  • R23-11rel:R23-11#fc9a47332026-10-14
  • R24-11rel:R24-11#8a7533962026-10-14
  • R25-11rel:R25-11#2a254e1e2026-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

fonction CreateKeyDerivationFunctionCtx [SWS_CRYPT_20748] Upstream: RS_CRYPTO_02103, RS_AP_00144

virtual ara::core::Result< KeyDerivationFunctionCtx::Sptr > CreateKey DerivationFunctionCtx (AlgId algId) noexcept=0;

Create a key derivation function context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : a0b8a7f1dfa2 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateKeyDerivationFunctionCtx de la classe ara::crypto::cryp::CryptoProvider sert à la création d'un contexte d'exécution pour les fonctions de dérivation de clé ([SWS_CRYPT_20748]). L'identifiant algId de type AlgId est transmis en tant que paramètre d'entrée, lequel détermine l'algorithme cryptographique cible souhaité. L'appel synchrone renvoie un ara::core::Result qui, lors d'une exécution réussie, fournit un pointeur intelligent sur le contexte créé (KeyDerivationFunctionCtx::Sptr) ([SWS_CRYPT_20748]).

Si une erreur survient lors de l'instanciation, le résultat est renvoyé avec un code d'erreur correspondant sous sémantique de rollback ([SWS_CRYPT_20748]) :

  • ara::crypto::CryptoErrc::kInvalidArgument : l'argument algId spécifie un algorithme cryptographique qui ne constitue pas une fonction de dérivation de clé ([SWS_CRYPT_20748]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier : l'identifiant transmis algId possède une valeur non prise en charge ([SWS_CRYPT_20748]).

L'interface est déclarée comme fonction virtuelle pure, désignée comme noexcept et classée de manière obligatoire comme thread-safe ainsi que exception safe ([SWS_CRYPT_20748]). L'intégration s'effectue via le fichier d'en-tête #include "ara/crypto/cryp/crypto_provider.h". La fonction répond aux exigences de niveau supérieur [RS_CRYPTO_02103] et [RS_AP_00144].

Cette note d'utilisation a été générée automatiquement par une IA et se base sur les spécifications de la plateforme AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from key derivation function
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20748
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20748@rel:R25-11#b1d2cdf7
Content hash
b1d2cdf7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20748
Status: valid/unmigrated Version: rel:R25-11#87a97504 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_20748@rel:R25-11#87a97504
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ce0d4c1b2026-09-30
  • R19-11rel:R19-11#529d87c72026-10-14
  • R20-11rel:R20-11#69f8e53c2026-10-14
  • R21-11rel:R21-11#6c13fa4d2026-10-14
  • R22-11rel:R22-11#38efa8462026-10-14
  • R23-11rel:R23-11#bad3069e2026-10-14
  • R24-11rel:R24-11#248bba532026-10-14
  • R25-11rel:R25-11#87a975042026-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

fonction CreateKeyEncapsulatorPublicCtx [SWS_CRYPT_20752] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02209, RS_AP_00144

virtual ara::core::Result< KeyEncapsulatorPublicCtx::Sptr > CreateKey EncapsulatorPublicCtx (AlgId algId) noexcept=0;

Create a key-encapsulator public context of a Key Encapsulation Mechanism (KEM).

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : efe36f596de1 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode CreateKeyEncapsulatorPublicCtx de l'interface ara::crypto::cryp::CryptoProvider sert à créer un contexte public pour un Key Encapsulation Mechanism (KEM) [SWS_CRYPT_20752]. Pour cela, le fichier d'en-tête #include "ara/crypto/cryp/crypto_provider.h" doit être inclus [SWS_CRYPT_20752]. L'appel s'effectue de manière synchrone : le paramètre d'entrée transmis est algId, qui spécifie l'algorithme cryptographique cible du KEM. En cas d'exécution réussie, la méthode renvoie un smart pointer vers le contexte créé (KeyEncapsulatorPublicCtx::Sptr), encapsulé dans un ara::core::Result [SWS_CRYPT_20752].

Gestion des erreurs

Si une erreur survient pendant la création, une sémantique de rollback s'applique et le ara::core::Result contient un code d'erreur spécifique issu de ara::crypto::CryptoErrc [SWS_CRYPT_20752] :

  • ara::crypto::CryptoErrc::kInvalidArgument : est renvoyé lorsque l'argument algId désigne un algorithme cryptographique qui n'est pas un KEM asymétrique [SWS_CRYPT_20752].
  • ara::crypto::CryptoErrc::kUnknownIdentifier : est signalé si l'argument algId présente une valeur non prise en charge [SWS_CRYPT_20752].

Concurrence et sécurité

La fonction d'interface est déclarée avec noexcept et classifiée comme sûre vis-à-vis des exceptions (exception safe) ainsi que thread-safe (thread-safe) [SWS_CRYPT_20752]. Elle peut ainsi être appelée en toute sécurité depuis des contextes concurrents sans synchronisation externe [SWS_CRYPT_20752].

Cette note d'utilisation est basée sur la spécification AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target KEM crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from asymmetric KEM
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20752
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20752@rel:R25-11#ce7ba841
Content hash
ce7ba841
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20752
Status: valid/unmigrated Version: rel:R25-11#80eb6ba8 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_20752@rel:R25-11#80eb6ba8
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eb9642562026-09-30
  • R19-11rel:R19-11#c59c43e42026-10-14
  • R20-11rel:R20-11#4d2fccee2026-10-14
  • R21-11rel:R21-11#aecc69b32026-10-14
  • R22-11rel:R22-11#9fd887092026-10-14
  • R23-11rel:R23-11#2013b4922026-10-14
  • R24-11rel:R24-11#048a75932026-10-14
  • R25-11rel:R25-11#80eb6ba82026-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

fonction CreateMessageAuthnCodeCtx [SWS_CRYPT_20746] Upstream: RS_CRYPTO_02203, RS_AP_00144

virtual ara::core::Result< MessageAuthnCodeCtx::Sptr > CreateMessage AuthnCodeCtx (AlgId algId) noexcept=0;

Create a symmetric message authentication code context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 9f61171ea583 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode virtuelle pure CreateMessageAuthnCodeCtx de l'interface ara::crypto::cryp::CryptoProvider nécessite le fichier d'en-tête ara/crypto/cryp/crypto_provider.h et sert à la création synchrone d'un contexte pour les Message Authentication Codes symétriques [SWS_CRYPT_20746]. Comme valeur d'entrée, la fonction accepte le paramètre algId de type AlgId, qui spécifie l'algorithme cryptographique cible [SWS_CRYPT_20746]. En cas d'exécution réussie, la méthode renvoie un ara::core::Result<MessageAuthnCodeCtx::Sptr> encapsulant un smart pointer vers l'instance de contexte nouvellement instanciée [SWS_CRYPT_20746].

Gestion des erreurs

En cas d'erreur, l'objet Result renvoyé fournit des codes d'erreur spécifiques avec une sémantique de rollback [SWS_CRYPT_20746] :

  • ara::crypto::CryptoErrc::kInvalidArgument : l'argument algId spécifie un algorithme cryptographique qui n'est pas un Message Authentication Code symétrique [SWS_CRYPT_20746].
  • ara::crypto::CryptoErrc::kUnknownIdentifier : un identifiant inconnu ou non pris en charge a été transmis pour l'argument algId [SWS_CRYPT_20746].

Concurrence et sécurité d'exécution

L'interface est dotée du spécificateur noexcept et garantit une sécurité totale vis-à-vis des exceptions (exception safe) [SWS_CRYPT_20746]. En outre, la fonction est explicitement spécifiée comme thread-safe (thread-safe), de sorte que les appels peuvent être effectués en parallèle et sans synchronisation externe depuis des threads concurrents [SWS_CRYPT_20746].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from symmetric message authentication code
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20746
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20746@rel:R25-11#bc005d8f
Content hash
bc005d8f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20746
Status: valid/unmigrated Version: rel:R25-11#957c6291 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_20746@rel:R25-11#957c6291
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#37f876a32026-09-30
  • R19-11rel:R19-11#e9adf02f2026-10-14
  • R20-11rel:R20-11#d6c0c1ec2026-10-14
  • R21-11rel:R21-11#3670d4772026-10-14
  • R22-11rel:R22-11#178c72202026-10-14
  • R23-11rel:R23-11#2108bb852026-10-14
  • R24-11rel:R24-11#7cfcb5e32026-10-14
  • R25-11rel:R25-11#957c62912026-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

fonction CreateProtectedKeyImportCtx [SWS_CRYPT_50017] Upstream: RS_CRYPTO_02105

virtual ara::core::Result< ProtectedKeyImportCtx::Sptr > Create ProtectedKeyImportCtx (AlgId algId) noexcept=0;

The interface shall create a protected key import context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : cc2e3e31c614 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

L’interface CreateProtectedKeyImportCtx de la classe ara::crypto::cryp::CryptoProvider (définie dans ara/crypto/cryp/crypto_provider.h) sert à la création synchrone d’un contexte pour l’importation protégée de clés ([SWS_CRYPT_50017]). L’identifiant de l’algorithme de wrapping souhaité est transmis via le paramètre d’entrée algId ([SWS_CRYPT_50017]). En cas d’instanciation réussie, la méthode renvoie un ara::core::Result fournissant un pointeur intelligent ProtectedKeyImportCtx::Sptr vers le contexte généré ([SWS_CRYPT_50017]).

Gestion des erreurs

Si la création échoue, la méthode renvoie dans le ara::core::Result un code d’erreur avec sémantique de rollback ([SWS_CRYPT_50017]) :

  • ara::crypto::CryptoErrc::kInvalidArgument : survient lorsque l’algorithme cryptographique spécifié par algId n’est pas pris en charge pour le wrapping par le CryptoProvider ([SWS_CRYPT_50017]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier : est signalé lorsque l’argument algId contient une valeur d’identifiant inconnue ou non prise en charge ([SWS_CRYPT_50017]).

Concurrence et restrictions

La méthode virtuelle pure est déclarée comme noexcept, offre une sécurité vis-à-vis des exceptions et est explicitement spécifiée comme thread-safe ([SWS_CRYPT_50017]). Elle peut ainsi être appelée en parallèle depuis plusieurs threads sans synchronisation externe ([SWS_CRYPT_50017]).

Cette note d'utilisation a été générée automatiquement sur la base de la spécification d'AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the wrapping algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm that is not supported by this CryptoProvider for wrapping
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50017
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50017@rel:R25-11#976199a7
Content hash
976199a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50017
Status: valid/unmigrated Version: rel:R25-11#59ce7c71 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_50017@rel:R25-11#59ce7c71
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

fonction CreateRandomGeneratorCtx [SWS_CRYPT_20741] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< RandomGeneratorCtx::Sptr > CreateRandom GeneratorCtx (AlgId algId) noexcept=0;

Create a Random Number Generator (RNG) context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 64bbceaa10df Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateRandomGeneratorCtx sert à créer un contexte pour générateurs de nombres aléatoires (Random Number Generator, RNG) au sein de la classe ara::crypto::cryp::CryptoProvider [SWS_CRYPT_20741].

Utilisation et contexte d'appel

La fonction est appelée de manière synchrone et nécessite le fichier d'en-tête ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20741] :

  • Paramètres : algId de type AlgId est transmis, ce qui identifie l'algorithme RNG souhaité. Si aucune algId spécifique n'est spécifiée, la méthode fournit le RNG par défaut [SWS_CRYPT_20741].
  • Valeur de retour : un ara::core::Result<RandomGeneratorCtx::Sptr> qui, en cas de succès, contient un pointeur partagé vers l'instance créée de RandomGeneratorCtx [SWS_CRYPT_20741].

Gestion des erreurs

La méthode ne lève pas d'exceptions (noexcept) et est spécifiée comme sûre vis-à-vis des exceptions [SWS_CRYPT_20741]. Si l'opération échoue, le ara::core::Result fournit un code d'erreur :

  • ara::crypto::CryptoErrc::kUnknownIdentifier : survient lorsque l'argument algId présente une valeur non prise en charge (avec sémantique de rollback) [SWS_CRYPT_20741].

Concurrence et restrictions

La méthode est classifiée comme thread-safe (thread-safe), de sorte que les appels parallèles via la même instance du CryptoProvider sont autorisés [SWS_CRYPT_20741].

Cette note d'utilisation a été générée automatiquement et repose exclusivement sur les données de spécification d'AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of target RNG algorithm. If no algId is given, the default RNG is returned

Rückgabewert

TypBeschreibung
ara::core::Result<RandomGeneratorCtx::Sptr >result containing a shared pointer to the context or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20741
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20741@rel:R25-11#187e80ae
Content hash
187e80ae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20741
Status: valid/unmigrated Version: rel:R25-11#d4f2c255 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_20741@rel:R25-11#d4f2c255
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a3510ae92026-09-30
  • R19-11rel:R19-11#60ee10c72026-10-14
  • R20-11rel:R20-11#0569ff502026-10-14
  • R21-11rel:R21-11#32b16cb02026-10-14
  • R22-11rel:R22-11#c44c5e5c2026-10-14
  • R23-11rel:R23-11#e3fa37f52026-10-14
  • R24-11rel:R24-11#5e17e1572026-10-14
  • R25-11rel:R25-11#d4f2c2552026-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

fonction CreateSignerPrivateCtx [SWS_CRYPT_20756] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< SignerPrivateCtx::Sptr > CreateSigner PrivateCtx (AlgId algId) noexcept=0;

Create a signature private key context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : b425000c991d Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode CreateSignerPrivateCtx de la classe ara::crypto::cryp::CryptoProvider sert à créer un contexte pour des opérations de signature avec une clé privée ([SWS_CRYPT_20756]).

Utilisation et paramètres : l'appel nécessite l'inclusion du fichier d'en-tête ara/crypto/cryp/crypto_provider.h. Le paramètre d'entrée algId permet de spécifier l'algorithme cryptographique cible de signature. En cas de succès, la fonction fournit via le type de retour ara::core::Result<SignerPrivateCtx::Sptr> un smart pointer vers l'instance de contexte créée ([SWS_CRYPT_20756]). Interprétation : la méthode renvoyant directement un ara::core::Result, l'appel devrait être exécuté de manière synchrone. Question Q-8480f3cf5cef5f49 (ouverte)

Concurrence et sécurité : la méthode est spécifiée comme thread-safe (thread-safe) ainsi que sûre vis-à-vis des exceptions (exception safe) et est déclarée avec noexcept ([SWS_CRYPT_20756]). Elle peut ainsi être appelée sans synchronisation supplémentaire depuis des contextes concurrents.

Gestion des erreurs : en cas d'erreur, le résultat fournit un code d'erreur de type ara::crypto::CryptoErrc avec une sémantique de rollback ([SWS_CRYPT_20756]) :

  • ara::crypto::CryptoErrc::kInvalidArgument : survient lorsque l'argument algId indique un algorithme cryptographique différent d'une signature avec clé privée ([SWS_CRYPT_20756]).
  • ara::crypto::CryptoErrc::kUnknownIdentifier : survient si algId contient une valeur inconnue ou non prise en charge ([SWS_CRYPT_20756]).

Ce texte a été généré par une IA et sert de guide d'orientation. La spécification AUTOSAR fait foi.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from private key signature
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20756
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20756@rel:R25-11#32eef841
Content hash
32eef841
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20756
Status: valid/unmigrated Version: rel:R25-11#cc9f565a 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_20756@rel:R25-11#cc9f565a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cd4471752026-09-30
  • R19-11rel:R19-11#1edbf4c72026-10-14
  • R20-11rel:R20-11#a2cfe2c82026-10-14
  • R21-11rel:R21-11#54e185f52026-10-14
  • R22-11rel:R22-11#2a8de2322026-10-14
  • R23-11rel:R23-11#83e55d092026-10-14
  • R24-11rel:R24-11#0df4e6d12026-10-14
  • R25-11rel:R25-11#cc9f565a2026-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

fonction CreateSymmetricCipherCtx [SWS_CRYPT_20742] Upstream: RS_CRYPTO_02201

virtual ara::core::Result< SymmetricCipherCtx::Sptr > CreateSymmetric CipherCtx (AlgId algId) noexcept=0;

Create a symmetric cipher context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : e2de1e3ea197 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode virtuelle CreateSymmetricCipherCtx de l'interface ara::crypto::cryp::CryptoProvider sert à créer un contexte pour les opérations de chiffrement symétrique ([SWS_CRYPT_20742]). Elle est incluse via le fichier d'en-tête #include "ara/crypto/cryp/crypto_provider.h" ([SWS_CRYPT_20742]).

Comme paramètre d'entrée, la fonction attend algId de type AlgId, qui indique l'identifiant de l'algorithme cryptographique cible souhaité ([SWS_CRYPT_20742]). L'appel s'effectue de manière synchrone et renvoie en résultat un ara::core::Result<SymmetricCipherCtx::Sptr> qui, en cas de succès, met à disposition un smart pointer vers l'instance de contexte nouvellement instanciée ([SWS_CRYPT_20742]).

Gestion des erreurs

Si la création échoue, le ara::core::Result renvoyé contient un code d'erreur correspondant ([SWS_CRYPT_20742]) :

  • ara::crypto::CryptoErrc::kUnknownIdentifier : est signalé avec une sémantique de rollback si la valeur transmise pour algId référence un algorithme non pris en charge ([SWS_CRYPT_20742]).

Concurrence et restrictions

La fonction est déclarée comme noexcept et explicitement spécifiée comme sûre vis-à-vis des exceptions (exception safe) ([SWS_CRYPT_20742]). De plus, l'appel est thread-safe (thread-safe), de sorte que les créations de contexte parallèles via la même instance de CryptoProvider sont autorisées ([SWS_CRYPT_20742]).

Cette note d'utilisation a été générée automatiquement. Toutes les informations reposent exclusivement sur l'état de spécification AUTOSAR R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if AlgId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20742
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20742@rel:R25-11#cd22c2ba
Content hash
cd22c2ba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20742
Status: valid/unmigrated Version: rel:R25-11#c3456bc2 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_20742@rel:R25-11#c3456bc2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#72dd17572026-09-30
  • R19-11rel:R19-11#abecadca2026-10-14
  • R20-11rel:R20-11#c7ef4de02026-10-14
  • R21-11rel:R21-11#7efa8e4d2026-10-14
  • R22-11rel:R22-11#a4f2f60c2026-10-14
  • R23-11rel:R23-11#8bfbe22a2026-10-14
  • R24-11rel:R24-11#bac03a522026-10-14
  • R25-11rel:R25-11#c3456bc22026-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

fonction CreateSymmetricKeyWrapperCtx [SWS_CRYPT_20743] Upstream: RS_CRYPTO_02104, RS_CRYPTO_02208

virtual ara::core::Result< SymmetricKeyWrapperCtx::Sptr > Create SymmetricKeyWrapperCtx (AlgId algId) noexcept=0;

Create a symmetric key-wrap algorithm context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 81927eb57ee6 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode CreateSymmetricKeyWrapperCtx de la classe ara::crypto::cryp::CryptoProvider sert à la génération d’un contexte pour des algorithmes de key-wrap symétriques ([SWS_CRYPT_20743]). algId, qui identifie de manière univoque l’algorithme cryptographique cible ([SWS_CRYPT_20743]), est transmis en paramètre d’entrée. L’appel est synchrone et renvoie, en cas de succès, un ara::core::Result qui encapsule un pointeur intelligent vers le contexte créé (SymmetricKeyWrapperCtx::Sptr) ([SWS_CRYPT_20743]).

Gestion des erreurs

Si la création échoue, la fonction renvoie l’objet d’erreur au sein du ara::core::Result ([SWS_CRYPT_20743]) :

  • ara::crypto::CryptoErrc::kUnknownIdentifier : est signalé lorsque l’argument algId présente une valeur non prise en charge ; les sémantiques de rollback s’appliquent alors ([SWS_CRYPT_20743]).

Concurrence et restrictions

L’interface est déclarée comme noexcept, est considérée comme sûre vis-à-vis des exceptions (exception safe) et est thread-safe ([SWS_CRYPT_20743]). Elle peut donc être appelée en toute sécurité depuis des contextes concurrents, pour autant que la algId fournie soit prise en charge par le CryptoProvider sous-jacent ([SWS_CRYPT_20743]).

Cette note d’utilisation a été générée automatiquement et repose exclusivement sur les données de spécification issues d’AUTOSAR R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20743
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20743@rel:R25-11#ec81973f
Content hash
ec81973f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20743
Status: valid/unmigrated Version: rel:R25-11#f6ffee2c 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_20743@rel:R25-11#f6ffee2c
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7e4d7cb12026-09-30
  • R19-11rel:R19-11#88c705562026-10-14
  • R20-11rel:R20-11#59ed5d162026-10-14
  • R21-11rel:R21-11#4c2a43392026-10-14
  • R22-11rel:R22-11#178879012026-10-14
  • R23-11rel:R23-11#2ae2b3f42026-10-14
  • R24-11rel:R24-11#2c2d21382026-10-14
  • R25-11rel:R25-11#f6ffee2c2026-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

fonction CreateVerifierPublicCtx [SWS_CRYPT_20757] Upstream: RS_CRYPTO_02204, RS_AP_00144

virtual ara::core::Result< VerifierPublicCtx::Sptr > CreateVerifier PublicCtx (AlgId algId) noexcept=0;

Create a signature verification public key context.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 6459db29afbf Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation et contexte d'appel

La méthode virtuelle pure CreateVerifierPublicCtx de la classe ara::crypto::cryp::CryptoProvider est déclarée via le fichier d'en-tête ara/crypto/cryp/crypto_provider.h [SWS_CRYPT_20757]. Elle sert à la création synchrone d'un contexte de vérification de signature avec des clés publiques (vérification de signature à clé publique) [SWS_CRYPT_20757].

L'appelant transmet via le paramètre algId (type AlgId) l'identifiant de l'algorithme de signature cryptographique souhaité [SWS_CRYPT_20757]. En cas de succès, la fonction renvoie un ara::core::Result contenant un smart pointer vers le contexte de vérification créé (VerifierPublicCtx::Sptr) [SWS_CRYPT_20757].

Gestion des erreurs

En cas d'erreur, une sémantique de rollback s'applique, et le ara::core::Result résultant achemine un code d'erreur correspondant [SWS_CRYPT_20757] :

  • ara::crypto::CryptoErrc::kInvalidArgument : est signalé lorsque l'argument algId désigne un algorithme cryptographique qui n'est pas prévu pour la vérification de signature avec des clés publiques [SWS_CRYPT_20757].
  • ara::crypto::CryptoErrc::kUnknownIdentifier : Signalé si un identifiant inconnu ou non pris en charge a été transmis pour algId [SWS_CRYPT_20757].

Concurrence et restrictions

La méthode est déclarée comme noexcept, totalement sûre du point de vue des exceptions (exception safe) et explicitement spécifiée comme sûre du point de vue des threads (thread-safe) [SWS_CRYPT_20757]. Les appels simultanés provenant de plusieurs contextes d'exécution sont par conséquent autorisés sans synchronisation externe.

Cette note d'utilisation est basée sur la spécification de la version AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdidentifier of the target signature crypto algorithm

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if algId argument specifies a crypto algorithm different from public key signature verification
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId argument has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20757
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20757@rel:R25-11#26032c9f
Content hash
26032c9f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20757
Status: valid/unmigrated Version: rel:R25-11#f204fd55 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_20757@rel:R25-11#f204fd55
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8a5c49002026-09-30
  • R19-11rel:R19-11#37697b0f2026-10-14
  • R20-11rel:R20-11#73044a492026-10-14
  • R21-11rel:R21-11#0115fe5b2026-10-14
  • R22-11rel:R22-11#9dc931fa2026-10-14
  • R23-11rel:R23-11#a976f9ff2026-10-14
  • R24-11rel:R24-11#57fb002d2026-10-14
  • R25-11rel:R25-11#f204fd552026-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

fonction CryptoProvider [SWS_CRYPT_41005] Upstream: RS_CRYPTO_02004

CryptoProvider (const CryptoProvider &)=delete;

Copy-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41005
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41005@rel:R25-11#cf243dff
Content hash
cf243dff
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41005
Status: valid/unmigrated Version: rel:R25-11#16a35c30 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_41005@rel:R25-11#16a35c30
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#baa0ea722026-09-30
  • R23-11rel:R23-11#aba1f1f92026-10-14
  • R24-11rel:R24-11#16a35c302026-10-14
  • R25-11rel:R25-11#16a35c302026-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

fonction CryptoProvider [SWS_CRYPT_41006] Upstream: RS_CRYPTO_02004

CryptoProvider (CryptoProvider &&)=delete;

Move-Constructor.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_41006
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_41006@rel:R25-11#e91e9686
Content hash
e91e9686
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_41006
Status: valid/unmigrated Version: rel:R25-11#9567ac75 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_41006@rel:R25-11#9567ac75
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b43174f52026-09-30
  • R23-11rel:R23-11#8f1246d92026-10-14
  • R24-11rel:R24-11#9567ac752026-10-14
  • R25-11rel:R25-11#9567ac752026-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

fonction ExportSecuredKey [SWS_CRYPT_20728] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< std::size_t > ExportSecuredKey (AlgId alg Id, CryptoObject::Sptr key, ReadWriteMemRegion resultBuffer, ara::core::Optional< SymmetricKey::Sptr > kek) noexcept=0;

The interface shall format the data referenced by the specified key, securely wrap this payload and serialize the secured payload into the provided output buffer. The format shall be specified implicitly by the AlgId. The formatted payload shall be wrapped according to the specified algId using the kek; if kek is not provided, ExportSecuredKey shall apply a key-encryption-key implictly defined by the algId or the default key-encryption-key of the CryptoProvider.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 7d1aacdfd90a Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode ExportSecuredKey de l'interface ara::crypto::cryp::CryptoProvider exporte un objet de clé cryptographique dans un format sérialisé sécurisé [SWS_CRYPT_20728]. L'objet de clé transmis key est préparé conformément au format déterminé implicitement par algId, enveloppé de manière cryptographique (« wrapped ») et sérialisé dans le tampon de sortie resultBuffer [SWS_CRYPT_20728]. Pour l'encapsulage, une clé de chiffrement de clé (kek) peut être transmise en option ; si aucun kek n'est fourni, la méthode a recours à une KEK déterminée implicitement par la algId ou à la KEK par défaut du CryptoProvider [SWS_CRYPT_20728].

La fonction est classée comme thread-safe et exception safe et annotée avec noexcept [SWS_CRYPT_20728]. Interprétation : étant donné que la signature fournit directement un ara::core::Result sans types de retour asynchrones comme des futures, l'ensemble du processus d'encapsulage et de sérialisation devrait être exécuté de manière synchrone dans le contexte de l'appelant. Question Q-3fb89afcc9300695 (ouverte)

En cas de réussite, le ara::core::Result<std::size_t> renvoyé fournit le nombre d'octets écrits dans resultBuffer [SWS_CRYPT_20728]. Si l'opération échoue, une sémantique de rollback s'applique et l'une des erreurs suivantes est signalée [SWS_CRYPT_20728] :

  • UnknownIdentifier : la valeur algId transmise n'est pas prise en charge [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInvalidArgument : l'objet de clé ne peut pas être enveloppé (par ex. taille non valide ou type inapproprié) ou un kek obligatoire n'a pas été transmis [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kUsageViolation : l'utilisation autorisée de key ou kek est incompatible avec l'algorithme sélectionné [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kIncompatibleArguments : le kek transmis est incompatible avec l'algorithme d'exportation [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kInsufficientCapacity : le tampon de sortie resultBuffer est trop petit pour le résultat [SWS_CRYPT_20728].
  • ara::crypto::CryptoErrc::kBusyResource : une ressource requise pour l'exportation est occupée [SWS_CRYPT_20728].

Ce texte a été rédigé par une IA et repose sur l'état de spécification AUTOSAR R25-11.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
algIdthe algId of the secure key export algorithm
keythe key to be exported
resultBufferan output buffer the securely exported key is written to
kekan optional key-encryption-key to be be used for wrapping the secured payload. Only used if the used algorithm does not determine the used key (e.g., based on configuration).

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the result written into resultBuffer or an error

Fehler

FehlercodeBeschreibung
UnknownIdentifierif algId has an unsupported value
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the key object cannot be wrapped (e.g., invalid size or type) or if a kek is expected but not provided.
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of key or kek is incompatible to the used algorithm
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the kek is incompatible to the used algorithm

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20728
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20728@rel:R25-11#325637a4
Content hash
325637a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20728
Status: valid/unmigrated Version: rel:R25-11#9dfe16b6 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_20728@rel:R25-11#9dfe16b6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#057427ea2026-09-30
  • R19-11rel:R19-11#cd9b1a7b2026-10-14
  • R20-11rel:R20-11#51350c8b2026-10-14
  • R21-11rel:R21-11#5ee1380e2026-10-14
  • R22-11rel:R22-11#72d859b12026-10-14
  • R23-11rel:R23-11#c0a14fe12026-10-14
  • R24-11rel:R24-11#661196972026-10-14
  • R25-11rel:R25-11#9dfe16b62026-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

fonction GeneratePrivateKey [SWS_CRYPT_20722] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< PrivateKey::Sptr > GeneratePrivateKey (Alg Id algId, AllowedUsageFlags privateKeyAllowedUsage) noexcept=0;

Generate a new public/private key pair and return the private key. The public key can be retrieved via the function PrivateKey::GetPublicKey() The allowed usage flags of the Public Key are set based on the allowed usage of the PrivateKey: • kAllowDataDecryption --> kAllowDataEncryption • kAllowSigGeneration --> kAllowSigVerification • kAllowKeyAgreement --> kAllowKeyAgreement • kAllowKeyUnwrapping --> kAllowKeyWrapping Additionally, the allowed usage: • kAllowPlaintextExport • kAllowPersist are set for the public key.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : c90dae237830 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode GeneratePrivateKey de la classe ara::crypto::cryp::CryptoProvider (déclarée dans ara/crypto/cryp/crypto_provider.h) génère de manière synchrone une nouvelle paire de clés asymétriques et renvoie la clé privée créée sous la forme PrivateKey::Sptr au sein d'un ara::core::Result [SWS_CRYPT_20722]. La clé publique associée n'est pas directement renvoyée, mais peut être récupérée ultérieurement via la méthode PrivateKey::GetPublicKey() de la clé résultante [SWS_CRYPT_20722].

Lors de l'appel, le paramètre algId spécifie l'algorithme cryptographique, tandis que privateKeyAllowedUsage définit les types de transformation autorisés pour la clé privée [SWS_CRYPT_20722]. Les drapeaux d'utilisation autorisés pour la clé publique sont alors mis en correspondance à partir des autorisations de la clé privée de la manière suivante [SWS_CRYPT_20722] :

  • kAllowDataDecryption conduit à kAllowDataEncryption
  • kAllowSigGeneration conduit à kAllowSigVerification
  • kAllowKeyAgreement conduit à kAllowKeyAgreement
  • kAllowKeyUnwrapping conduit à kAllowKeyWrapping

De plus, les drapeaux d'utilisation kAllowPlaintextExport ainsi que kAllowPersist sont automatiquement attribués à la clé publique [SWS_CRYPT_20722].

En matière de concurrence et d'exécution, la fonction est spécifiée comme thread-safe et exception-safe [SWS_CRYPT_20722]. Si une erreur survient pendant la génération de clé, le résultat est traité avec une sémantique de rollback [SWS_CRYPT_20722]. Les codes d'erreur suivants peuvent être renvoyés :

  • ara::crypto::CryptoErrc::kUnknownIdentifier, si un algorithme non pris en charge est transmis pour algId,
  • ara::crypto::CryptoErrc::kIncompatibleArguments, si les indicateurs privateKeyAllowedUsage spécifiés sont incompatibles avec l'algorithme ou le type de clé choisi,
  • ara::crypto::CryptoErrc::kBusyResource, si la génération est temporairement impossible en raison de ressources temporairement occupées [SWS_CRYPT_20722].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR Adaptive R25-11.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm
privateKeyAllowedUsagethe flags that define a list of allowed transformations’ types in which the private key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created private key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
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_20722
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20722@rel:R25-11#704a1725
Content hash
704a1725
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20722
Status: valid/unmigrated Version: rel:R25-11#92625666 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_20722@rel:R25-11#92625666
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e76fe7892026-09-30
  • R19-11rel:R19-11#7f33da122026-10-14
  • R20-11rel:R20-11#e6ff089b2026-10-14
  • R21-11rel:R21-11#0cd706bd2026-10-14
  • R22-11rel:R22-11#33a2c8282026-10-14
  • R23-11rel:R23-11#2b3d45172026-10-14
  • R24-11rel:R24-11#b10084042026-10-14
  • R25-11rel:R25-11#926256662026-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

fonction GenerateRandomData [SWS_CRYPT_30098] Upstream: RS_CRYPTO_02206

virtual ara::core::Result< void > GenerateRandomData (ReadWriteMem Region randomData) noexcept=0;

Fill the provided output data buffer randomData with random data.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 405a308cad1e Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode purement virtuelle GenerateRandomData de l'interface ara::crypto::cryp::CryptoProvider sert à remplir une zone de mémoire fournie par l'appelant avec des données aléatoires cryptographiques [SWS_CRYPT_30098]. La déclaration se trouve dans le fichier d'en-tête ara/crypto/cryp/crypto_provider.h.

Le paramètre de sortie transmis est randomData de type ReadWriteMem Region, qui représente le tampon à remplir et dont la taille détermine le nombre d'octets aléatoires générés [SWS_CRYPT_30098]. Interprétation : étant donné que la fonction utilise directement ara::core::Result<void> comme type de retour et aucun objet Future, la génération des données devrait se dérouler de manière synchrone et bloquante [SWS_CRYPT_30098]. Question Q-315c0492dcf7f37d (ouverte) La valeur de retour est vide en cas de succès ou contient un code d'erreur correspondant en cas d'erreur [SWS_CRYPT_30098].

Si un problème survient lors de l'exécution, une sémantique de rollback est appliquée afin qu'aucun état partiel ou non valide ne subsiste [SWS_CRYPT_30098]. Les états d'erreur suivants sont spécifiés :

  • ara::crypto::CryptoErrc::kBusyResource : Le générateur de nombres aléatoires (RNG) sous-jacent dispose actuellement d'une entropie insuffisante et ne peut pas fournir la quantité demandée d'octets aléatoires [SWS_CRYPT_30098].
  • ara::crypto::CryptoErrc::kUnsupported : L'implémentation concrète de CryptoProvider ne prend pas en charge de générateur de nombres aléatoires standard [SWS_CRYPT_30098].

Concernant la concurrence et la robustesse, la méthode est spécifiée comme thread-safe et exception safe [SWS_CRYPT_30098]. Plusieurs threads peuvent ainsi appeler la fonction en parallèle, et la spécification noexcept garantit qu'aucune exception C++ n'est levée au-delà de la frontière de l'interface.

Cette note d'utilisation a été générée automatiquement sur la base de la spécification AUTOSAR.

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

Parameter (out)

ParameterBeschreibung
randomDataoutput data buffer to be filled with random data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the used RNG is currently out-of-entropy and therefore cannot provide the requested number of random bytes
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if no default RNG is supported by the CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30098@rel:R25-11#711675cb
Content hash
711675cb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30098
Status: valid/unmigrated Version: rel:R25-11#480ab415 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_30098@rel:R25-11#480ab415
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#79a025442026-09-30
  • R20-11rel:R20-11#c9d663072026-10-14
  • R21-11rel:R21-11#1481f16f2026-10-14
  • R22-11rel:R22-11#321f73ae2026-10-14
  • R23-11rel:R23-11#f518793a2026-10-14
  • R24-11rel:R24-11#c16096352026-10-14
  • R25-11rel:R25-11#480ab4152026-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

fonction GenerateSymmetricKey [SWS_CRYPT_20721] Upstream: RS_CRYPTO_02003, RS_CRYPTO_02101, RS_CRYPTO_02102, RS_ CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > GenerateSymmetricKey (AlgId algId, AllowedUsageFlags allowedUsage) noexcept=0;

Generate a new symmetric key.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 202931831493 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode purement virtuelle GenerateSymmetricKey est fournie via l'interface ara::crypto::cryp::CryptoProvider (fichier d'en-tête #include "ara/crypto/cryp/crypto_provider.h") et sert à la génération d'une nouvelle clé symétrique [SWS_CRYPT_20721]. L'appel synchrone attend comme paramètre algId l'identifiant de l'algorithme cryptographique symétrique cible ainsi que, sous forme de allowedUsage, des drapeaux binaires définissant les types de transformation autorisés pour la clé générée [SWS_CRYPT_20721]. En cas d'exécution réussie, la méthode fournit un ara::core::Result avec un SymmetricKey::Sptr, c'est-à-dire un shared pointer vers l'objet clé symétrique nouvellement généré [SWS_CRYPT_20721].

Gestion des erreurs

Si une erreur survient pendant la génération de la clé, celle-ci est transmise dans le ara::core::Result. Pour tous les cas d'erreur spécifiés, une sémantique de retour arrière (rollback) s'applique [SWS_CRYPT_20721] :

  • ara::crypto::CryptoErrc::kUnknownIdentifier : signalé si une valeur non prise en charge a été transmise pour algId [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kIncompatibleArguments : survient lorsque les drapeaux allowedUsage spécifiés sont incompatibles avec l'algorithme algId choisi ou avec le type de clé [SWS_CRYPT_20721].
  • ara::crypto::CryptoErrc::kBusyResource : indique que l'opération ne peut temporairement pas être effectuée en raison de ressources momentanément occupées [SWS_CRYPT_20721].

Concurrence et restrictions

L'opération est déclarée comme noexcept et possède les propriétés d'être sûre vis-à-vis des exceptions (exception safe) ainsi que thread-safe [SWS_CRYPT_20721]. Elle peut donc être appelée de manière concurrente depuis plusieurs threads, l'erreur kBusyResource pouvant survenir sous forte charge système pour signaler des goulots d'étranglement temporaires [SWS_CRYPT_20721].

Cette note d'utilisation a été générée automatiquement sur la base de la spécification.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed transformations’ types in which the generated key can be used

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created symmetric key object or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId or the key type
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_20721
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20721@rel:R25-11#4faaddfb
Content hash
4faaddfb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20721
Status: valid/unmigrated Version: rel:R25-11#921910dd 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_20721@rel:R25-11#921910dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#635fbe3a2026-09-30
  • R19-11rel:R19-11#ceb7dd0e2026-10-14
  • R20-11rel:R20-11#06044bd12026-10-14
  • R21-11rel:R21-11#b4656e752026-10-14
  • R22-11rel:R22-11#a3fb37fc2026-10-14
  • R23-11rel:R23-11#9d93b9e42026-10-14
  • R24-11rel:R24-11#7d27c8e42026-10-14
  • R25-11rel:R25-11#921910dd2026-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

fonction GetDefaultAllowedUsage [SWS_CRYPT_20955] Upstream: RS_CRYPTO_02003

virtual ara::core::Result< AllowedUsageFlags > GetDefaultAllowedUsage (AlgId algId) noexcept=0;

Get a CryptoProvider specific default set of allowedUsages for the provided AlgId. The returned allowedUsages shall not contain kAllowPlaintextExport, kAllowPersist and kAllowSecuredExport.

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

Parameter (in)

ParameterBeschreibung
algIdthe identifier of the target crypto algorithm

Rückgabewert

TypBeschreibung
ara::core::Result<AllowedUsageFlags >result containing a CryptoProvider specific default set of allowed Usages or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if algId has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20955
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20955@rel:R25-11#75ebd327
Content hash
75ebd327
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20955
Status: valid/unmigrated Version: rel:R25-11#7ae6f7f9 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_20955@rel:R25-11#7ae6f7f9
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

fonction GetProviderID [SWS_CRYPT_50015] Upstream: RS_CRYPTO_02305

virtual ara::core::Result< void > GetProviderID (ara::core::Optional< ReadOnlyMemRegion > in, ReadWriteMemRegion idData) noexcept=0;

Obtain provider specific identification data.

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

Parameter (in)

ParameterBeschreibung
inOptional input data required by some identification protocols (e.g. SHE/CMD_GET_ID)

Parameter (out)

ParameterBeschreibung
idDatathe identification data of the provider

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the provided ReadWriteMemRegion parameter idData is insufficient in size to hold the identification data

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

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

fonction GetProviderIdSize [SWS_CRYPT_50016] Upstream: RS_CRYPTO_02305

virtual ara::core::Result< std::size_t > GetProviderIdSize () noexcept=0;

Get the required size of the output buffer for ID data used by GetProviderID.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required size of ID data in bytes or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this provider does not support identification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50016
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50016@rel:R25-11#5177f3c8
Content hash
5177f3c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50016
Status: valid/unmigrated Version: rel:R25-11#7cd73107 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_50016@rel:R25-11#7cd73107
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

fonction GetSecureCounter [SWS_CRYPT_20098] Upstream: RS_CRYPTO_02401

ara::core::Result< SecureCounter > GetSecureCounter () noexcept;

Get the current value of the secure counter of this CryptoProvider. The current counter value is guaranteed to be stricly larger than any previously returned counter value.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : cd7a957c648f Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode GetSecureCounter() de la classe ara::crypto::cryp::CryptoProvider (déclarée dans #include "ara/crypto/cryp/crypto_provider.h") interroge l'état de comptage actuel du compteur sécurisé de l'instance de fournisseur [SWS_CRYPT_20098]. La fonction s'exécute de manière synchrone et ne requiert aucun paramètre d'entrée [SWS_CRYPT_20098]. En cas de succès, elle renvoie via ara::core::Result<SecureCounter> la structure SecureCounter, qui est constituée de deux valeurs 64 bits non signées (LSQW pour Least Significant Quad Word et MSQW pour Most Significant Quad Word) [SWS_CRYPT_20098]. Il est garanti que chaque état de comptage renvoyé est strictement supérieur à toutes les valeurs précédemment fournies via cette instance [SWS_CRYPT_20098].

Si l'état de comptage ne peut pas être déterminé, l'appel échoue et renvoie un code d'erreur avec une sémantique de rollback dans l'objet Result [SWS_CRYPT_20098] :

  • ara::crypto::CryptoErrc::kUnsupported : le CryptoProvider spécifique ne prend pas en charge de compteur sécurisé [SWS_CRYPT_20098].
  • ara::crypto::CryptoErrc::kBusyResource : une ressource requise pour l'accès ou la mise à jour du compteur est actuellement occupée [SWS_CRYPT_20098].

En ce qui concerne la concurrence et la robustesse, la fonction est spécifiée comme thread-safe (thread-safe) et déclarée avec noexcept comme sûre vis-à-vis des exceptions (exception safe) [SWS_CRYPT_20098]. Des appels parallèles depuis plusieurs threads sont ainsi autorisés sans synchronisation externe, la stricte monotonie des valeurs de compteur fournies restant garantie [SWS_CRYPT_20098].

Ce texte a été généré par une IA et sert de guide d'orientation. Seule la spécification officielle fait foi.

Guide de l'implémenteur à venir (complexité I1)

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

Rückgabewert

TypBeschreibung
ara::core::Result<SecureCounter >a result containing a SecureCounter struct made up of the two unsigned 64 bit values (LSQW and MSQW), or an error:

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the Secure Counter is not supported by the CryptoProvider
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20098
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20098@rel:R25-11#5cf40ebd
Content hash
5cf40ebd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20098
Status: valid/unmigrated Version: rel:R25-11#0c57734d 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_20098@rel:R25-11#0c57734d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#62146ddd2026-09-30
  • R20-11rel:R20-11#31b7c30b2026-10-14
  • R21-11rel:R21-11#450747932026-10-14
  • R22-11rel:R22-11#1e50ce5f2026-10-14
  • R23-11rel:R23-11#76f9cfec2026-10-14
  • R24-11rel:R24-11#267205092026-10-14
  • R25-11rel:R25-11#0c57734d2026-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

fonction ImportPrivateKey [SWS_CRYPT_50132] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PrivateKey::Sptr > ImportPrivateKey (Read OnlyMemRegion serialized, AllowedUsageFlags allowedUsage, FormatId formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized private key.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 56f03864743d Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode ImportPrivateKey de la classe ara::crypto::cryp::CryptoProvider sert à importer de manière synchrone une clé privée sérialisée [SWS_CRYPT_50132]. Lors de l'appel, les données utiles sont transmises via la zone de mémoire serialized (ReadOnlyMemRegion), complétées par les restrictions d'utilisation souhaitées (allowedUsage) et le format de sérialisation (formatId). Le paramètre algId est facultatif (ara::core::Optional<AlgId>) et ne doit être défini que si le format choisi ne définit pas déjà lui-même sans ambiguïté les propriétés de clé requises [SWS_CRYPT_50132]. Comme valeur de retour, la fonction renvoie un ara::core::Result<PrivateKey::Sptr> qui, en cas de succès, contient un shared pointer vers l'objet clé créé.

Gestion des erreurs

En cas d'erreur, la méthode garantit qu'une sémantique de rollback s'applique [SWS_CRYPT_50132]. Les codes d'erreur suivants peuvent être renvoyés via le Result :

  • InvalidArgument : les données sérialisées dans serialized ne correspondent pas au format indiqué [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kIncompatibleArguments : les allowedUsage transmis sont incompatibles avec la algId [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupported : la fonction n'est pas prise en charge par le provider concret [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kBusyResource : l'opération ne peut temporairement pas être exécutée en raison de ressources occupées [SWS_CRYPT_50132].
  • ara::crypto::CryptoErrc::kUnsupportedFormat : la formatId n'est pas prise en charge pour ce type d'objet [SWS_CRYPT_50132].

Concurrence et restrictions

L'interface est déclarée comme noexcept et offre la sécurité vis-à-vis des exceptions (exception safe) ainsi que la sécurité des threads (thread-safe) [SWS_CRYPT_50132]. Les appels peuvent ainsi s'effectuer en parallèle depuis différents threads.

Ce texte a été généré par un système d'IA sur la base de la spécification AUTOSAR.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50132@rel:R25-11#650285b0
Content hash
650285b0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50132
Status: valid/unmigrated Version: rel:R25-11#014ff708 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_50132@rel:R25-11#014ff708
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

fonction ImportPublicKey [SWS_CRYPT_20732] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< PublicKey::Sptr > ImportPublicKey (ReadOnly MemRegion serialized, AllowedUsageFlags allowedUsage, FormatId format Id, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized public key.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 2c89087292cc Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode ImportPublicKey sert à importer une clé publique sérialisée dans le ara::crypto::cryp::CryptoProvider respectif [SWS_CRYPT_20732]. L'appel s'effectue de manière synchrone et renvoie un ara::core::Result<PublicKey::Sptr> qui, en cas de succès, contient un Smart Pointer vers l'objet de clé créé [SWS_CRYPT_20732].

Lors de l'appel, les paramètres suivants sont transmis [SWS_CRYPT_20732] :

  • serialized : une zone mémoire ReadOnlyMemRegion qui fournit les données brutes de la clé sérialisée.
  • allowedUsage : les indicateurs d'utilisation autorisés (AllowedUsageFlags) pour la clé importée.
  • formatId : l'identifiant du format de sérialisation (FormatId).
  • algId : un ID d'algorithme optionnel (ara::core::Optional<AlgId>). Il n'est pas requis si le format de sérialisation détermine déjà sans ambiguïté les propriétés de la clé.

Gestion des erreurs

Si une erreur survient lors du traitement, elle est encapsulée dans le ara::core::Result renvoyé. Les codes d'erreur suivants sont spécifiés [SWS_CRYPT_20732] :

  • InvalidArgument : les données transmises dans serialized ne correspondent pas au format spécifié.
  • ara::crypto::CryptoErrc::kIncompatibleArguments : les flags d'utilisation allowedUsage sont incompatibles avec algId.
  • ara::crypto::CryptoErrc::kUnsupportedFormat : la formatId spécifiée n'est pas prise en charge pour ce type d'objet.
  • ara::crypto::CryptoErrc::kUnsupported : la fonction demandée n'est pas prise en charge par CryptoProvider.
  • ara::crypto::CryptoErrc::kBusyResource : l'opération ne peut pas être exécutée temporairement.

Concurrence et sécurité

La méthode est déclarée comme noexcept, est considérée comme sûre vis-à-vis des exceptions (exception-safe) et est spécifiée comme thread-safe conformément à la spécification [SWS_CRYPT_20732]. Les cas d'erreur suivent des sémantiques de rollback définies [SWS_CRYPT_20732].

Ce texte a été généré par un système d'IA et repose exclusivement sur les données de spécification de la version R25-11.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20732
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20732@rel:R25-11#44ad561a
Content hash
44ad561a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20732
Status: valid/unmigrated Version: rel:R25-11#51a436c4 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_20732@rel:R25-11#51a436c4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2473d8742026-09-30
  • R19-11rel:R19-11#1450fe912026-10-14
  • R20-11rel:R20-11#9c83b88d2026-10-14
  • R21-11rel:R21-11#56c01f3b2026-10-14
  • R22-11rel:R22-11#2ec0aa1f2026-10-14
  • R23-11rel:R23-11#56bf56252026-10-14
  • R24-11rel:R24-11#ada4cfb92026-10-14
  • R25-11rel:R25-11#51a436c42026-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

fonction ImportSymmetricKey [SWS_CRYPT_50014] Upstream: RS_CRYPTO_02105, RS_CRYPTO_02112

virtual ara::core::Result< SymmetricKey::Sptr > ImportSymmetricKey (ReadOnlyMemRegion serialized, AllowedUsageFlags allowedUsage, Format Id formatId, ara::core::Optional< AlgId > algId) noexcept=0;

Import a serialized symmetric key.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 46a4ead0d7ca Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode ImportSymmetricKey de l'interface ara::crypto::cryp::CryptoProvider sert à importer une clé symétrique sérialisée [SWS_CRYPT_50014]. Comme valeur de retour, elle fournit un ara::core::Result<SymmetricKey::Sptr> qui met à disposition en cas de succès un pointeur intelligent vers l'objet de clé nouvellement instancié [SWS_CRYPT_50014]. Comme aucun type de retour asynchrone tel qu'un Future n'est utilisé, l'exécution devrait avoir lieu de manière synchrone. Question Q-720a495b07c4f31d (ouverte)

Les paramètres suivants doivent être transmis lors de l'appel [SWS_CRYPT_50014] :

  • serialized (ReadOnlyMemRegion) : la zone mémoire contenant les données de clé sérialisées.
  • allowedUsage (AllowedUsageFlags) : masque de bits des opérations et utilisations autorisées pour cette clé.
  • formatId (FormatId) : identifiant du format de sérialisation des données de clé.
  • algId (ara::core::Optional<AlgId>) : identifiant d'algorithme optionnel ; il n'est pas nécessaire si le format de sérialisation spécifié détermine déjà de manière univoque toutes les propriétés requises de la clé.

Gestion des erreurs et conditions limites

La méthode est spécifiée comme thread-safe et exception safe [SWS_CRYPT_50014]. En cas d'erreur, l'implémentation garantit une sémantique de rollback et renvoie un code d'erreur correspondant dans le ara::core::Result [SWS_CRYPT_50014] :

  • InvalidArgument : les données binaires transmises dans serialized ne correspondent pas au format spécifié.
  • ara::crypto::CryptoErrc::kIncompatibleArguments : les indicateurs allowedUsage définis sont incompatibles avec la algId spécifiée.
  • ara::crypto::CryptoErrc::kUnsupported : la fonction n'est pas prise en charge par l'instance concrète du CryptoProvider.
  • ara::crypto::CryptoErrc::kUnsupportedFormat : le format spécifié n'est pas pris en charge pour ce type de clé.
  • ara::crypto::CryptoErrc::kBusyResource : l'opération ne peut pas être exécutée actuellement en raison de ressources temporairement occupées.

Cette note d'utilisation a été créée automatiquement sur la base de la spécification AUTOSAR R25-11.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe ara::crypto::CryptoErrc::k rollback_semantics

Parameter (in)

ParameterBeschreibung
serializedthe memory region that contains the serialized key
allowedUsagethe allowedUsage of the key
formatIdthe serialization format
algIdan optional alg ID of the key. Not required if the serialization format already identifies the required properties of the key.

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the created key or an error

Fehler

FehlercodeBeschreibung
InvalidArgumentif serialized does not conform to the specified format
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage is incompatible with the algId
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the CryptoProvider does not support the requested function
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the operation temporarily cannot be performed
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported for this object type

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

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

fonction LoadPrivateKey [SWS_CRYPT_20764] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PrivateKey::Sptr > LoadPrivateKey (Key Slot::Sptr keySlot) noexcept=0;

Load a private key from the provided KeySlot.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : 933cf21dc7b3 Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode LoadPrivateKey de l'interface ara::crypto::cryp::CryptoProvider charge une clé privée depuis un slot de clé fourni ([SWS_CRYPT_20764]). L'appel est exécuté de manière synchrone et prend en paramètre un pointeur partagé vers la ressource source (keySlot). En cas de succès, la fonction fournit un pointeur partagé vers l'objet clé chargé (PrivateKey::Sptr), qui est renvoyé au sein d'un ara::core::Result ([SWS_CRYPT_20764]).

Gestion des erreurs

Si une erreur survient pendant l'opération, une sémantique de retour arrière (rollback) s'applique et le ara::core::Result contient un code d'erreur spécifique ([SWS_CRYPT_20764]) :

  • ara::crypto::CryptoErrc::kEmptyKeySlot : Le slot de clé transmis est vide ([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kIncompatibleObject : La ressource sous-jacente appartient à un autre CryptoProvider incompatible ou contient un type de clé divergent ([SWS_CRYPT_20764]).
  • ara::crypto::CryptoErrc::kBusyResource : l'opération ne peut pas être exécutée temporairement ([SWS_CRYPT_20764]).

Concurrence et sécurité

La spécification classe la fonction comme thread-safe et exception-safe ; la signature est déclarée comme noexcept ([SWS_CRYPT_20764]). Plusieurs threads peuvent appeler la méthode en parallèle, mais doivent traiter un éventuel retour de kBusyResource en cas de conflits temporaires de ressources.

Cette note d'utilisation a été générée automatiquement sur la base de la spécification.

Guide de l'implémenteur à venir (complexité I1)

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<PrivateKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
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_20764
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20764@rel:R25-11#b11f2d2e
Content hash
b11f2d2e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20764
Status: valid/unmigrated Version: rel:R25-11#619ff9c3 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_20764@rel:R25-11#619ff9c3
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#562267092026-09-30
  • R20-11rel:R20-11#cf85edd52026-10-14
  • R21-11rel:R21-11#7866d75f2026-10-14
  • R22-11rel:R22-11#7ef331982026-10-14
  • R23-11rel:R23-11#9721217a2026-10-14
  • R24-11rel:R24-11#00f5f0232026-10-14
  • R25-11rel:R25-11#619ff9c32026-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

fonction LoadPublicKey [SWS_CRYPT_20763] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< PublicKey::Sptr > LoadPublicKey (Key Slot::Sptr keySlot) noexcept=0;

Load a public key from the provided KeySlot.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : bd65058963fb Provenance Questions ouvertes (1)
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

Utilisation

La méthode LoadPublicKey de l'interface ara::crypto::cryp::CryptoProvider charge une clé publique à partir de l'emplacement de stockage de clés fourni [SWS_CRYPT_20763]. En tant que paramètre keySlot, elle attend un KeySlot::Sptr qui référence l'emplacement de stockage contenant la clé à charger [SWS_CRYPT_20763]. Comme valeur de retour, la fonction fournit un ara::core::Result<PublicKey::Sptr> qui, en cas de succès, contient un pointeur partagé vers l'objet clé publique chargé [SWS_CRYPT_20763]. La fourniture directe de la valeur Result devrait à cet égard indiquer un comportement d'appel synchrone. Question Q-e0d2480909b1398a (ouverte)

Gestion des erreurs

Si le processus de chargement échoue, le ara::core::Result contient un code d'erreur correspondant du domaine ara::crypto::CryptoErrc, une sémantique de rollback étant définie pour tous les cas d'erreur spécifiés [SWS_CRYPT_20763] :

  • ara::crypto::CryptoErrc::kEmptyKeySlot : survient lorsque le KeySlot transmis est vide [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kIncompatibleObject : est renvoyé lorsque la ressource sous-jacente appartient à un autre CryptoProvider incompatible ou contient un type de clé divergent [SWS_CRYPT_20763].
  • ara::crypto::CryptoErrc::kBusyResource : survient si l'opération ne peut pas être exécutée temporairement, car la ressource est occupée par ailleurs [SWS_CRYPT_20763].

Concurrence et sécurité

La méthode est déclarée avec noexcept et spécifiée comme sûre vis-à-vis des exceptions (exception-safe) [SWS_CRYPT_20763]. En ce qui concerne la concurrence, l'opération est explicitement classée comme sûre vis-à-vis des threads (thread-safe), ce qui autorise les appels parallèles depuis plusieurs threads [SWS_CRYPT_20763].

Cette note d'utilisation a été générée par une IA sur la base de la spécification.

Guide de l'implémenteur à venir (complexité I1)

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result< PublicKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
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_20763
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20763@rel:R25-11#94a7c632
Content hash
94a7c632
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20763
Status: valid/unmigrated Version: rel:R25-11#94997baf 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_20763@rel:R25-11#94997baf
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3b024d4b2026-09-30
  • R20-11rel:R20-11#5ef8747d2026-10-14
  • R21-11rel:R21-11#cecedb902026-10-14
  • R22-11rel:R22-11#3bab55812026-10-14
  • R23-11rel:R23-11#406c01632026-10-14
  • R24-11rel:R24-11#fc5230262026-10-14
  • R25-11rel:R25-11#94997baf2026-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

fonction LoadSymmetricKey [SWS_CRYPT_20762] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02002

virtual ara::core::Result< SymmetricKey::Sptr > LoadSymmetricKey (Key Slot::Sptr keySlot) noexcept=0;

Load a symmetric key from the provided KeySlot.

GÉNÉRÉ PAR IA non vérifié Modèle : gemini-3.8-flash-medium · Effort : medium · Température : non réglable · Prompt : fa5c0e3150ce Provenance
traduit du guide allemandgemini-3.8-flash-low · 2026-10-13 · Original allemand

La méthode virtuelle pure LoadSymmetricKey de la classe ara::crypto::cryp::CryptoProvider sert à charger une clé symétrique à partir d'un emplacement de stockage de clés fourni [SWS_CRYPT_20762]. Comme paramètre, la fonction reçoit un pointeur partagé vers l'emplacement de stockage concerné (keySlot) et renvoie de manière synchrone un ara::core::Result<SymmetricKey::Sptr> qui, lors d'une exécution réussie, fournit un pointeur partagé vers l'objet clé chargé [SWS_CRYPT_20762].

Concernant la concurrence et la sûreté d'exécution, la méthode est spécifiée comme thread-safe ainsi que exception safe et déclarée avec noexcept [SWS_CRYPT_20762].

Si une erreur survient lors du chargement, la méthode renvoie, via l'objet Result, des codes d'erreur spécifiques du domaine ara::crypto::CryptoErrc avec une sémantique de rollback définie [SWS_CRYPT_20762] :

  • ara::crypto::CryptoErrc::kEmptyKeySlot : survient lorsque le KeySlot transmis est vide [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kIncompatibleObject : est renvoyé si la ressource sous-jacente appartient à un autre Crypto-Provider incompatible ou contient un autre type de clé [SWS_CRYPT_20762].
  • ara::crypto::CryptoErrc::kBusyResource : signale que l'opération ne peut pas être exécutée temporairement [SWS_CRYPT_20762].

Ce texte a été généré par un système d'IA et s'appuie exclusivement sur la spécification.

Guide de l'implémenteur à venir (complexité I1)

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

Parameter (in)

ParameterBeschreibung
keySlotthe KeySlot that contains the key for loading

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >result containing a shared pointer to the loaded key or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if the KeySlot is empty
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the underlying resource belongs to another, incompatible Crypto Provider or contains a different key type
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_20762
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20762@rel:R25-11#77bde78f
Content hash
77bde78f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20762
Status: valid/unmigrated Version: rel:R25-11#f47254ea 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_20762@rel:R25-11#f47254ea
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0e0c91c92026-09-30
  • R20-11rel:R20-11#a2b2b6ca2026-10-14
  • R21-11rel:R21-11#71269d212026-10-14
  • R22-11rel:R22-11#af928a362026-10-14
  • R23-11rel:R23-11#aa4c06512026-10-14
  • R24-11rel:R24-11#d7011cdb2026-10-14
  • R25-11rel:R25-11#f47254ea2026-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

fonction operator= [SWS_CRYPT_30216] Upstream: RS_CRYPTO_02004

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

Copy-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30216
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30216@rel:R25-11#24cb5a65
Content hash
24cb5a65
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30216
Status: valid/unmigrated Version: rel:R25-11#96e40041 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_30216@rel:R25-11#96e40041
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d4dd587d2026-09-30
  • R20-11rel:R20-11#8f862b702026-10-14
  • R21-11rel:R21-11#8f862b702026-10-14
  • R22-11rel:R22-11#1f0154312026-10-14
  • R23-11rel:R23-11#b6c645d62026-10-14
  • R24-11rel:R24-11#96e400412026-10-14
  • R25-11rel:R25-11#96e400412026-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

fonction operator= [SWS_CRYPT_30217] Upstream: RS_CRYPTO_02004

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

Move-assign another CryptoProvider to this instance.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider

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

Record
AUTOSAR/AP/record/SWS_CRYPT_30217
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_30217@rel:R25-11#aae7d6b8
Content hash
aae7d6b8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_30217
Status: valid/unmigrated Version: rel:R25-11#fcc3d64e 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_30217@rel:R25-11#fcc3d64e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#875b931c2026-09-30
  • R20-11rel:R20-11#ad3659582026-10-14
  • R21-11rel:R21-11#c29463602026-10-14
  • R22-11rel:R22-11#1048bb462026-10-14
  • R23-11rel:R23-11#4eff1ccf2026-10-14
  • R24-11rel:R24-11#53bda24c2026-10-14
  • R25-11rel:R25-11#fcc3d64e2026-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

fonction ~CryptoProvider [SWS_CRYPT_20710] Upstream: RS_CRYPTO_02107

virtual ~CryptoProvider () noexcept=default;

Destructor.

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

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20710@rel:R25-11#52a571a0
Content hash
52a571a0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20710
Status: valid/unmigrated Version: rel:R25-11#8dc356f1 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_20710@rel:R25-11#8dc356f1
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#92a5ae4c2026-09-30
  • R19-11rel:R19-11#262154f72026-10-14
  • R20-11rel:R20-11#01fe77212026-10-14
  • R21-11rel:R21-11#01fe77212026-10-14
  • R22-11rel:R22-11#416497032026-10-14
  • R23-11rel:R23-11#9976743f2026-10-14
  • R24-11rel:R24-11#9c7dc3252026-10-14
  • R25-11rel:R25-11#8dc356f12026-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

Documentation des alias de type

alias de type Sptr [SWS_CRYPT_20701] Upstream: RS_CRYPTO_02109

using Sptr = std::shared_ptr<CryptoProvider>;

Shared pointer of the CryptoProvider.

Header-Datei#include "ara/crypto/cryp/crypto_provider.h"
Scopeclass ara::crypto::cryp::CryptoProvider
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20701
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20701@rel:R25-11#0c21c470
Content hash
0c21c470
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20701
Status: valid/unmigrated Version: rel:R25-11#b2ab3ec9 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_20701@rel:R25-11#b2ab3ec9
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#374f02562026-09-30
  • R19-11rel:R19-11#c100f8d02026-10-14
  • R20-11rel:R20-11#60b520932026-10-14
  • R21-11rel:R21-11#60b520932026-10-14
  • R22-11rel:R22-11#6cce43132026-10-14
  • R23-11rel:R23-11#35053b082026-10-14
  • R24-11rel:R24-11#90ffb1202026-10-14
  • R25-11rel:R25-11#b2ab3ec92026-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