DEENESPTFRRUARHIKOZHNL

class ara::crypto::cryp::KeyAgreementPrivateCtx

[SWS_CRYPT_21300] Upstream: RS_CRYPTO_02104

class KeyAgreementPrivateCtx :              public CryptoContext {...};

Key Agreement Private key Context interface.

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

User GuideAI-GENERATED

Serves to calculate symmetric target keys from a private key and a peer public key.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6c31df682424 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Serves to calculate symmetric target keys from a private key and a peer public key.

The interface ara::crypto::cryp::KeyAgreementPrivateCtx serves to execute cryptographic key agreement procedures based on a local private key and the public key of a peer [SWS_CRYPT_21312]. After setting its own key and optional parameters, the method AgreeKey calculates a shared secret and returns it as a symmetric key object. A central constraint is complete initialization prior to execution, as missing parameters or missing permissions for kAllowKeyAgreement lead to an abort with corresponding error codes [SWS_CRYPT_21312]. All operations are designed to be thread-safe.

Context

The interface ara::crypto::cryp::KeyAgreementPrivateCtx is used in the crypto module of the Adaptive Platform to execute asymmetric key agreement procedures. Its central responsibility lies in computing a shared symmetric key from a local private key and the public key of a communication partner [SWS_CRYPT_21312]. As a specialized crypto context, the class interacts with several key and storage abstractions: Its own private key can either be bound directly as an PrivateKey object [SWS_CRYPT_21313] or referenced via a KeySlot [SWS_CRYPT_50053]. The peer contributes its public key in the form of a PublicKey, while the result is provided as an independent SymmetricKey object [SWS_CRYPT_21312]. In addition, algorithm-specific configuration parameters can be passed as a memory buffer or integer [SWS_CRYPT_50051], [SWS_CRYPT_50052].

KeyAgreementContext Application Application KeyAgreementPrivateCtx KeyAgreementPrivateCtx Application->KeyAgreementPrivateCtx configures & executes SymmetricKey SymmetricKey KeyAgreementPrivateCtx->SymmetricKey erzeugt PrivateKey PrivateKey PrivateKey->KeyAgreementPrivateCtx eigener privater Schluessel KeySlot KeySlot KeySlot->KeyAgreementPrivateCtx Schluesselplatz PublicKey PublicKey PublicKey->KeyAgreementPrivateCtx Gegenstellen-Schluessel

Context diagram: Interaction of KeyAgreementPrivateCtx with keys, key slots, and result object. Sources: [SWS_CRYPT_21312], [SWS_CRYPT_21313], [SWS_CRYPT_50053].

Lifecycle

The lifecycle and ownership of KeyAgreementPrivateCtx are based on shared pointers; the specification provides the type alias KeyAgreementPrivateCtx::Sptr for this purpose [SWS_CRYPT_21301]. Interpretation: Instantiation is likely done via a higher-level factory of a CryptoProvider, as the class represents a pure virtual interface without a constructor specification. Question Q-22dca518675fba51 (open) After creation, the instance is in a non-operational base state. The context is only initialized once a private key has been configured using SetKey [SWS_CRYPT_21313], [SWS_CRYPT_50053] and all parameters required for the chosen scheme have been assigned [SWS_CRYPT_50051], [SWS_CRYPT_50052].

If a key calculation is initiated before these configuration steps are completed, the call fails [SWS_CRYPT_21312]. Regarding concurrency, all member functions are specified as thread-safe (thread-safe) as well as exception-safe (exception safe) [SWS_CRYPT_21312], [SWS_CRYPT_21313], [SWS_CRYPT_50051], [SWS_CRYPT_50052], [SWS_CRYPT_50053]. Because the execution function AgreeKey is declared as const [SWS_CRYPT_21312], the same initialized context can be used in parallel for agreements with different peers.

Usage Path

