DEENESPTFRRUARHIKOZHNL

clase ara::crypto::cryp::VerifierPublicCtx

[SWS_CRYPT_24100] Upstream: RS_CRYPTO_02204

class VerifierPublicCtx :             public CryptoContext {...};

Signature Verification Public key Context interface.

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

Guía del usuarioGENERADO POR IA

Sirve para la verificación asimétrica de firmas digitales en un procedimiento de paso único o de streaming multietapa.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 6a47846da53d Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Sirve para la verificación asimétrica de firmas digitales en un procedimiento de paso único o de streaming multietapa.

La interfaz ara::crypto::cryp::VerifierPublicCtx sirve para la verificación de firmas digitales mediante claves públicas asimétricas a través de una llamada One-Shot o un streaming de varios pasos ([SWS_CRYPT_24112], [SWS_CRYPT_50022]). Antes de la verificación, el contexto debe configurarse obligatoriamente con una clave válida cuyos derechos de uso asignados permitan la comprobación de la firma ([SWS_CRYPT_24115]). Todos los métodos de la interfaz están diseñados para ser seguros frente a excepciones y seguros para subprocesos (thread-safe).

Contexto

La interfaz ara::crypto::cryp::VerifierPublicCtx sirve para la verificación de firmas digitales basada en criptografía asimétrica utilizando una clave pública. Interactúa directamente con objetos de clave ([SWS_CRYPT_24115]) o almacenes de claves externalizados ([SWS_CRYPT_50018]) y proporciona métodos para comprobar firmas ya sea en un solo paso (One-Shot) o en streaming a través de varios pasos parciales.

Ciclo de vida

Las instancias del contexto de verificación se gestionan típicamente dentro de la aplicación mediante el alias de tipo de puntero inteligente ara::crypto::cryp::VerifierPublicCtx::Sptr, que está definido como std::shared_ptr<VerifierPublicCtx> ([SWS_CRYPT_24101]). Todos los métodos de la interfaz están declarados como seguros frente a excepciones (exception safe) y seguros para subprocesos (thread-safe).

El contexto pasa por fases operativas claramente delimitadas. Tras su instanciación, el contexto se encuentra en un estado no inicializado en el que las llamadas de verificación se rechazan con ara::crypto::CryptoErrc::kUninitializedContext ([SWS_CRYPT_50019], [SWS_CRYPT_24112]). Solo mediante la asignación de una clave adecuada mediante SetKey() pasa el contexto al estado operativo ([SWS_CRYPT_24115], [SWS_CRYPT_50018]). A partir de este estado, se puede realizar una comprobación atómica o iniciar una sesión de streaming. Tras finalizar ([SWS_CRYPT_50022]) o cancelar ([SWS_CRYPT_50023]) una operación de streaming, es de suponer que el contexto vuelva a estar listo para nuevas comprobaciones. Pregunta Q-04655e144a821dbd (abierta)

verifier_states Uninitialisiert Uninitialisiert Bereit Bereit Uninitialisiert->Bereit SetKey() Bereit->Bereit SetKey() Bereit->Bereit Verify() [One-Shot] StreamingAktiv StreamingAktiv Bereit->StreamingAktiv Start() StreamingAktiv->Bereit Finish() StreamingAktiv->Bereit Cancel() StreamingAktiv->StreamingAktiv Update()

Diagrama de estados: ciclo de vida y transiciones de estado del contexto de verificación. Fuentes: [SWS_CRYPT_24115], [SWS_CRYPT_50018], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023], [SWS_CRYPT_24112]

Ruta de uso

