DEENESPTFRRUARHIKOZHNL

classe 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

Guia do utilizadorGERADO POR IA

Deriva chaves simétricas com segurança a partir de chaves base e parâmetros de contexto configuráveis.
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 0339805a1afd Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Deriva chaves simétricas com segurança a partir de chaves base e parâmetros de contexto configuráveis.

A interface ara::crypto::cryp::KeyDerivationFunctionCtx destina-se à derivação de novas chaves simétricas a partir de material de chave existente e de parâmetros de contexto configuráveis, como salts ou contadores [SWS_CRYPT_21515]. Antes da geração da chave mediante DeriveKey, o contexto deve ser inicializado por meio de SetKey com uma chave ou KeySlot e, opcionalmente, configurado através de SetParameter [SWS_CRYPT_21525]. Como condição essencial de segurança, a derivação só pode ocorrer se o material de chave de origem estiver explicitamente autorizado para operações de KDF e as flags de uso exigidas para a chave de destino forem compatíveis.

Contexto

A classe ara::crypto::cryp::KeyDerivationFunctionCtx fornece a interface para funções de derivação de chave (Key Derivation Functions, KDF) no módulo criptográfico do AUTOSAR Adaptive. A sua principal tarefa consiste em derivar novas chaves simétricas a partir de material de chave predefinido e parâmetros de contexto configuráveis [SWS_CRYPT_21515].

Parceiros de interação típicos são serviços de aplicação chamadores, o material de origem subjacente sob a forma de um SymmetricKey [SWS_CRYPT_21525] ou de um KeySlot [SWS_CRYPT_50010], bem como o resultado da derivação sob a forma de um novo SymmetricKey::Sptr [SWS_CRYPT_21515]. Parâmetros criptográficos adicionais podem ser passados como regiões de memória, números inteiros ou chaves auxiliares [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009].

Ciclo de vida

O ciclo de vida e a posse de instâncias são controlados por meio do ponteiro inteligente tipado ara::crypto::cryp::KeyDerivationFunctionCtx::Sptr [SWS_CRYPT_21501]. A criação de uma instância concreta de implementação deve ocorrer através de uma factory especializada ou do CryptoProvider responsável, visto que a classe define uma interface puramente virtual. Pergunta Q-8ba3d498c9921ab1 (aberta)

Um contexto recém-criado encontra-se inicialmente em um estado incompleto. Somente após a atribuição bem-sucedida de uma chave via SetKey [SWS_CRYPT_21525] [SWS_CRYPT_50010] e a definição dos parâmetros de KDF necessários através de SetParameter [SWS_CRYPT_50007] [SWS_CRYPT_50008] [SWS_CRYPT_50009] é que o contexto fica pronto para o cálculo. Quanto à concorrência, os métodos da interface são declarados como thread-safe e seguros para exceções ([SWS_CRYPT_21515], [SWS_CRYPT_21525], [SWS_CRYPT_50007]).

Caminho de utilização

A sequência típica de chamadas para a derivação de chave compreende três fases consecutivas:

  1. Atribuir chave base: o material de chave de partida é configurado através de SetKey. Aqui, pode ser passado um objeto de chave existente (SymmetricKey::Sptr) [SWS_CRYPT_21525] ou um local de armazenamento persistente de chave (KeySlot::Sptr) [SWS_CRYPT_50010].
  2. Configurar parâmetros de contexto: valores específicos de KDF, como salt, vetores de inicialização ou contadores de iterações, são definidos através de SetParameter. Suportam-se buffers de memória (ReadOnlyMemRegion) [SWS_CRYPT_50007], inteiros de 64 bits (std::uint64_t) [SWS_CRYPT_50008] e chaves simétricas adicionais (SymmetricKey::Sptr) [SWS_CRYPT_50009].
  3. Derivar chave de destino: a chamada de DeriveKey executa o cálculo criptográfico [SWS_CRYPT_21515]. O método espera o identificador do algoritmo de destino (AlgId), bem como as flags de uso permitidas (AllowedUsageFlags), e retorna um SymmetricKey::Sptr em caso de sucesso.
Sequência da derivação de chaves com KeyDerivationFunctionCtxAplicaçãoKeyDerivationFunctionCtxSymmetricKeySetKey(key)Result<void>SetParameter("salt", saltValue)Result<void>DeriveKey(targetAlgId, allowedUsage)Gerar chave derivadaResult<SymmetricKey::Sptr>