Practical usage is divided into a sequential series of configuration and calculation steps:

  • Key assignment: First, the application binds its own private key to the context. This is done either via SetKey(PrivateKey::Sptr) [SWS_CRYPT_21313] for a loaded key object or via SetKey(KeySlot::Sptr) [SWS_CRYPT_50053] for a key slot whose content is only evaluated at the time of the agreement.
  • Parameter definition: If the target algorithm requires additional initialization data, this is passed via SetParameter as a buffer ReadOnlyMemRegion [SWS_CRYPT_50051] or as a 64-bit integer std::uint64_t [SWS_CRYPT_50052].
  • Key agreement: With AgreeKey, the cryptographic algorithm is executed [SWS_CRYPT_21312]. The calling component passes the public key of the peer (otherSideKey), the identifier of the desired target algorithm (targetAlgId), and the permitted usage flags (allowedUsage).
  • Result retrieval: Upon successful completion, AgreeKey returns a SymmetricKey object containing the calculated shared secret [SWS_CRYPT_21312].
Sequence of key agreementApplicationKeyAgreementPrivateCtxSymmetricKeyUse Case: KonfigurationSetKey(key)Result<void>optAdditional parameters requiredSetParameter(name, value)Result<void>Use Case: Key agreementAgreeKey(otherSideKey, targetAlgId, allowedUsage)Berechnung Shared SecretErzeugungResult<SymmetricKey::Sptr>

Sequence diagram: Typical sequence of key agreement from key allocation to generation of the symmetric key. Sources: [SWS_CRYPT_21312], [SWS_CRYPT_21313], [SWS_CRYPT_50051].

Error Scenarios

Methods of KeyAgreementPrivateCtx return errors via ara::core::Result and ensure rollback semantics [SWS_CRYPT_21312], [SWS_CRYPT_21313], [SWS_CRYPT_50051], [SWS_CRYPT_50052], [SWS_CRYPT_50053]. Typical error scenarios include:

  • CryptoErrc::kUninitializedContext: Occurs on AgreeKey if no key was set beforehand or required parameters are missing [SWS_CRYPT_21312].
  • CryptoErrc::kIncompatibleObject: Reported if a passed PrivateKey or KeySlot does not match the type of the context [SWS_CRYPT_21313], [SWS_CRYPT_50053], or if the peer key otherSideKey is incompatible [SWS_CRYPT_21312].
  • CryptoErrc::kUsageViolation: Signals that the permission kAllowKeyAgreement was not granted for the private key or the peer key [SWS_CRYPT_21312], [SWS_CRYPT_21313].
  • CryptoErrc::kUnsupported: Indicates that the context implementation exclusively supports the respective other SetKey variant [SWS_CRYPT_21313], [SWS_CRYPT_50053], or that a requested parameter name is not supported [SWS_CRYPT_50051], [SWS_CRYPT_50052].
  • CryptoErrc::kInvalidArgument: Arises with invalid values in SetParameter [SWS_CRYPT_50051], [SWS_CRYPT_50052] or impermissible allowedUsage flags for the target key [SWS_CRYPT_21312].
  • CryptoErrc::kUnknownIdentifier: Triggered if the identifier targetAlgId for the target algorithm is unknown [SWS_CRYPT_21312].
  • CryptoErrc::kEmptyKeySlot and CryptoErrc::kBusyResource: Returned by AgreeKey if the configured KeySlot contains no key at execution time or a required resource is busy [SWS_CRYPT_21312].

This class guide was generated by the autodocs system based on the AUTOSAR specification R25-11.

Member map

Type aliases

1

Class diagram

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

G nara__crypto__cryp__KeyAgreementPrivateCtx203 KeyAgreementPrivateCtx + AgreeKey() + SetKey() + SetParameter() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__KeyAgreementPrivateCtx203->nara__crypto__cryp__CryptoContext85

Detail view

Select an entry in the outline.

Methods

AgreeKey function

Produce a common symmetric key via execution of the key-agreement algorithm using a private key and a public key of another side.

virtual ara::core::Result< SymmetricKey::Sptr > AgreeKey (Public Key::Sptr otherSideKey, AlgId targetAlgId, AllowedUsageFlags allowed Usage) const noexcept=0;
SetKey function 2

Configure the context to use the provided key.

Overloads SetKey 2
virtual ara::core::Result< void > SetKey (PrivateKey::Sptr key) noexcept=0; SWS_CRYPT_21313
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50053
SetParameter function 2

Set a parameter of the key agreement identified by parameterName.

Overloads SetParameter 2
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0; SWS_CRYPT_50051
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0; SWS_CRYPT_50052

Type aliases

Sptr type alias

Smart pointer of this interface.

Method documentation

function AgreeKey [SWS_CRYPT_21312] Upstream: RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > AgreeKey (Public Key::Sptr otherSideKey, AlgId targetAlgId, AllowedUsageFlags allowed Usage) const noexcept=0;

