DEENESPTFRRUARHIKOZHNL

clase 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

Guía del usuarioGENERADO POR IA

Deriva de forma segura claves simétricas a partir de claves base y parámetros de contexto configurables.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 0339805a1afd Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Deriva de forma segura claves simétricas a partir de claves base y parámetros de contexto configurables.

La interfaz ara::crypto::cryp::KeyDerivationFunctionCtx sirve para derivar nuevas claves simétricas a partir de material de clave existente y parámetros de contexto configurables, como sales o contadores [SWS_CRYPT_21515]. Antes de la generación de la clave mediante DeriveKey, el contexto debe inicializarse mediante SetKey con una clave o KeySlot y configurarse opcionalmente a través de SetParameter [SWS_CRYPT_21525]. Como condición de seguridad esencial, la derivación solo debe tener lugar si el material de clave de origen está explícitamente autorizado para operaciones KDF y los flags de uso requeridos para la clave de destino son compatibles.

Contexto

La clase ara::crypto::cryp::KeyDerivationFunctionCtx proporciona la interfaz para funciones de derivación de claves (Key Derivation Functions, KDF) en el módulo criptográfico de AUTOSAR Adaptive. Su cometido principal consiste en derivar nuevas claves simétricas a partir de material de clave especificado y parámetros de contexto configurables [SWS_CRYPT_21515].

Los interlocutores habituales de interacción son los servicios de aplicación invocadores, el material de origen subyacente en forma de un SymmetricKey [SWS_CRYPT_21525] o un KeySlot [SWS_CRYPT_50010], así como el resultado de la derivación en forma de un nuevo SymmetricKey::Sptr [SWS_CRYPT_21515]. Se pueden transferir parámetros criptográficos adicionales como regiones de memoria, números enteros o claves auxiliares [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009].

Ciclo de vida

El ciclo de vida y la propiedad de las instancias se controlan a través del puntero inteligente tipado ara::crypto::cryp::KeyDerivationFunctionCtx::Sptr [SWS_CRYPT_21501]. La creación de una instancia de implementación concreta probablemente se realice mediante una factoría especializada o el CryptoProvider responsable, dado que la clase define una interfaz puramente virtual. Pregunta Q-8ba3d498c9921ab1 (abierta)

Un contexto recién creado se encuentra inicialmente en un estado incompleto. Solo tras la asignación correcta de una clave a través de SetKey [SWS_CRYPT_21525] [SWS_CRYPT_50010] y el establecimiento de los parámetros KDF necesarios mediante SetParameter [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009], el contexto está listo para el cálculo. Por lo que respecta a la concurrencia, los métodos de la interfaz están declarados como seguros para subprocesos y seguros frente a excepciones ([SWS_CRYPT_21515], [SWS_CRYPT_21525], [SWS_CRYPT_50007]).

Ruta de uso

La secuencia de llamadas típica para la derivación de claves comprende tres fases consecutivas:

  1. Asignar clave base: a través de SetKey se configura el material de clave de origen. En este paso se puede pasar bien un objeto de clave existente (SymmetricKey::Sptr) [SWS_CRYPT_21525], bien un espacio de almacenamiento de claves persistente (KeySlot::Sptr) [SWS_CRYPT_50010].
  2. Configurar parámetros de contexto: los valores específicos de la KDF, como sal, vectores de inicialización o contadores de iteraciones, se definen a través de SetParameter. Se admiten búferes de memoria (ReadOnlyMemRegion) [SWS_CRYPT_50007], enteros de 64 bits (std::uint64_t) [SWS_CRYPT_50008] y claves simétricas adicionales (SymmetricKey::Sptr) [SWS_CRYPT_50009].
  3. Derivar clave de destino: la llamada a DeriveKey ejecuta el cálculo criptográfico [SWS_CRYPT_21515]. El método espera el identificador del algoritmo de destino (AlgId), así como los flags de uso permitidos (AllowedUsageFlags), y devuelve un SymmetricKey::Sptr en caso de éxito.
Flujo de la derivación de claves con KeyDerivationFunctionCtxAplicaciónKeyDerivationFunctionCtxSymmetricKeySetKey(key)Result<void>SetParameter("salt", saltValue)Result<void>DeriveKey(targetAlgId, allowedUsage)Generar clave derivadaResult<SymmetricKey::Sptr>

