DEENESPTFRRUARHIKOZHNL

class ara::crypto::cryp::KeyDerivationFunctionCtx

[SWS_CRYPT_21500] Upstream: RS_CRYPTO_02103

class KeyDerivationFunctionCtx :               public CryptoContext {...};

Key Derivation Function interface.

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

User GuideAI-GENERATED

Securely derives symmetric keys from base keys and configurable context parameters.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 0339805a1afd Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Securely derives symmetric keys from base keys and configurable context parameters.

Interface ara::crypto::cryp::KeyDerivationFunctionCtx serves to derive new symmetric keys from existing key material and configurable context parameters such as salts or counters [SWS_CRYPT_21515]. Prior to key generation using DeriveKey, the context must be initialized with a key or KeySlot via SetKey and optionally configured via SetParameter [SWS_CRYPT_21525]. As an essential security condition, derivation may take place only if the source key material is explicitly authorized for KDF operations and the required usage flags of the target key are compatible.

Context

Class ara::crypto::cryp::KeyDerivationFunctionCtx provides the interface for Key Derivation Functions (KDF) in the crypto module of AUTOSAR Adaptive. Its primary task is to derive new symmetric keys from provided key material and configurable context parameters [SWS_CRYPT_21515].

Typical interaction partners are calling application services, the underlying source material in the form of a SymmetricKey [SWS_CRYPT_21525] or a KeySlot [SWS_CRYPT_50010], and the result of the derivation in the form of a new SymmetricKey::Sptr [SWS_CRYPT_21515]. Additional cryptographic parameters can be passed as memory regions, integers, or auxiliary keys [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009].

Lifecycle

The lifetime and ownership of instances are controlled via the typed smart pointer ara::crypto::cryp::KeyDerivationFunctionCtx::Sptr [SWS_CRYPT_21501]. The creation of a concrete implementation instance is likely performed via a specialized factory or the responsible CryptoProvider, since the class defines a pure virtual interface. Question Q-8ba3d498c9921ab1 (open)

A newly created context is initially in an incomplete state. Only after successful assignment of a key via SetKey [SWS_CRYPT_21525] [SWS_CRYPT_50010] and the setting of required KDF parameters via SetParameter [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009] is the context ready for computation. Regarding concurrency, the interface methods are declared thread-safe and exception-safe ([SWS_CRYPT_21515], [SWS_CRYPT_21525], [SWS_CRYPT_50007]).

Usage Path

The typical call sequence for key derivation comprises three consecutive phases:

  1. Assign base key: The source key material is configured via SetKey. Either an existing key object (SymmetricKey::Sptr) [SWS_CRYPT_21525] or a persistent key slot (KeySlot::Sptr) [SWS_CRYPT_50010] can be passed here.
  2. Configure context parameters: KDF-specific values such as salt, initialization vectors, or iteration counters are defined via SetParameter. Supported types include memory buffers (ReadOnlyMemRegion) [SWS_CRYPT_50007], 64-bit integers (std::uint64_t) [SWS_CRYPT_50008], and additional symmetric keys (SymmetricKey::Sptr) [SWS_CRYPT_50009].
  3. Derive target key: Calling DeriveKey performs the cryptographic computation [SWS_CRYPT_21515]. The method expects the target algorithm identifier (AlgId) as well as the allowed usage flags (AllowedUsageFlags) and, in case of success, returns a SymmetricKey::Sptr.
Sequence of key derivation with KeyDerivationFunctionCtxApplicationKeyDerivationFunctionCtxSymmetricKeySetKey(key)Result<void>SetParameter("salt", saltValue)Result<void>DeriveKey(targetAlgId, allowedUsage)Generate derived keyResult<SymmetricKey::Sptr>

Sequence diagram: Typical call sequence for deriving a symmetric key via KeyDerivationFunctionCtx. Sources: [SWS_CRYPT_21525], [SWS_CRYPT_50007], [SWS_CRYPT_21515].

Error Scenarios