Diagrama de sequência: sequência típica de chamadas para derivação de uma chave simétrica via KeyDerivationFunctionCtx. Fontes: [SWS_CRYPT_21525], [SWS_CRYPT_50007], [SWS_CRYPT_21515].

Cenários de erro

Os métodos da interface sinalizam casos de erro via ara::core::Result utilizando códigos de erro definidos:

  • Inicialização incompleta: se DeriveKey for chamado sem configuração suficiente, a chamada falha com ara::crypto::CryptoErrc::kUninitializedContext [SWS_CRYPT_21515]. Se um KeySlot atribuído estiver vazio no momento da execução, ara::crypto::CryptoErrc::kEmptyKeySlot será reportado [SWS_CRYPT_21515].
  • Violação de direitos de uso: a chave de origem deve permitir a operação kAllowKeyDerivation, caso contrário ara::crypto::CryptoErrc::kUsageViolation é disparado ([SWS_CRYPT_21525], [SWS_CRYPT_21515], [SWS_CRYPT_50009]). Se o destino contiver kAllowPlaintextExport, a chave de origem também deve apresentar kAllowDerivedPlaintextExport, sob pena de resultar igualmente em kUsageViolation [SWS_CRYPT_21515].
  • Incompatibilidade e argumentos inválidos: um algoritmo de destino não suportado retorna UnknownIdentifier, e flags de uso incompatíveis entre si geram ara::crypto::CryptoErrc::kIncompatibleArguments [SWS_CRYPT_21515]. Objetos de chave ou KeySlots inadequados para o contexto são acusados por SetKey com ara::crypto::CryptoErrc::kIncompatibleObject ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Valores de parâmetros inválidos levam a ara::crypto::CryptoErrc::kInvalidArgument ([SWS_CRYPT_50007], [SWS_CRYPT_50008]).
  • Funções de interface não suportadas: se uma implementação concreta suportar exclusivamente KeySlot ou exclusivamente SymmetricKey, a respectiva outra chamada de SetKey resultará em ara::crypto::CryptoErrc::kUnsupported ([SWS_CRYPT_21525], [SWS_CRYPT_50010]). Nomes de parâmetros desconhecidos em SetParameter geram igualmente kUnsupported ([SWS_CRYPT_50007], [SWS_CRYPT_50008], [SWS_CRYPT_50009]).
  • Conflitos de recursos: se um recurso criptográfico necessário para o cálculo estiver bloqueado, DeriveKey sinaliza o código de erro ara::crypto::CryptoErrc::kBusyResource [SWS_CRYPT_21515].

Este guia foi curado por uma IA. Todas as afirmações técnicas baseiam-se exclusivamente na especificação do AUTOSAR Adaptive (Release R25-11).

Mapa de membros

Aliases de tipo

1

Diagrama de classes

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 detalhes

Selecione uma entrada no índice.

Métodos

DeriveKey função

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 função 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 função 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

Aliases de tipo

Sptr alias de tipo

Smart pointer of the interface.

Documentação dos métodos

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: ad7de7f8f0b6 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método DeriveKey da classe ara::crypto::cryp::KeyDerivationFunctionCtx deriva sincronicamente uma nova chave simétrica a partir do material de chave existente, bem como dos parâmetros armazenados no contexto, como salt, vetor de inicialização (IV) ou contador de iterações [SWS_CRYPT_21515].

usar

Na chamada, o identificador do algoritmo criptográfico pretendido é passado via targetAlgId e os sinalizadores de uso permitidos via allowedUsage [SWS_CRYPT_21515]. Como valor de retorno, a função fornece sincronicamente um ara::core::Result<SymmetricKey::Sptr> que, em caso de execução bem-sucedida, disponibiliza um smart pointer para o objeto de chave simétrica gerado [SWS_CRYPT_21515].

Tratamento de erros