Diagrama de secuencia: secuencia de llamadas típica para la derivación de una clave simétrica a través de KeyDerivationFunctionCtx. Fuentes: [SWS_CRYPT_21525], [SWS_CRYPT_50007], [SWS_CRYPT_21515].

Escenarios de error

Los métodos de la interfaz señalan las situaciones de error mediante ara::core::Result utilizando códigos de error definidos:

  • Inicialización incompleta: si se invoca DeriveKey sin una configuración suficiente, la llamada falla con ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_21515]. Si un KeySlot asignado está vacío en el momento de la ejecución, se notifica ara::crypto::CryptoErrc::kEmptyKeySlot [SWS_CRYPT_21515].
  • Vulneración de derechos de uso: la clave de origen debe permitir la operación kAllowKeyDerivation; de lo contrario, se genera ara::crypto::CryptoErrc::kUsageViolation ([SWS_CRYPT_21525], [SWS_CRYPT_21515], [SWS_CRYPT_50009]). Si el destino incluye kAllowPlaintextExport, la clave de origen debe presentar adicionalmente kAllowDerivedPlaintextExport; de lo contrario, el resultado también es kUsageViolation [SWS_CRYPT_21515].
  • Incompatibilidad y argumentos no válidos: un algoritmo de destino no admitido produce UnknownIdentifier, y unos flags de uso incompatibles entre sí generan ara::crypto::CryptoErrc::kIncompatibleArguments [SWS_CRYPT_21515]. Ante objetos de clave o KeySlots inadecuados para el contexto, SetKey responde con ara::crypto::CryptoErrc::kIncompatibleObject ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Los valores de parámetro no válidos dan lugar a ara::crypto::CryptoErrc::kInvalidArgument ([SWS_CRYPT_50007], [SWS_CRYPT_50008]).
  • Funciones de interfaz no compatibles: si una implementación concreta admite exclusivamente KeySlot o exclusivamente SymmetricKey, la otra llamada a SetKey respectiva produce ara::crypto::CryptoErrc::kUnsupported ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Los nombres de parámetros desconocidos en SetParameter generan igualmente kUnsupported ([SWS_CRYPT_50007], [SWS_CRYPT_50008], [SWS_CRYPT_50009]).
  • Conflictos de recursos: si un recurso criptográfico necesario para el cálculo está bloqueado, DeriveKey señala el código de error ara::crypto::CryptoErrc::kBusyResource [SWS_CRYPT_21515].

Esta guía ha sido elaborada por una IA. Todas las afirmaciones técnicas se basan exclusivamente en la especificación de AUTOSAR Adaptive (Release R25-11).

Mapa de miembros

Alias de tipo

1

Diagrama de clases

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

Vista de detalle

Selecciona una entrada en el índice.

Métodos

DeriveKey función

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 función 2

Configure the context to use the provided key.

Sobrecargas 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 función 3

Set a parameter of the KDF identified by parameterName.

Sobrecargas 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

Alias de tipo

Sptr alias de tipo

Smart pointer of the interface.

Documentación de los métodos

función 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.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: ad7de7f8f0b6 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

El método DeriveKey de la clase ara::crypto::cryp::KeyDerivationFunctionCtx deriva de forma síncrona una nueva clave simétrica a partir del material de clave existente y de los parámetros almacenados en el contexto, como el vector de inicialización (IV), el salt o el contador de iteraciones [SWS_CRYPT_21515].

usar

En la llamada se pasan el identificador del algoritmo criptográfico deseado a través de targetAlgId y los indicadores de uso permitidos a través de allowedUsage [SWS_CRYPT_21515]. Como valor de retorno, la función proporciona de forma síncrona un ara::core::Result<SymmetricKey::Sptr> que, en caso de ejecución correcta, suministra un puntero inteligente al objeto de clave simétrica generado [SWS_CRYPT_21515].

Manejo de errores