The interface methods signal error cases via ara::core::Result using defined error codes:

  • Incomplete initialization: If DeriveKey is called without sufficient configuration, the call fails with ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_21515]. If an assigned KeySlot is empty at execution time, ara::crypto::CryptoErrc::kEmptyKeySlot is reported [SWS_CRYPT_21515].
  • Violation of usage rights: The source key must permit the operation kAllowKeyDerivation; otherwise, ara::crypto::CryptoErrc::kUsageViolation is triggered ([SWS_CRYPT_21525], [SWS_CRYPT_21515], [SWS_CRYPT_50009]). If the target includes kAllowPlaintextExport, the source key must additionally exhibit kAllowDerivedPlaintextExport; otherwise, kUsageViolation likewise results [SWS_CRYPT_21515].
  • Incompatibility and invalid arguments: An unsupported target algorithm yields UnknownIdentifier, and mutually incompatible usage flags produce ara::crypto::CryptoErrc::kIncompatibleArguments [SWS_CRYPT_21515]. SetKey acknowledges key objects or KeySlots that are unsuitable for the context with ara::crypto::CryptoErrc::kIncompatibleObject ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Invalid parameter values lead to ara::crypto::CryptoErrc::kInvalidArgument ([SWS_CRYPT_50007], [SWS_CRYPT_50008]).
  • Unsupported interface functions: If a concrete implementation exclusively supports KeySlot or exclusively supports SymmetricKey, the respective other SetKey call leads to ara::crypto::CryptoErrc::kUnsupported ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Unknown parameter names for SetParameter likewise produce kUnsupported ([SWS_CRYPT_50007], [SWS_CRYPT_50008], [SWS_CRYPT_50009]).
  • Resource conflicts: If a crypto resource required for the computation is locked, DeriveKey signals the error code ara::crypto::CryptoErrc::kBusyResource [SWS_CRYPT_21515].

This guide was curated by an AI. All technical statements are based exclusively on the specification of AUTOSAR Adaptive (Release R25-11).

Member map

Type aliases

1

Class diagram

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

G nara__crypto__cryp__KeyDerivationFunctionCtx485 KeyDerivationFunctionCtx + DeriveKey() + SetKey() + SetParameter() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__KeyDerivationFunctionCtx485->nara__crypto__cryp__CryptoContext85

Detail view

Select an entry in the outline.

Methods

DeriveKey function

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) const noexcept=0;
SetKey function 2

Configure the context to use the provided key.

Overloads SetKey 2
virtual ara::core::Result< void > SetKey (SymmetricKey::Sptr key) noexcept=0; SWS_CRYPT_21525
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50010
SetParameter function 3

Set a parameter of the KDF identified by parameterName.

Overloads SetParameter 3
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, ReadOnlyMemRegion value) noexcept=0; SWS_CRYPT_50007
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, std::uint64_t value) noexcept=0; SWS_CRYPT_50008
virtual ara::core::Result< void > SetParameter (ara::core::StringView parameterName, SymmetricKey::Sptr value) noexcept=0; SWS_CRYPT_50009

Type aliases

Sptr type alias

Smart pointer of the interface.

Method documentation

function DeriveKey [SWS_CRYPT_21515] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111, RS_CRYPTO_02115

virtual ara::core::Result< SymmetricKey::Sptr > DeriveKey (AlgId targetAlgId, AllowedUsageFlags allowedUsage) const noexcept=0;

Derive a symmetric key from the provided key material and provided context configuration, e.g., salt, context, IV, iteration count.

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

The method DeriveKey of class ara::crypto::cryp::KeyDerivationFunctionCtx synchronously derives a new symmetric key from the existing key material as well as the parameters stored in the context, such as salt, initialization vector (IV), or iteration counter [SWS_CRYPT_21515].

use

When called, the identifier of the desired cryptographic algorithm is passed via targetAlgId and the permitted usage flags via allowedUsage [SWS_CRYPT_21515]. As return value, the function synchronously provides a ara::core::Result<SymmetricKey::Sptr> that, upon successful execution, provides a smart pointer to the created symmetric key object [SWS_CRYPT_21515].

Error handling