Para la verificación de firmas hay disponibles dos rutas de procesamiento complementarias:

  • Verificación One-Shot: si el mensaje completo se encuentra en la memoria, se puede llamar directamente a Verify() tras la asignación de la clave mediante SetKey() ([SWS_CRYPT_24115]) ([SWS_CRYPT_24112]). Si el algoritmo admite o requiere datos de contexto específicos de la aplicación, se utiliza la variante sobrecargada con un búfer de contexto adicional ([SWS_CRYPT_50024]). Ambas variantes devuelven un ara::core::Result<bool> cuyo valor booleano indica la validez de la firma.
  • Verificación por streaming: en el caso de grandes volúmenes de datos o de bloques de datos que llegan de forma escalonada, tras SetKey() se llama primero a Start() ([SWS_CRYPT_50019], opcionalmente con búfer de contexto según [SWS_CRYPT_50020]). A continuación, los fragmentos de datos se suministran de forma reiterada con Update() ([SWS_CRYPT_50021]). El tamaño máximo de búfer para secciones individuales puede determinarse previamente mediante GetMaximumChunkSize() ([SWS_CRYPT_50025]). La conclusión la constituye la llamada a Finish() transmitiendo la firma y su identificador de formato ([SWS_CRYPT_50022]). Un streaming en curso puede descartarse en cualquier momento mediante Cancel() ([SWS_CRYPT_50023]).
Flujo de la verificación de firmas en modo streamingAplicaciónVerifierPublicCtxSetKey(key)Result<void>Start()Result<void>loopProcesar bloques de datosUpdate(data)Result<void>Finish(signature, signatureFormat)Result<bool>

Diagrama de secuencias: flujo paso a paso de una verificación de firma en el procedimiento de streaming. Fuentes: [SWS_CRYPT_24115], [SWS_CRYPT_50019], [SWS_CRYPT_50021], [SWS_CRYPT_50022]

Escenarios de error

Todos los métodos de modificación de estado y de verificación operan con ara::core::Result y poseen semántica de reversión (rollback) en caso de errores:

  • Configuración de clave: si se transfiere una clave o KeySlot incompatible con el algoritmo, SetKey() devuelve el error CryptoErrc::kIncompatibleObject ([SWS_CRYPT_24115], [SWS_CRYPT_50018]). Si a la clave le falta el derecho de uso kAllowSigVerification, la llamada falla con CryptoErrc::kUsageViolation ([SWS_CRYPT_24115]). Además, SetKey() notifica CryptoErrc::kUnsupported si el contexto solo acepta la otra forma de clave respectivamente (KeySlot o PublicKey).
  • Errores de secuencia y de precondición: si se llama a Update(), Finish() o Cancel() sin una llamada previa exitosa a Start(), fallan con CryptoErrc::kProcessingNotStarted ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_50023]). La llamada a Start() o Verify() sin referencia previa a una clave provoca CryptoErrc::kUninitializedContext ([SWS_CRYPT_50019], [SWS_CRYPT_24112]). En caso de KeySlots referenciados pero vacíos, se notifica CryptoErrc::kEmptyKeySlot.
  • Errores de datos y de formato: los métodos responden a tamaños de búfer no válidos con CryptoErrc::kInvalidInputSize ([SWS_CRYPT_50021], [SWS_CRYPT_50022], [SWS_CRYPT_24112]). Los formatos de firma no compatibles generan CryptoErrc::kUnsupportedFormat, mientras que las firmas con errores estructurales desencadenan CryptoErrc::kInvalidArgument ([SWS_CRYPT_50022], [SWS_CRYPT_24112]). Si los recursos de hardware están ocupados, se devuelve CryptoErrc::kBusyResource.

Esta guía se basa exclusivamente en las especificaciones de AUTOSAR Adaptive Platform R25-11.

Mapa de miembros

Diagrama de clases

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

G nara__crypto__cryp__VerifierPublicCtx35 VerifierPublicCtx + Cancel() + Finish() + GetMaximumChunkSize() + SetKey() + Start() + Update() + Verify() nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__VerifierPublicCtx35->nara__crypto__cryp__CryptoContext85

Vista de detalle

Selecciona una entrada en el índice.

Métodos

Cancel función

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

virtual ara::core::Result< void > Cancel () noexcept=0;
Finish función

Finish the signature verification and return the verification result.

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update() or Verify() by this context.

virtual std::size_t GetMaximumChunkSize () const noexcept=0;
SetKey función 2

Configure the context to use the provided key.

Sobrecargas SetKey 2
virtual ara::core::Result< void > SetKey (PublicKey::Sptr key) noexcept=0; SWS_CRYPT_24115
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50018
Start función 2