Si la generación de claves falla, la función garantiza una semántica de reversión y devuelve el código de error correspondiente en ara::core::Result [SWS_CRYPT_21515]:

  • UnknownIdentifier: Se notifica si el valor pasado para targetAlgId no es compatible [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: Se produce cuando los indicadores de uso especificados en allowedUsage no son compatibles con el algoritmo de destino [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUninitializedContext: El contexto no se inicializó suficientemente antes de la derivación de claves [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kBusyResource: Un recurso necesario para la derivación de claves está ocupado [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kEmptyKeySlot: Un KeySlot configurado para la operación está actualmente vacío [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUsageViolation: Se produce si la autorización de uso de la clave de origen no contiene kAllowKeyDerivation o si el destino requiere kAllowPlaintextExport, pero el origen no permite kAllowDerivedPlaintextExport [SWS_CRYPT_21515].

Concurrencia y contexto de ejecución

El método está especificado como noexcept, ofrece seguridad ante excepciones (exception safe) y está diseñado como seguro para subprocesos (thread-safe) para llamadas simultáneas [SWS_CRYPT_21515].

Esta nota de uso se generó automáticamente y se basa exclusivamente en los datos de especificación de 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#f286740e
Content hash
f286740e
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

función 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.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 3738ec7c9403 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

usar

El método SetKey sirve para configurar un KeyDerivationFunctionCtx con el material de clave simétrica proporcionado como key [SWS_CRYPT_21525]. La función se ejecuta de forma síncrona y señala el resultado de la operación a través del tipo de retorno ara::core::Result<void> [SWS_CRYPT_21525].

Concurrencia y seguridad de ejecución

La interfaz cuenta con el especificador noexcept y está clasificada como exception-safe [SWS_CRYPT_21525]. Además, la ejecución está especificada como thread-safe, de modo que la llamada también puede realizarse de forma segura en entornos concurrentes [SWS_CRYPT_21525].

Manejo de errores

En caso de error no se devuelve un estado de éxito vacío, sino un código de error correspondiente, definiéndose para todos los casos de error una semántica de reversión [SWS_CRYPT_21525]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: el objeto de clave pasado es incompatible con el contexto simétrico [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUsageViolation: El uso admisible para la clave no incluye el permiso kAllowKey Derivation [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUnsupported: El contexto concreto solo admite la asignación a través de un KeySlot [SWS_CRYPT_21525].

Interacción

En caso de que la implementación del contexto subyacente no admita la asignación directa de un SymmetricKey::Sptr o se pretenda obtener la clave de un espacio de almacenamiento solo en el momento de la derivación de claves, está disponible la sobrecarga alternativa de SetKey con un KeySlot::Sptr [SWS_CRYPT_50010].

Esta nota de uso fue generada automáticamente sobre la base de la especificación AUTOSAR R25-11.

Guía del implementador pendiente (complejidad 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#a0811b4b
Content hash
a0811b4b
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

función 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.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: aa74de7c29b5 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

El método virtual SetKey configura el contexto KeyDerivationFunctionCtx para el uso de una clave almacenada en un KeySlot pasado tan pronto como se lleve a cabo la derivación de claves [SWS_CRYPT_50010]. Como parámetro, la función recibe un puntero inteligente KeySlot::Sptr que referencia una ranura con una clave simétrica [SWS_CRYPT_50010].

La llamada se efectúa de manera síncrona y está especificada como segura ante excepciones (exception safe) y no lanzadora (noexcept) [SWS_CRYPT_50010]. La función devuelve un ara::core::Result<void>, que en caso de éxito está vacío o, en caso de error, encapsula un código de error correspondiente [SWS_CRYPT_50010]. Si se produce un error, se preserva el estado anterior mediante una semántica de reversión [SWS_CRYPT_50010]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: Se devuelve si el keySlot proporcionado es incompatible con el contexto actual [SWS_CRYPT_50010].
  • ara::crypto::CryptoErrc::kUnsupported: Se produce cuando el contexto concreto solo admite el establecimiento de un SymmetricKey [SWS_CRYPT_50010].

Para el acceso simultáneo desde varios hilos, el método está designado como seguro para subprocesos (thread-safe) [SWS_CRYPT_50010]. En cuanto a la interacción, la operación sirve como alternativa a la sobrecarga de SetKey con un SymmetricKey::Sptr, la cual recibe el material de clave directamente en lugar de una referencia de ranura [SWS_CRYPT_21525].

Esta nota de uso se ha elaborado de manera automatizada a partir de la especificación de AUTOSAR.

Guía del implementador pendiente (complejidad 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#4e838a0f
Content hash
4e838a0f
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

función 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#0bdf7f43
Content hash
0bdf7f43
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

función 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#91cd399f
Content hash
91cd399f
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

función 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#04f3dd0f
Content hash
04f3dd0f
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

Documentación de los alias de tipo

alias de tipo 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#56197354
Content hash
56197354
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