Produce a common symmetric key via execution of the key-agreement algorithm using a private key and a public key of another side.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 32f169531b52 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method AgreeKey of class ara::crypto::cryp::KeyAgreementPrivateCtx executes a key agreement algorithm using a private key and the peer's public key to generate a shared symmetric key [SWS_CRYPT_21312]. The peer's public key (otherSideKey), the identifier of the target symmetric algorithm (targetAlgId), and the permissible usage flags (allowedUsage) are passed as parameters [SWS_CRYPT_21312]. Upon successful execution, a ara::core::Result with a SymmetricKey::Sptr is returned, which contains the computed shared secret [SWS_CRYPT_21312]. Interpretation: Since the return occurs directly as a Result and not via an asynchronous future type, the key calculation is likely executed synchronously. Question Q-ab31a8a62bb1c583 (open)

The method is defined as thread-safe and exception safe (noexcept) [SWS_CRYPT_21312]. In the event of an error, rollback semantics apply and a corresponding error code is returned [SWS_CRYPT_21312]:

  • UninitializedContext: The context has not yet been initialized by providing a key, or required parameters were not set in advance via SetParameter() [SWS_CRYPT_21312].
  • CryptoErrc::kIncompatibleObject: The public key is incompatible with the current context [SWS_CRYPT_21312].
  • CryptoErrc::kUsageViolation: The usage restrictions of the private or public key do not contain kAllowKeyAgreement [SWS_CRYPT_21312].
  • CryptoErrc::kInvalidArgument: The passed allowedUsage flags are invalid for a symmetric key [SWS_CRYPT_21312].
  • ara::crypto::CryptoErrc::kUnknownIdentifier: The identifier targetAlgId contains an unsupported value [SWS_CRYPT_21312].
  • CryptoErrc::kBusyResource or CryptoErrc::kEmptyKeySlot: A required resource is busy or a configured KeySlot is empty [SWS_CRYPT_21312].

This text was generated by an AI and serves for technical orientation.

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

Parameter (in)

ParameterBeschreibung
otherSideKeythe public key of the other side of the Key-Agreement
targetAlgIdidentifier of the symmetric target algorithm
allowedUsagethe allowed usage of the target key

Rückgabewert

TypBeschreibung
ara::core::Result<SymmetricKey::Sptr >a result containing either a unique pointer to the SymmetricKey object, which contains the computed shared secret produced by the Key-Agreement algorithm or an error

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key or not all required parameters have been set via SetParameter()
CryptoErrc::kIncompatibleObjectrollback_semantics if the public key is not compatible to this context
CryptoErrc::kInvalidArgumentrollback_semantics if the allowed usage flags are invalid for a symmetric key
CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the private or public key do not include k AllowKeyAgreement
ara::crypto::CryptoErrc::kUnknownIdentifierrollback_semantics if targetAlgId has an unsupported value

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21312
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21312@rel:R25-11#4f58d41f
Content hash
4f58d41f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21312
Status: valid/unmigrated Version: rel:R25-11#26c80425 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_21312@rel:R25-11#26c80425
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4f58d41f2026-09-30
  • R19-11rel:R19-11#3975d40e2026-10-14
  • R20-11rel:R20-11#340c62732026-10-14
  • R21-11rel:R21-11#633195382026-10-14
  • R22-11rel:R22-11#418b5aab2026-10-14
  • R23-11rel:R23-11#28812de12026-10-14
  • R24-11rel:R24-11#c610b1882026-10-14
  • R25-11rel:R25-11#26c804252026-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

function SetKey [SWS_CRYPT_21313] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (PrivateKey::Sptr key) noexcept=0;

Configure the context to use the provided key.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 9ab09291ac6b Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The method SetKey configures the private key agreement context ara::crypto::cryp::KeyAgreementPrivateCtx for the use of the passed private key [SWS_CRYPT_21313]. The call occurs synchronously and passes via parameter key a smart pointer (PrivateKey::Sptr) to the source key object [SWS_CRYPT_21313].