Initialize the context for a new signature verification.

Sobrecargas Start 2
virtual ara::core::Result< void > Start () noexcept=0; SWS_CRYPT_50019
virtual ara::core::Result< void > Start (ReadOnlyMemRegion context) noexcept=0; SWS_CRYPT_50020
Update función

Update the signature verification context by a new part of the message.

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;
Verify función 2

Verify the signature of the provided message in a single call.

Sobrecargas Verify 2
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_24112
virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0; SWS_CRYPT_50024

Alias de tipo

Sptr alias de tipo

Smart pointer of the interface.

Documentación de los métodos

función Cancel [SWS_CRYPT_50023] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Cancel () noexcept=0;

Cancel the ongoing streaming operation that has been initiated by Start() and has not yet been finished.

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

Uso y semántica

El método Cancel() cancela una operación continua en streaming que se inició previamente mediante Start() y que aún no ha concluido [SWS_CRYPT_50023]. Está definido en la cabecera ara/crypto/cryp/verifier_public_ctx.h como método puramente virtual del contexto ara::crypto::cryp::VerifierPublicCtx [SWS_CRYPT_50023]. La llamada se realiza de forma síncrona y sin argumentos. Como valor de retorno sirve un ara::core::Result<void>, el cual está vacío en caso de éxito y confirma la cancelación correcta de la operación [SWS_CRYPT_50023].

Manejo de errores

Si el procesamiento de datos aún no ha comenzado mediante la llamada al método Start(), la operación de cancelación falla. En este escenario, la función devuelve un resultado de error con el código de error ara::crypto::CryptoErrc::kProcessingNotStarted garantizando semántica de reversión (rollback) [SWS_CRYPT_50023].

Concurrencia y restricciones

La especificación clasifica el método como seguro para subprocesos (thread-safe) y seguro frente a excepciones (exception safe) con la designación noexcept [SWS_CRYPT_50023]. Interpretación: tras la cancelación correcta, es probable que el contexto vuelva al estado inicial previo al comienzo del procesamiento, de modo que se pueda iniciar un nuevo proceso en streaming. Pregunta Q-d80d09c8a8311bbc (abierta)

Interacción en el módulo crypt

Este patrón de cancelación uniforme con signatura y tratamiento de errores idénticos se aplica de forma coherente a todos los contextos de streaming del módulo crypt:

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

Guía del implementador pendiente (complejidad I1)

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

Rückgabewert

TypBeschreibung
ara::core::Result< void >an empty result if the ongoing streaming operation was cancelled successfully, or a result containing an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50023
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50023@rel:R25-11#82045c26
Content hash
82045c26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50023
Status: valid/unmigrated Version: rel:R25-11#ccbcbc55 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_50023@rel:R25-11#ccbcbc55
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 Finish [SWS_CRYPT_50022] Upstream: RS_CRYPTO_02302, RS_CRYPTO_02203

virtual ara::core::Result< bool > Finish (ReadOnlyMemRegion signature, FormatId signatureFormat) noexcept=0;

Finish the signature verification and return the verification result.

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

El método Finish en ara::crypto::cryp::VerifierPublicCtx finaliza una comprobación de firma y devuelve el resultado de la verificación [SWS_CRYPT_50022]. Recibe a través del búfer de entrada signature (tipo ReadOnlyMemRegion) la firma que se va a comprobar, así como a través de signatureFormat (tipo FormatId) su formato [SWS_CRYPT_50022]. La llamada se realiza de forma sincrónica y, conforme a la especificación, está declarada como thread-safe y exception safe [SWS_CRYPT_50022].

Como valor de retorno sirve un ara::core::Result<bool> [SWS_CRYPT_50022]: si la validación de la firma tiene éxito, el resultado contiene true; si la firma no es válida en cuanto a su contenido, false. Por el contrario, si se produce un error de procesamiento, se devuelve el código de error correspondiente [SWS_CRYPT_50022]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: la operación no se inició previamente con éxito (semántica de reversión) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidInputSize: el tamaño del búfer de signature no es válido (semántica de reversión) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kUnsupportedFormat: el formato indicado signatureFormat no es compatible (semántica de reversión) [SWS_CRYPT_50022].
  • ara::crypto::CryptoErrc::kInvalidArgument: la firma no se corresponde con el formato especificado (semántica de reversión) [SWS_CRYPT_50022].