Se a geração da chave falhar, a função garante semântica de rollback e retorna um código de erro correspondente no ara::core::Result [SWS_CRYPT_21515]:

  • UnknownIdentifier: é reportado caso o valor passado para targetAlgId não seja suportado [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kIncompatibleArguments: ocorre quando os sinalizadores de uso definidos em allowedUsage não são compatíveis com o algoritmo de destino [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUninitializedContext: o contexto não foi suficientemente inicializado antes da derivação da chave [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kBusyResource: um recurso necessário para a derivação da chave está ocupado [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kEmptyKeySlot: um KeySlot configurado para a operação está atualmente vazio [SWS_CRYPT_21515].
  • ara::crypto::CryptoErrc::kUsageViolation: ocorre quando a permissão de uso da chave de origem não contém kAllowKeyDerivation ou quando o destino exige kAllowPlaintextExport, mas a origem não permite kAllowDerivedPlaintextExport [SWS_CRYPT_21515].

Concorrência e contexto de execução

O método é especificado como noexcept, oferece segurança de exceção (exception safe) e foi concebido como thread-safe para chamadas simultâneas [SWS_CRYPT_21515].

Esta nota de utilização foi gerada automaticamente e baseia-se exclusivamente nos dados de especificação da 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#4c54677d
Content hash
4c54677d
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

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 3738ec7c9403 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

usar

O método SetKey serve para a configuração de um KeyDerivationFunctionCtx com o material de chave simétrica disponibilizado como key [SWS_CRYPT_21525]. A função é executada sincronicamente e sinaliza o resultado da operação por meio do tipo de retorno ara::core::Result<void> [SWS_CRYPT_21525].

Simultaneidade e segurança de execução

A interface é fornecida com o especificador noexcept e classificada como exception-safe [SWS_CRYPT_21525]. Além disso, a execução é especificada como thread-safe, de modo que a chamada também pode ocorrer de forma segura em ambientes concorrentes [SWS_CRYPT_21525].

Tratamento de erros

Em caso de erro, não é retornado um status de sucesso vazio, mas sim um código de erro correspondente, estando definida uma semântica de reversão para todos os casos de erro [SWS_CRYPT_21525]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: o objeto de chave fornecido é incompatível com o contexto simétrico [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUsageViolation: O uso permitido para a chave não inclui a permissão kAllowKey Derivation [SWS_CRYPT_21525].
  • ara::crypto::CryptoErrc::kUnsupported: O contexto concreto suporta exclusivamente a atribuição através de um KeySlot [SWS_CRYPT_21525].

Interação

Se a implementação de contexto subjacente não suportar a atribuição direta de um SymmetricKey::Sptr ou se a chave, em vez disso, só deva ser obtida a partir de um slot de armazenamento no momento da derivação da chave, está disponível a sobrecarga alternativa de SetKey com um KeySlot::Sptr [SWS_CRYPT_50010].

Esta nota de utilização foi gerada automaticamente com base na especificação AUTOSAR R25-11.

Guia do implementador em breve (complexidade 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#dd5e0c96
Content hash
dd5e0c96
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

função 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.

GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: aa74de7c29b5 Procedência
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

O método virtual SetKey configura o contexto KeyDerivationFunctionCtx para a utilização de uma chave armazenada em um KeySlot passado, assim que a derivação de chave for executada [SWS_CRYPT_50010]. Como parâmetro, a função recebe um smart pointer KeySlot::Sptr que referencia um slot com uma chave simétrica [SWS_CRYPT_50010].

A chamada ocorre de forma síncrona e é especificada como segura contra exceções (exception safe) e não lançadora (noexcept) [SWS_CRYPT_50010]. A função retorna um ara::core::Result<void> que, em caso de sucesso, está vazio ou, em caso de erro, encapsula um código de erro correspondente [SWS_CRYPT_50010]. Se ocorrer um erro, o estado anterior é preservado por meio de uma semântica de rollback [SWS_CRYPT_50010]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: é retornado se o keySlot fornecido for incompatível com o contexto atual [SWS_CRYPT_50010].
  • ara::crypto::CryptoErrc::kUnsupported: ocorre se o contexto concreto suportar exclusivamente a definição de um SymmetricKey [SWS_CRYPT_50010].

Para o acesso simultâneo a partir de múltiplas threads, o método é indicado como thread-safe (thread-safe) [SWS_CRYPT_50010]. Em relação à interação, a operação serve como alternativa à sobrecarga de SetKey com um SymmetricKey::Sptr, a qual recebe o material de chave diretamente em vez de uma referência a um slot [SWS_CRYPT_21525].

Esta nota de utilização foi criada de forma automatizada com base na especificação AUTOSAR.

Guia do implementador em breve (complexidade 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#e9710e96
Content hash
e9710e96
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

função 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#75d108b7
Content hash
75d108b7
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

função 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#edd44eb6
Content hash
edd44eb6
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

função 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#aa5b4b73
Content hash
aa5b4b73
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

Documentação dos aliases 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