In case of error, the function returns a ara::core::Result<void> with rollback semantics, where the following error codes are specified [SWS_CRYPT_21313]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: The passed key object is incompatible with the context for private keys [SWS_CRYPT_21313].
  • ara::crypto::CryptoErrc::kUsageViolation: The permitted usage of the key does not include kAllowKeyAgreement [SWS_CRYPT_21313].
  • ara::crypto::CryptoErrc::kUnsupported: The specific context exclusively supports setting via a KeySlot [SWS_CRYPT_21313].

With regard to concurrency, the operation is specified as thread-safe (thread-safe) and exception safe (exception safe) [SWS_CRYPT_21313]. Similar to related contexts of the cryptography architecture—such as for key encapsulation [SWS_CRYPT_21413], signature generation [SWS_CRYPT_23515], or key derivation [SWS_CRYPT_21525]—SetKey serves as an elementary configuration step before cryptographic computations can be performed with the loaded key material.

This usage note was generated automatically based on the specification elements.

Implementer's Guide to follow (complexity I2)

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

Parameter (in)

ParameterBeschreibung
keythe source key object

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this private key context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowKey Agreement
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21313@rel:R25-11#3d54d9db
Content hash
3d54d9db
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21313
Status: valid/unmigrated Version: rel:R25-11#616d7c1f 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_21313@rel:R25-11#616d7c1f
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#3d54d9db2026-09-30
  • R20-11rel:R20-11#52811d232026-10-14
  • R21-11rel:R21-11#8def41192026-10-14
  • R22-11rel:R22-11#8a2370692026-10-14
  • R23-11rel:R23-11#817460022026-10-14
  • R24-11rel:R24-11#45330bed2026-10-14
  • R25-11rel:R25-11#616d7c1f2026-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

function SetKey [SWS_CRYPT_50053] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0;

Configure the context to use the key stored in the provided KeySlot at the time the key agreement is performed.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 747e7368bae2 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The SetKey method configures the instance of ara::crypto::cryp::KeyAgreementPrivateCtx such that the private key stored in the passed keySlot is used for a subsequent key agreement [SWS_CRYPT_50053]. The call is synchronous and declared as noexcept.

Usage and Parameters

As an input parameter, the interface expects a KeySlot::Sptr, which must contain a private key [SWS_CRYPT_50053]. The key material is only referenced and evaluated at the point in time when the actual key agreement is executed [SWS_CRYPT_50053]. As an alternative to the KeySlot, the context allows the direct passing of a PrivateKey::Sptr via [SWS_CRYPT_21313].

Error Handling and Concurrency

The method returns a ara::core::Result<void>. In case of an error, rollback semantics apply for the following error codes [SWS_CRYPT_50053]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: The passed keySlot is incompatible with the context [SWS_CRYPT_50053].
  • ara::crypto::CryptoErrc::kUnsupported: The context implementation exclusively supports setting a key via PrivateKey [SWS_CRYPT_50053].

Execution is specified as thread-safe and exception safe [SWS_CRYPT_50053].

This text was generated by an AI based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a private key

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided keySlot is incompatible with this context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a PrivateKey

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

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

function SetParameter [SWS_CRYPT_50051] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0;

Set a parameter of the key agreement identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean input buffer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

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

function SetParameter [SWS_CRYPT_50052] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0;

Set a parameter of the key agreement identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valuean unsigned integer containing the value of the parameter

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support the parameter
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if the provided parameter value is invalid

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

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

Type alias documentation

type alias Sptr [SWS_CRYPT_21301] Upstream: RS_CRYPTO_02104

using Sptr = std::shared_ptr<KeyAgreementPrivateCtx>;

Smart pointer of this interface.

Header-Datei#include "ara/crypto/cryp/key_agreement_private_ctx.h"
Scopeclass ara::crypto::cryp::KeyAgreementPrivateCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21301
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21301@rel:R25-11#e2ebb07f
Content hash
e2ebb07f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21301
Status: valid/unmigrated Version: rel:R25-11#c13d652e 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_21301@rel:R25-11#c13d652e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e2ebb07f2026-09-30
  • R19-11rel:R19-11#c18950c82026-10-14
  • R20-11rel:R20-11#65fb94fe2026-10-14
  • R21-11rel:R21-11#65fb94fe2026-10-14
  • R22-11rel:R22-11#23c185892026-10-14
  • R23-11rel:R23-11#abfd06b32026-10-14
  • R24-11rel:R24-11#abfd06b32026-10-14
  • R25-11rel:R25-11#c13d652e2026-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