If key generation fails, the function guarantees rollback semantics and returns a corresponding error code in ara::core::Result [SWS_CRYPT_21515]:

  • UnknownIdentifier: Reported if the passed value for targetAlgId is not supported [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: Occurs when the usage flags specified in allowedUsage are incompatible with the target algorithm [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUninitializedContext: The context was not sufficiently initialized before key derivation [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kBusyResource: A resource required for key derivation is busy [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kEmptyKeySlot: A KeySlot configured for the operation is currently empty [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUsageViolation: Occurs when the usage permission of the source key does not contain kAllowKeyDerivation or when the target requires kAllowPlaintextExport but the source does not allow kAllowDerivedPlaintextExport [SWS_CRYPT_21515].

Concurrency and Execution Context

The method is specified as noexcept, provides exception safety (exception safe), and is designed to be thread-safe for concurrent calls [SWS_CRYPT_21515].

This usage note was generated automatically and is based exclusively on the specification data of AUTOSAR R25-11.

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

Parameter (in)

ParameterBeschreibung
targetAlgIdthe identifier of the target symmetric crypto algorithm
allowedUsagethe flags that define a list of allowed usages in which the target 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
UnknownIdentifierif targetAlgId has an unsupported value
ara::crypto::CryptoErrc::kIncompatibleArgumentsrollback_semantics if the allowedUsage of the derived key is incompatible with the targetAlgId.
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context has not been sufficiently initialized
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics a required resource is busy
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the source key does not include kAllowKey Derivation
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowedUsage of the target key includes kAllowPlaintext Export but the allowed usage of the source key does not include k AllowDerivedPlaintextExport

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21515
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21515@rel:R25-11#4792442a
Content hash
4792442a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21515
Status: valid/unmigrated Version: rel:R25-11#9b38f620 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_21515@rel:R25-11#9b38f620
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4792442a2026-09-30
  • R19-11rel:R19-11#d747dcdf2026-10-14
  • R20-11rel:R20-11#20ca9f5b2026-10-14
  • R21-11rel:R21-11#4e7c875e2026-10-14
  • R22-11rel:R22-11#1edafd582026-10-14
  • R23-11rel:R23-11#09e184cc2026-10-14
  • R24-11rel:R24-11#f4962bb42026-10-14
  • R25-11rel:R25-11#9b38f6202026-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_21525] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (SymmetricKey::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: 3738ec7c9403 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The method SetKey serves to configure a KeyDerivationFunctionCtx with the symmetric key material provided as key [SWS_CRYPT_21525]. The function is executed synchronously and signals the outcome of the operation via the return type ara::core::Result<void> [SWS_CRYPT_21525].

Concurrency and Execution Safety

The interface is provided with the specifier noexcept and classified as exception-safe [SWS_CRYPT_21525]. In addition, execution is specified as thread-safe, so that the call can also take place safely in concurrent environments [SWS_CRYPT_21525].

Error handling

In case of an error, no empty success status is returned, but rather a corresponding error code, with a rollback semantics defined for all error cases [SWS_CRYPT_21525]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: The passed key object is incompatible with the symmetric context [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUsageViolation: The usage permitted for the key does not include the permission kAllowKey Derivation [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUnsupported: The concrete context exclusively supports assignment via a KeySlot [SWS_CRYPT_21525].

Interaction

If the underlying context implementation does not support the direct assignment of a SymmetricKey::Sptr or if the key is instead to be obtained from a slot only at the time of key derivation, the alternative overload of SetKey with a KeySlot::Sptr is available [SWS_CRYPT_50010].

This usage note was generated automatically based on the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I2)

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

Parameter (in)

ParameterBeschreibung
keythe source key-material

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 symmetric key context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowKey Derivation
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_21525
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21525@rel:R25-11#a05f5b63
Content hash
a05f5b63
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21525
Status: valid/unmigrated Version: rel:R25-11#eca8e8d8 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_21525@rel:R25-11#eca8e8d8
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#a05f5b632026-09-30
  • R20-11rel:R20-11#33ea902d2026-10-14
  • R21-11rel:R21-11#46a880c32026-10-14
  • R22-11rel:R22-11#fed116fd2026-10-14
  • R23-11rel:R23-11#3143ac902026-10-14
  • R24-11rel:R24-11#db6fdd502026-10-14
  • R25-11rel:R25-11#eca8e8d82026-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_50010] 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 derivation is performed.

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

The virtual method SetKey configures the context KeyDerivationFunctionCtx for using a key stored in a passed KeySlot as soon as the key derivation is performed [SWS_CRYPT_50010]. As parameter, the function accepts a smart pointer KeySlot::Sptr that references a slot containing a symmetric key [SWS_CRYPT_50010].

The call is synchronous and specified as exception-safe (exception safe) and non-throwing (noexcept) [SWS_CRYPT_50010]. The function returns a ara::core::Result<void> that is empty in case of success or encapsulates a corresponding error code in case of an error [SWS_CRYPT_50010]. If an error occurs, the previous state is preserved via rollback semantics [SWS_CRYPT_50010]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: Returned if the provided keySlot is incompatible with the current context [SWS_CRYPT_50010].
  • ara::crypto::CryptoErrc::kUnsupported: Occurs if the concrete context exclusively supports setting a SymmetricKey [SWS_CRYPT_50010].

For concurrent access from multiple threads, the method is designated as thread-safe (thread-safe) [SWS_CRYPT_50010]. With respect to interplay, the operation serves as an alternative to the overload of SetKey with a SymmetricKey::Sptr, which accepts the key material directly instead of a slot reference [SWS_CRYPT_21525].

This usage note was created automatically based on the AUTOSAR specification.

Implementer's Guide to follow (complexity I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a symmetric 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 SymmetricKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50010@rel:R25-11#8eb8c6c4
Content hash
8eb8c6c4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50010
Status: valid/unmigrated Version: rel:R25-11#8eb8c6c4 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_50010@rel:R25-11#8eb8c6c4
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_50007] 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 KDF identified by parameterName.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
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_50007
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50007@rel:R25-11#4c314faf
Content hash
4c314faf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50007
Status: valid/unmigrated Version: rel:R25-11#4c314faf 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_50007@rel:R25-11#4c314faf
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_50008] 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 KDF identified by parameterName.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
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_50008
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50008@rel:R25-11#26b90c19
Content hash
26b90c19
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50008
Status: valid/unmigrated Version: rel:R25-11#26b90c19 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_50008@rel:R25-11#26b90c19
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_50009] Upstream: RS_CRYPTO_02102, RS_CRYPTO_02107, RS_CRYPTO_02108, RS_CRYPTO_02111

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

Set a parameter of the KDF identified by parameterName.

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

Parameter (in)

ParameterBeschreibung
parameterNamean identifier of the parameter
valueSymmetricKey being used as the input 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::kIncompatibleObjectrollback_semantics if the provided key is incompatible with this context
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowKey Derivation

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50009
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50009@rel:R25-11#92b1f35c
Content hash
92b1f35c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50009
Status: valid/unmigrated Version: rel:R25-11#92b1f35c 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_50009@rel:R25-11#92b1f35c
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_21501] Upstream: RS_CRYPTO_02103

using Sptr = std::shared_ptr<KeyDerivationFunctionCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/key_derivation_function_ctx.h"
Scopeclass ara::crypto::cryp::KeyDerivationFunctionCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_21501
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_21501@rel:R25-11#4fb24cfc
Content hash
4fb24cfc
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_21501
Status: valid/unmigrated Version: rel:R25-11#6ebb94e3 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_21501@rel:R25-11#6ebb94e3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4fb24cfc2026-09-30
  • R19-11rel:R19-11#e5d0fc6d2026-10-14
  • R20-11rel:R20-11#c13472492026-10-14
  • R21-11rel:R21-11#c13472492026-10-14
  • R22-11rel:R22-11#461242d92026-10-14
  • R23-11rel:R23-11#aa4dc94a2026-10-14
  • R24-11rel:R24-11#aa4dc94a2026-10-14
  • R25-11rel:R25-11#6ebb94e32026-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