En el flujo criptográfico, esta función constituye la contrapartida de la generación de firmas mediante ara::crypto::cryp::SignerPrivateCtx::Finish [SWS_CRYPT_50040], la cual escribe una firma en un búfer de salida. Todos los errores notificados tienen semántica de reversión [SWS_CRYPT_50022], de modo que el estado del contexto permanece consistente en caso de fallo.

Este texto ha sido generado por una IA y sirve como guía orientativa.

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

Parameter (in)

ParameterBeschreibung
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature generation has not been started sucessfully.
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50022
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50022@rel:R25-11#3223dce5
Content hash
3223dce5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50022
Status: valid/unmigrated Version: rel:R25-11#4737b352 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_50022@rel:R25-11#4737b352
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 GetMaximumChunkSize [SWS_CRYPT_50025] Upstream: RS_CRYPTO_02309

virtual std::size_t GetMaximumChunkSize () const noexcept=0;

Get the maximum input buffer size supported for processing in single calls to Update() or Verify() by this context.

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

Rückgabewert

TypBeschreibung
std::size_tthe maximum buffer size in bytes

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50025
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50025@rel:R25-11#e71f77be
Content hash
e71f77be
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50025
Status: valid/unmigrated Version: rel:R25-11#85142237 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_50025@rel:R25-11#85142237
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 SetKey [SWS_CRYPT_24115] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

virtual ara::core::Result< void > SetKey (PublicKey::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: 0edd4bb26214 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

El método SetKey configura una instancia de VerifierPublicCtx para el uso de una clave pública concreta destinada a la verificación de firmas ([SWS_CRYPT_24115]). A través del parámetro key se transfiere un puntero de tipo PublicKey::Sptr. La llamada se ejecuta de forma sincrónica y devuelve un ara::core::Result<void>, que en caso de éxito está vacío o bien encapsula un código de error específico.

Según la especificación, la operación está diseñada para ser segura para hilos y segura frente a excepciones (exception safe) ([SWS_CRYPT_24115]). Si se produce un error durante la vinculación de la clave, se aplica para todos los casos de error una semántica de reversión (rollback), de modo que el contexto permanezca en un estado consistente:

  • CryptoErrc::kIncompatibleObject: La clave transferida es incompatible con el contexto de verificación de firma ([SWS_CRYPT_24115]).
  • CryptoErrc::kUsageViolation: Los permisos de la clave no permiten la verificación de firmas (ausencia del flag de uso para verificación de firmas) ([SWS_CRYPT_24115]).
  • ara::crypto::CryptoErrc::kUnsupported: La implementación del contexto solo admite la vinculación de una clave mediante un KeySlot ([SWS_CRYPT_24115]).

En el flujo de trabajo criptográfico, SetKey constituye la contrapartida pública de SignerPrivateCtx::SetKey ([SWS_CRYPT_23515]). En caso de que un contexto no permita la transferencia directa de claves mediante PublicKey::Sptr o las claves se gestionen en slots protegidos, se encuentra disponible de forma alternativa la sobrecarga mediante KeySlot::Sptr ([SWS_CRYPT_50018]).

Esta nota de uso se generó automáticamente a partir de datos de especificación de AUTOSAR.

Guía del implementador pendiente (complejidad I2)

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
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
CryptoErrc::kIncompatibleObjectrollback_semantics if the provided key object is incompatible with this signature verification context
CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the key does not include kAllowSig Verification
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_24115
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24115@rel:R25-11#02dbbb1f
Content hash
02dbbb1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24115
Status: valid/unmigrated Version: rel:R25-11#4657cfda 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_24115@rel:R25-11#4657cfda
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#b4f2582a2026-09-30
  • R20-11rel:R20-11#c67a48952026-10-14
  • R21-11rel:R21-11#68e4b4312026-10-14
  • R22-11rel:R22-11#c39e34c92026-10-14
  • R23-11rel:R23-11#8afac6e02026-10-14
  • R24-11rel:R24-11#e169f3652026-10-14
  • R25-11rel:R25-11#4657cfda2026-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_50018] 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 signature verification is started.

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

usar

El método SetKey de la clase ara::crypto::cryp::VerifierPublicCtx configura el contexto de verificación para el uso de una clave que está almacenada en un KeySlot transferido [SWS_CRYPT_50018]. La clave se consulta en el momento en el que se inicia la comprobación de la firma [SWS_CRYPT_50018].

Como parámetro se utiliza un smart pointer keySlot de tipo KeySlot::Sptr, el cual contiene una clave pública [SWS_CRYPT_50018]. La función opera de forma síncrona y devuelve un ara::core::Result<void> para indicar una finalización exitosa o un error [SWS_CRYPT_50018].

Tratamiento de errores y semántica

La operación está especificada como noexcept y exception safe [SWS_CRYPT_50018]. Si se produce un error, se aplica una semántica de reversión (rollback) [SWS_CRYPT_50018]:

  • ara::crypto::CryptoErrc::kIncompatibleObject: El KeySlot proporcionado es incompatible con este contexto [SWS_CRYPT_50018].
  • ara::crypto::CryptoErrc::kUnsupported: El contexto admite exclusivamente el establecimiento directo de un PublicKey [SWS_CRYPT_50018].

Concurrencia e interacción

El método está especificado como thread-safe [SWS_CRYPT_50018]. Como alternativa a KeySlot, VerifierPublicCtx ofrece una sobrecarga para establecer directamente un PublicKey [SWS_CRYPT_24115]. Una configuración de clave correspondiente a través de un KeySlot existe de forma análoga también en otros contextos como SignerPrivateCtx [SWS_CRYPT_50036] o MessageAuthnCodeCtx [SWS_CRYPT_50026].

Esta nota de uso ha sido generada por una IA sobre la base de la especificación.

Guía del implementador pendiente (complejidad I2)

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

Parameter (in)

ParameterBeschreibung
keySlota keyslot containing a public 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 PublicKey

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50018
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50018@rel:R25-11#56744dd8
Content hash
56744dd8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50018
Status: valid/unmigrated Version: rel:R25-11#9f29f516 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_50018@rel:R25-11#9f29f516
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 Start [SWS_CRYPT_50019] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start () noexcept=0;

Initialize the context for a new signature verification.

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

usar

El método síncrono Start() de la interfaz ara::crypto::cryp::VerifierPublicCtx ([SWS_CRYPT_50019]) inicializa el contexto para una nueva comprobación de firma criptográfica en modo streaming. La función no recibe parámetros de transferencia, está declarada como noexcept y devuelve un ara::core::Result<void> que está vacío en caso de éxito.

Tratamiento de errores y rollback

Si se produce un error durante la ejecución, se aplica la semántica de rollback ([SWS_CRYPT_50019]), por lo que el contexto permanece en un estado coherente. Las posibles causas de error son:

  • UninitializedContext: no se asignó previamente ninguna clave criptográfica al contexto.
  • ara::crypto::CryptoErrc::kUsageViolation: la clave asignada no está habilitada para la comprobación de firma (kAllowSig Verification).
  • ara::crypto::CryptoErrc::kEmptyKeySlot: un KeySlot configurado para la verificación está actualmente vacío.
  • ara::crypto::CryptoErrc::kUnsupported: el contexto no admite streaming o el procedimiento presupone de forma obligatoria un valor de contexto.
  • ara::crypto::CryptoErrc::kBusyResource: un recurso necesario para la operación está actualmente ocupado.

Concurrencia e interacción

Aunque la especificación designa el método como seguro para subprocesos ([SWS_CRYPT_50019]), es de suponer que una llamada paralela en la misma instancia de contexto durante una verificación en curso restablezca la operación existente o falle debido a recursos ocupados. Pregunta Q-af5e08ff9d905a29 (abierta)

Tras una inicialización exitosa, las partes del mensaje se pasan secuencialmente mediante Update() ([SWS_CRYPT_50021]). Una operación de streaming en curso se puede cancelar prematuramente con Cancel() ([SWS_CRYPT_50023]) en caso necesario. Si el algoritmo exige imperativamente un valor de contexto, debe llamarse en su lugar a la función sobrecargada Start(ReadOnlyMemRegion context) ([SWS_CRYPT_50020]).

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

Guía del implementador pendiente (complejidad I1)

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

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm requires setting a context value
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50019
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50019@rel:R25-11#07312010
Content hash
07312010
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50019
Status: valid/unmigrated Version: rel:R25-11#d79f5341 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_50019@rel:R25-11#d79f5341
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 Start [SWS_CRYPT_50020] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start (ReadOnlyMemRegion context) noexcept=0;

Initialize the context for a new signature verification.

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

usar

La función Start inicializa, conforme a [SWS_CRYPT_50020], un contexto de verificación de la clase ara::crypto::cryp::VerifierPublicCtx para una nueva verificación de firma. Como parámetro de entrada recibe context del tipo ReadOnlyMemRegion, que proporciona un valor de contexto específico de la aplicación. Como alternativa sin datos de contexto existe la sobrecarga [SWS_CRYPT_50019]. El valor de retorno es ara::core::Result<void>; interpretación: dado que no se definen retrollamadas ni objetos de futuro, es probable que la llamada se procese de forma puramente síncrona. Pregunta Q-4e10cdb1a4343a3a (abierta)

Manejo de errores

En caso de error, la función devuelve un ara::core::Result con un código de error adecuado de ara::crypto::CryptoErrc, estando especificada una semántica de reversión [SWS_CRYPT_50020]:

  • kUninitializedContext: El contexto todavía no se ha inicializado mediante la asignación de una clave.
  • kEmptyKeySlot: Un KeySlot configurado está actualmente vacío.
  • kUsageViolation: El uso permitido de la clave asignada no incluye kAllowSigVerification.
  • kInvalidInputSize: El tamaño del búfer del valor de contexto proporcionado no es válido para el algoritmo.
  • kUnsupported: El contexto no admite streaming o el algoritmo no admite el establecimiento de un valor de contexto.
  • kBusyResource: Un recurso requerido está ocupado.

Concurrencia y restricciones

Según [SWS_CRYPT_50020], el método está clasificado como thread-safe y exception-safe. No lanza excepciones (noexcept).

Interacción

Tras la ejecución con éxito de Start, el mensaje de entrada puede transmitirse paso a paso mediante llamadas repetidas a Update [SWS_CRYPT_50021]. Un proceso de streaming en curso que haya sido iniciado por Start puede cancelarse prematuramente mediante Cancel si es necesario [SWS_CRYPT_50023].

Este texto ha sido generado automáticamente. Todas las indicaciones se basan exclusivamente en la especificación AUTOSAR.

Guía del implementador pendiente (complejidad I1)

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

Parameter (in)

ParameterBeschreibung
contexta context value

Rückgabewert

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

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by deploying a key
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support streaming or the algorithm does not support setting a context value
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 key does not include kAllowSig Verification
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the context is invalid

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50020
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50020@rel:R25-11#4153ec45
Content hash
4153ec45
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50020
Status: valid/unmigrated Version: rel:R25-11#4700c295 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_50020@rel:R25-11#4700c295
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 Update [SWS_CRYPT_50021] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Update (ReadOnlyMemRegion data) noexcept=0;

Update the signature verification context by a new part of the message.

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

usar

El método Update() sirve para actualizar paso a paso el contexto de verificación de firma con una parte adicional del mensaje de entrada [SWS_CRYPT_50021]. Como parámetro se pasa un área de memoria data del tipo ReadOnlyMemRegion. La función devuelve un ara::core::Result<void>; interpretación: debido a este tipo de retorno, es probable que el procesamiento se realice de forma síncrona. Pregunta Q-f98391030b3b4684 (abierta)

Manejo de errores

En caso de error se devuelve el código de error correspondiente con semántica de reversión [SWS_CRYPT_50021]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: La verificación de firma no se inició previamente mediante la llamada al método Start() [SWS_CRYPT_50021].
  • ara::crypto::CryptoErrc::kInvalidInputSize: El tamaño de los datos proporcionados en data no es compatible [SWS_CRYPT_50021].

Concurrencia e interacción

La operación está clasificada en la especificación como thread-safe y exception safe [SWS_CRYPT_50021]. Antes de la llamada debe haberse realizado obligatoriamente la inicialización a través de Start() [SWS_CRYPT_50021]. Para evitar que se produzca kInvalidInputSize, el tamaño máximo de búfer admisible para llamadas individuales se puede consultar mediante el método GetMaximumChunkSize() del mismo contexto [SWS_CRYPT_50025]. La contraparte complementaria para la generación de firmas por mensajes la representa Update() en SignerPrivateCtx [SWS_CRYPT_50039].

Esta nota de uso se generó de forma automatizada sobre la base de la especificación.

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

Parameter (in)

ParameterBeschreibung
dataa part of the input message that should be processed

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the signature verification was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided data is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50021
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50021@rel:R25-11#cfac85a5
Content hash
cfac85a5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50021
Status: valid/unmigrated Version: rel:R25-11#353f95ae 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_50021@rel:R25-11#353f95ae
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 Verify [SWS_CRYPT_24112] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message in a single call.

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

usar

El método Verify del contexto ara::crypto::cryp::VerifierPublicCtx sirve para verificar la firma de un mensaje suministrado en una única llamada [SWS_CRYPT_24112]. Como parámetros se pasan el búfer de mensajes message, la firma signature y el formato signatureFormat [SWS_CRYPT_24112]. El valor de retorno ara::core::Result<bool> contiene true en caso de comprobación exitosa, false en caso de no coincidencia o un código de error [SWS_CRYPT_24112]. Interpretación: debido al tipo de resultado síncrono, es probable que el proceso de comprobación se ejecute de forma bloqueante en el subproceso llamador. Pregunta Q-671054c6e2b581c6 (abierta)

Tratamiento de errores y concurrencia

La función está especificada como exception safe y thread-safe [SWS_CRYPT_24112]. En caso de error, se aplica una semántica de rollback para los códigos de error [SWS_CRYPT_24112]. Las posibles causas de error comprenden:

  • UninitializedContext, si el contexto no se inicializó con una clave [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kEmptyKeySlot en caso de ranura de clave vacía o kUsageViolation si la clave carece del permiso kAllowSig Verification [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kInvalidInputSize en caso de tamaño de búfer no permitido [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kUnsupportedFormat o kInvalidArgument en caso de formato de firma defectuoso o incompatible [SWS_CRYPT_24112],
  • ara::crypto::CryptoErrc::kBusyResource, si los recursos requeridos están ocupados [SWS_CRYPT_24112].

Interacción

El tamaño de búfer máximo para llamadas individuales se puede consultar mediante GetMaximumChunkSize() [SWS_CRYPT_50025]. Si el algoritmo exige imperativamente un valor de contexto, se devuelve ara::crypto::CryptoErrc::kUnsupported [SWS_CRYPT_24112]; en este caso, debe elegirse la sobrecarga con el parámetro context adicional [SWS_CRYPT_50024]. A modo de delimitación, para comprobaciones de Message Authentication Codes existe ara::crypto::cryp::MessageAuthnCodeCtx::Verify [SWS_CRYPT_50031].

Esta nota de uso se basa en la especificación AUTOSAR R25-11.

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm requires a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format.
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24112
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24112@rel:R25-11#7aa302b3
Content hash
7aa302b3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24112
Status: valid/unmigrated Version: rel:R25-11#5528778e 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_24112@rel:R25-11#5528778e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fff71a402026-09-30
  • R19-11rel:R19-11#66da619a2026-10-14
  • R20-11rel:R20-11#a7cb40442026-10-14
  • R21-11rel:R21-11#4c73f9ac2026-10-14
  • R22-11rel:R22-11#9330d7cf2026-10-14
  • R23-11rel:R23-11#25763dfd2026-10-14
  • R24-11rel:R24-11#c2cd046c2026-10-14
  • R25-11rel:R25-11#5528778e2026-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 Verify [SWS_CRYPT_50024] Upstream: RS_CRYPTO_02204

virtual ara::core::Result< bool > Verify (ReadOnlyMemRegion message, ReadOnlyMemRegion context, ReadOnlyMemRegion signature, FormatId signatureFormat) const noexcept=0;

Verify the signature of the provided message with context in a single call.

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

El método síncrono Verify verifica la firma digital de un mensaje proporcionado teniendo en cuenta un valor de contexto definido por el usuario en una sola llamada ([SWS_CRYPT_50024]). Como parámetros de entrada, el método espera los búferes message, context y signature, cada uno como ReadOnlyMemRegion, así como el formato de la firma mediante signatureFormat ([SWS_CRYPT_50024]). El valor de retorno es un ara::core::Result<bool>: contiene true en caso de verificación correcta, false en caso de firma errónea o un código de error correspondiente ([SWS_CRYPT_50024]).

En caso de error se aplica una semántica de reversión ([SWS_CRYPT_50024]). Los códigos de error específicos incluyen, entre otros:

  • UninitializedContext, si el contexto de verificación todavía no se ha inicializado con un valor de clave ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kInvalidInputSize en caso de tamaño de búfer no permitido ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupported, si el algoritmo de firma seleccionado no admite la especificación de un valor de contexto ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUnsupportedFormat o ara::crypto::CryptoErrc::kInvalidArgument, si el formato de firma especificado no es compatible o la firma no se corresponde con el formato ([SWS_CRYPT_50024]),
  • ara::crypto::CryptoErrc::kUsageViolation, si el uso permitido de la clave no incluye kAllowSigVerification, así como ara::crypto::CryptoErrc::kEmptyKeySlot y ara::crypto::CryptoErrc::kBusyResource ([SWS_CRYPT_50024]).

El método está declarado como const noexcept, se considera seguro frente a excepciones y está especificado como thread-safe ([SWS_CRYPT_50024]). En interacción con el contexto, el tamaño máximo de búfer para llamadas individuales puede determinarse a través de GetMaximumChunkSize ([SWS_CRYPT_50025]). Para verificaciones sin contexto, está disponible la sobrecarga alternativa de Verify ([SWS_CRYPT_24112]).

Esta nota de uso se generó de forma automatizada sobre la base de la especificación.

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

Parameter (in)

ParameterBeschreibung
messagean input buffer containing the message
contexta user supplied "context"
signaturean input buffer containing the signature
signatureFormatthe format in which the signature is provided

Rückgabewert

TypBeschreibung
ara::core::Result< bool >An result containing true if the signature was verified successfully, false if the signature verification failed, or an error.

Fehler

FehlercodeBeschreibung
UninitializedContextif the context was not initialized by a key value
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the signature algorithm does not support a context value
ara::crypto::CryptoErrc::kUnsupportedFormatrollback_semantics if the specified format ID is not supported
ara::crypto::CryptoErrc::kInvalidArgumentrollback_semantics if signature does not conform to the specified format
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 key does not include kAllowSig Verification

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50024
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50024@rel:R25-11#01f3e77b
Content hash
01f3e77b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50024
Status: valid/unmigrated Version: rel:R25-11#424fa98e 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_50024@rel:R25-11#424fa98e
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_24101] Upstream: RS_CRYPTO_02204

using Sptr = std::shared_ptr<VerifierPublicCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/verifier_public_ctx.h"
Scopeclass ara::crypto::cryp::VerifierPublicCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24101@rel:R25-11#d7a72c75
Content hash
d7a72c75
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24101
Status: valid/unmigrated Version: rel:R25-11#44b9f060 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_24101@rel:R25-11#44b9f060
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#4ff468462026-09-30
  • R19-11rel:R19-11#723b4f232026-10-14
  • R20-11rel:R20-11#03e0c2472026-10-14
  • R21-11rel:R21-11#03e0c2472026-10-14
  • R22-11rel:R22-11#cd4d7bb92026-10-14
  • R23-11rel:R23-11#4372989f2026-10-14
  • R24-11rel:R24-11#4372989f2026-10-14
  • R25-11rel:R25-11#44b9f0602026-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