DEENESPTFRRUARHIKOZHNL

class ara::crypto::cryp::AuthCipherCtx

[SWS_CRYPT_20100] Upstream: RS_CRYPTO_02207

class AuthCipherCtx :           public CryptoContext {...};

Authenticated Cipher Context interface.

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

User GuideKI-GENERIERT

Bietet eine Schnittstelle zur authentifizierten symmetrischen Ver- und Entschlüsselung mit Integritätsschutz.
KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: a1dee2a3fcf5 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Bietet eine Schnittstelle zur authentifizierten symmetrischen Ver- und Entschlüsselung mit Integritätsschutz.

Die Schnittstelle ara::crypto::cryp::AuthCipherCtx dient der authentifizierten Ver- und Entschlüsselung von Daten unter Wahrung der Vertraulichkeit und Integrität [SWS_CRYPT_23911]. Nach Konfiguration des Schlüssels erfolgt die Verarbeitung entweder als atomarer Einzelaufruf oder als gestreamte Abfolge aus Initialisierung, optionalen Authentifizierungsdaten, Nutzdaten-Updates und Finalisierung. Als kritische Sicherheitsbedingung schlägt die Entschlüsselung bei ungültigem Authentifizierungs-Tag fehl, sodass entschlüsselte Nutzdaten erst nach erfolgreicher Validierung verarbeitet werden dürfen [SWS_CRYPT_50075].

Kontext

Die Schnittstelle ara::crypto::cryp::AuthCipherCtx definiert die standardisierte Programmierschnittstelle für authentifizierte Chiffrieroperationen (Authenticated Encryption with Associated Data, AEAD) innerhalb der AUTOSAR Adaptive Platform. Sie verbindet Vertraulichkeit mit Integritätsschutz, indem neben der eigentlichen Ver- oder Entschlüsselung von Nutzdaten stets ein kryptografischer Authentifizierungs-Tag generiert bzw. validiert wird. Als zentrale Interaktionspartner fungieren aufrufende Applikationen sowie Schlüsselobjekte: Ein Kontext wird vor der Nutzung entweder an eine konkrete Instanz von SymmetricKey gebunden [SWS_CRYPT_23911] oder mit einem persistierten bzw. bereitgestellten KeySlot konfiguriert [SWS_CRYPT_50072]. Neben schrittweiser Streaming-Verarbeitung unterstützt die Klasse auch autarke Einzelaufrufe zur Verarbeitung vollständiger Nachrichten in einem Schritt [SWS_CRYPT_50078].

Lebenszyklus

Kontexte werden im Anwendungsbereich über den gemeinsamen Zeigertyp ara::crypto::cryp::AuthCipherCtx::Sptr verwaltet [SWS_CRYPT_20101]. (Interpretation: Die Objekterzeugung erfolgt typischerweise über eine übergeordnete Provider-Fabrik, da AuthCipherCtx als reine Schnittstelle spezifiziert ist). Frage Q-23125789874cf2f3 (offen) Alle Mitgliedsfunktionen sind als ausnahmesicher (exception safe) und threadsicher (thread-safe) deklariert [SWS_CRYPT_23911], [SWS_CRYPT_24715]. Der funktionale Lebenszyklus durchläuft klar definierte Zustände:

  • Uninitialisiert: Unmittelbar nach der Instanziierung. Aufrufe zur Datenverarbeitung werden abgewiesen, da noch kein Schlüssel zugewiesen wurde [SWS_CRYPT_50081].
  • Schlüssel konfiguriert: Durch erfolgreichen Aufruf von SetKey mit einem SymmetricKey [SWS_CRYPT_23911] oder einem KeySlot [SWS_CRYPT_50072] wechselt der Kontext in den einsatzbereiten Zustand. Aus diesem Zustand heraus können Single-Shot-Operationen direkt ausgeführt werden.
  • Streaming aktiv: Wird durch Aufruf von Start unter Angabe der Transformationsrichtung mit Initialisierungsvektor (IV) [SWS_CRYPT_24715] oder ohne expliziten IV [SWS_CRYPT_50073] betreten.
  • Abschluss / Reset: Eine laufende Streaming-Operation wird regulär durch Finish [SWS_CRYPT_50075] oder FinishEncrypt [SWS_CRYPT_50076] abgeschlossen oder über Cancel vorzeitig abgebrochen [SWS_CRYPT_50077]. Danach steht der Kontext wieder für neue Verarbeitungssequenzen bereit.
Lebenszyklus Uninitialized Uninitialized KeyConfigured KeyConfigured Uninitialized->KeyConfigured SetKey() KeyConfigured->KeyConfigured ProcessSingleCall() StreamingActive StreamingActive KeyConfigured->StreamingActive Start() StreamingActive->KeyConfigured Finish() / Cancel() StreamingActive->StreamingActive UpdateAuthenticatedData() UpdateConfidentialData()

Zustandsdiagramm: Zustandsphasen des Kontexts von der Schlüsselbindung über die Streaming-Verarbeitung bis zum Abschluss. Quellen: [SWS_CRYPT_23911], [SWS_CRYPT_50072], [SWS_CRYPT_24715], [SWS_CRYPT_50075], [SWS_CRYPT_50077].

Nutzungspfad

Für die kontinuierliche Datenstromverarbeitung erfordert die Schnittstelle eine geordnete Abfolge von Aufrufen:

  1. Konfiguration: Zuweisung des Schlüssels über SetKey [SWS_CRYPT_23911] bzw. SetKey mit KeySlot [SWS_CRYPT_50072].
  2. Parameterabfrage: Optionales Ermitteln von Grenzwerten und Puffergrößen über GetMinimumChunkSize [SWS_CRYPT_50162], GetMaximumChunkSize [SWS_CRYPT_50082], GetMinimumInputIvSize [SWS_CRYPT_50163], GetMaximumInputIvSize [SWS_CRYPT_50164], GetTagSize [SWS_CRYPT_50161] sowie GetRequiredOutputBufferSize [SWS_CRYPT_50081].
  3. Start der Operation: Aufruf von Start unter Festlegung der Richtung (Verschlüsselung oder Entschlüsselung) sowie Bereitstellung des IV [SWS_CRYPT_24715] oder Anforderung eines kontexteigenen IV [SWS_CRYPT_50073].
  4. Assoziierte Daten (AAD): Falls zusätzliche Klartextdaten in die Integritätsberechnung einfließen sollen, werden diese über UpdateAuthenticatedData übergeben [SWS_CRYPT_20313]. Die maximal zulässige AAD-Größe lässt sich per GetMaxAssociatedDataSize abfragen [SWS_CRYPT_20103]. Wichtig: AAD-Blöcke müssen zwingend vor den eigentlichen Nutzdaten übermittelt werden.
  5. Nutzdatenverarbeitung: Schrittweise Übergabe von Datenblöcken über UpdateConfidentialData [SWS_CRYPT_50074]. Bei der Entschlüsselung wird der Klartext zurückgegeben, bevor dessen Authentizität feststeht; die Anwendung darf diese Daten erst nach erfolgreicher Finalisierung verwenden.
  6. Finalisierung: Beenden der Operation mittels Finish [SWS_CRYPT_50075] oder FinishEncrypt [SWS_CRYPT_50076], wodurch der finale Block verarbeitet und der Authentifizierungs-Tag berechnet bzw. verifiziert wird.

Für kompakte Payloads existieren Single-Call-Alternativen: ProcessSingleCall verarbeitet Daten ohne IV-Übergabe [SWS_CRYPT_50078], ProcessSingleCallWithInputIv akzeptiert einen externen IV [SWS_CRYPT_50079], und EncryptSingleCallWithOutputIv gibt einen vom Kontext generierten IV an den Aufrufer zurück [SWS_CRYPT_50080].

Ablauf einer gestreamten authentifizierten VerschlüsselungAnwendungAuthCipherCtxSetKey(key)Result<void>Start(kEncrypt, iv)Result<void>optZusatzdaten vorhandenUpdateAuthenticatedData(aad)Result<void>loopfuer jeden DatenblockUpdateConfidentialData(in, out)Result<size_t>Finish(in, out, tag)Result<size_t>

Sequenzdiagramm: Aufrufabfolge einer gestreamten authentifizierten Verschlüsselung. Quellen: [SWS_CRYPT_23911], [SWS_CRYPT_24715], [SWS_CRYPT_20313], [SWS_CRYPT_50074], [SWS_CRYPT_50075].

Fehlerszenarien

Methoden von AuthCipherCtx geben Ergebnisse über ara::core::Result zurück und besitzen im Fehlerfall Rollback-Semantik. Relevante Fehlercodes aus ara::crypto::CryptoErrc sind:

  • kUninitializedContext: Tritt auf bei Aufruf von Start [SWS_CRYPT_24715], ProcessSingleCall [SWS_CRYPT_50078] oder Pufferberechnungen [SWS_CRYPT_50081], falls noch kein Schlüssel via SetKey konfiguriert wurde.
  • kProcessingNotStarted: Wird gemeldet, wenn UpdateAuthenticatedData [SWS_CRYPT_20313], UpdateConfidentialData [SWS_CRYPT_50074], Finish [SWS_CRYPT_50075] oder Cancel [SWS_CRYPT_50077] ohne vorangehendes Start aufgerufen werden.
  • kInvalidUsageOrder: Signalisiert eine fehlerhafte Aufrufreihenfolge, wenn UpdateAuthenticatedData aufgerufen wird, nachdem bereits Nutzdaten über UpdateConfidentialData verarbeitet wurden [SWS_CRYPT_20313].
  • kAuthTagNotValid: Zeigt bei der Entschlüsselung in Finish [SWS_CRYPT_50075] oder Single-Shot-Methoden [SWS_CRYPT_50078] an, dass der berechnete Tag nicht mit dem übergebenen Tag übereinstimmt und die Authentizitätsprüfung fehlgeschlagen ist.
  • kUsageViolation: Tritt auf, wenn die Nutzungsattribute des Schlüssels nicht zur angeforderten Operation passen (z. B. fehlendes kAllowDataEncrypt oder kAllowDataDecrypt) [SWS_CRYPT_23911], [SWS_CRYPT_50078].
  • kInsufficientCapacity / kInvalidInputSize: Weisen auf unzureichend dimensionierte Ausgabepuffer bzw. unzulässige Eingabe-, IV- oder Tag-Längen hin [SWS_CRYPT_24715], [SWS_CRYPT_50074], [SWS_CRYPT_50075].
  • kEmptyKeySlot / kBusyResource: Betreffen Fehlerzustände bei Verwendung konfigurierter Schlüsselspeicherplätze [SWS_CRYPT_24715], [SWS_CRYPT_50078].

Dieser Leitfaden basiert ausschließlich auf dem AUTOSAR-Adaptive-Standard (Release R25-11) und fasst die Anforderungen an die Schnittstelle ara::crypto::cryp::AuthCipherCtx zusammen.

Mitgliederkarte

Klassendiagramm

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

G nara__crypto__cryp__AuthCipherCtx142 AuthCipherCtx + Cancel() + EncryptSingleCallWithOutputIv() + Finish() + FinishEncrypt() + GetMaxAssociatedDataSize() + GetMaximumChunkSize() + GetMaximumInputIvSize() + GetMinimumChunkSize() + GetMinimumInputIvSize() + GetOutputIvSize() + GetRequiredOutputBufferSize() + GetTagSize() + ProcessSingleCall() + ProcessSingleCallWithInputIv() + SetKey() + Start() … 2 weitere nara__crypto__cryp__CryptoContext85 CryptoContext nara__crypto__cryp__AuthCipherCtx142->nara__crypto__cryp__CryptoContext85

Detailansicht

Wähle in der Gliederung einen Eintrag aus.

Methoden

Cancel function

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;

Perform encryption and calculate/verify of the authentication tag in a single-call and return an IV generated by the context.

virtual ara::core::Result< std::size_t > EncryptSingleCallWithOutputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, ReadWriteMemRegion ivOut, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;
Finish function

Finalize the en-/decryption and calculate/verify the authentication tag without returning an IV.

FinishEncrypt function

Finalize the encryption and calculate the authentication tag and return the IV generated by the context.

virtual ara::core::Result< std::size_t > FinishEncrypt (ReadOnlyMem Region in, ReadWriteMemRegion out, ReadWriteMemRegion tag, ReadWrite MemRegion ivOut) noexcept=0;

Get maximum supported size of associated public data.

virtual ara::core::Result< std::size_t > GetMaxAssociatedDataSize () const noexcept=0;

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

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;

Get the maximum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

virtual ara::core::Result< std::size_t > GetMaximumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the minimum input buffer size supported for processing in single calls to Update(), Finish(), FinishEncrypt() or ProcessSingleCall() by this context.

virtual ara::core::Result< std::size_t > GetMinimumChunkSize () const noexcept=0;

Get the minimum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

virtual ara::core::Result< std::size_t > GetMinimumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the output IV size that will be returned by the functions FinishEncrypt() (in case no IV has been provided by the application during the call to Start()), and EncryptSingleCallWithOutputIv().

virtual ara::core::Result< std::size_t > GetOutputIvSize () const noexcept=0;

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;
GetTagSize function

Get the output tag size.

virtual ara::core::Result< std::size_t > GetTagSize () const noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call without setting or returning an IV.

virtual ara::core::Result< std::size_t > ProcessSingleCall (ReadOnly MemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMemRegion tag, CryptoTransform transformDirection, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call, providing an IV to be used during en-/decryption.

virtual ara::core::Result< std::size_t > ProcessSingleCallWithInputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, CryptoTransform transformDirection, ReadOnlyMemRegion iv, ara::core::Optional< ReadOnlyMemRegion > authenticatedData) noexcept=0;
SetKey function 2

The interface shall configure the context to use the provided SymmetricKey.

Überladungen SetKey 2
virtual ara::core::Result< void > SetKey (SymmetricKey::Sptr key) noexcept=0; SWS_CRYPT_23911
virtual ara::core::Result< void > SetKey (KeySlot::Sptr keySlot) noexcept=0; SWS_CRYPT_50072
Start function 2

Initialize the context for a new encryption or decryption and set the IV used by the context.

Überladungen Start 2
virtual ara::core::Result< void > Start (CryptoTransform transform Direction, ReadOnlyMemRegion iv) noexcept=0; SWS_CRYPT_24715
virtual ara::core::Result< void > Start (CryptoTransform transform Direction) noexcept=0; SWS_CRYPT_50073

Update the tag calculation by a new chunk of additional authenticated data.

virtual ara::core::Result< void > UpdateAuthenticatedData (ReadOnlyMem Region authenticatedData) noexcept=0;

Encrypt or decrypt confidential data. When used for decryption, the plaintext is returned without verifying its authenticity. An application must not use the data before verifying its authenticity using Finish().

virtual ara::core::Result< std::size_t > UpdateConfidentialData (Read OnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Typaliase

Sptr type alias

Smart pointer of the interface.

Dokumentation der Methoden

function Cancel [SWS_CRYPT_50077] 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.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 739ac0d710b6 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode Cancel() der Schnittstelle ara::crypto::cryp::AuthCipherCtx bricht eine aktive Streaming-Operation ab, die zuvor über Start() eingeleitet und noch nicht abgeschlossen wurde [SWS_CRYPT_50077]. Die Funktion wird über den Header ara/crypto/cryp/auth_cipher_ctx.h bereitgestellt und arbeitet synchron ohne Übergabeparameter [SWS_CRYPT_50077]. Sie gibt ein ara::core::Result<void> zurück, das im Erfolgsfall leer ist.

Fehlerbehandlung und Randbedingungen

Ein Abbruch setzt voraus, dass die Datenverarbeitung tatsächlich zuvor durch Start() begonnen wurde. Wurde die Streaming-Operation nicht gestartet, schlägt der Aufruf fehl und liefert den Fehlercode ara::crypto::CryptoErrc::kProcessingNotStarted mit Rollback-Semantik zurück [SWS_CRYPT_50077].

Nebenläufigkeit

Die Operation ist als noexcept deklariert und laut Spezifikation sowohl als thread-safe als auch als exception safe eingestuft [SWS_CRYPT_50077].

Zusammenspiel

Das durch Cancel() realisierte Abbruchmuster ist im Modul crypt standardisiert. Eine identische Schnittstellensemantik und derselbe Fehlercode ara::crypto::CryptoErrc::kProcessingNotStarted sind für korrespondierende Streaming-Kontexte definiert:

Dieser Nutzungshinweis wurde automatisiert auf Basis der AUTOSAR-Spezifikation R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

Header-Datei#include "ara/crypto/cryp/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
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_50077
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50077@rel:R25-11#863ca4bd
Content hash
863ca4bd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50077
Status: valid/unmigrated Version: rel:R25-11#863ca4bd 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_50077@rel:R25-11#863ca4bd
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function EncryptSingleCallWithOutputIv [SWS_CRYPT_50080] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > EncryptSingleCallWithOutputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, ReadWriteMemRegion ivOut, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform encryption and calculate/verify of the authentication tag in a single-call and return an IV generated by the context.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 6385ebfbc16d Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die synchrone Methode EncryptSingleCallWithOutputIv der Schnittstelle ara::crypto::cryp::AuthCipherCtx führt eine authentifizierte Chiffrierung in einem Einzelschritt aus und erzeugt dabei eigenständig einen Initialisierungsvektor [SWS_CRYPT_50080]. Sie verarbeitet Eingabedaten aus dataIn sowie optionale Zusatzdaten authenticatedData und schreibt das Chiffrat in den Puffer dataOut. Der generierte Initialisierungsvektor wird im Puffer ivOut abgelegt, während das Authentifizierungs-Tag über tag ausgegeben wird [SWS_CRYPT_50080]. Die Puffergröße für ivOut kann vorab über die Methode GetOutputIvSize ermittelt werden [SWS_CRYPT_50165]. Trotz des Namensbestandteils Encrypt dürfte die Methode vermutlich auch für die Entschlüsselung genutzt werden können, da die Fehlerspezifikation das Verhalten für transformDirection == kDecrypt explizit aufführt [SWS_CRYPT_50080]. Frage Q-66618567b20f99b9 (offen)

Für den Aufruf gelten wesentliche Vorbedingungen und Einschränkungen:

  • Der Kontext muss zuvor erfolgreich mit SetKey initialisiert worden sein; andernfalls wird kUninitializedContext gemeldet [SWS_CRYPT_50080].
  • Der Schlüssel im konfigurierten Key-Slot muss kompatibel sein und die passende Berechtigung aufweisen (z. B. kAllowDataEncrypt), da sonst kUsageViolation oder kIncompatibleObject zurückgegeben wird [SWS_CRYPT_50080].
  • Reichen die Ausgabepuffer dataOut oder ivOut nicht aus, schlägt der Aufruf mit kInsufficientCapacity fehl [SWS_CRYPT_50080].
  • Unterstützt der Kontext keine Einzelschritt-Verarbeitung oder erfordert er eine externe IV-Vorgabe, wird kUnsupported zurückgegeben [SWS_CRYPT_50080].

Die Operation ist als thread-safe sowie ausnahmesicher spezifiziert und garantiert im Fehlerfall Rollback-Semantik [SWS_CRYPT_50080]. Für reine symmetrische Chiffrierungen ohne Tag-Verarbeitung existiert ein separates Pendant in SymmetricCipherCtx [SWS_CRYPT_50049].

Dieser Text wurde von einer KI auf Basis der Spezifikation generiert.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data
ivOutan output data buffer that the initialization vector (IV) generated by the context will be written to

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer or authentication tag is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the data or IV output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50080
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50080@rel:R25-11#1fa18617
Content hash
1fa18617
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50080
Status: valid/unmigrated Version: rel:R25-11#1fa18617 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_50080@rel:R25-11#1fa18617
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function Finish [SWS_CRYPT_50075] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > Finish (ReadOnlyMemRegion in, ReadWriteMemRegion out, ReadWriteMemRegion tag) noexcept=0;

Finalize the en-/decryption and calculate/verify the authentication tag without returning an IV.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 8b946dd1de69 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung und Semantik

Die Methode Finish schließt die Ver- oder Entschlüsselung innerhalb eines ara::crypto::cryp::AuthCipherCtx synchron ab und berechnet beziehungsweise prüft das Authentifizierungs-Tag, ohne einen Initialisierungsvektor (IV) zurückzugeben [SWS_CRYPT_50075]. Der Aufrufer übergibt die verbleibenden Daten über den Puffer in sowie den Zielpuffer out. Über den Puffer tag wird bei der Verschlüsselung das berechnete Tag ausgegeben, während bei der Entschlüsselung das zu prüfende Tag übergeben wird [SWS_CRYPT_50075]. Der Rückgabewert ara::core::Result<std::size_t> beziffert die tatsächlich in out geschriebenen Bytes, welche kleiner als die Kapazität des Ausgabepuffers sein können [SWS_CRYPT_50075].

Ablauf und Zusammenspiel

Vor dem Aufruf muss die Datenverarbeitung zwingend durch Start() initiiert worden sein [SWS_CRYPT_50075]. Wurden zuvor Datenblöcke mittels UpdateConfidentialData verarbeitet, darf eine Anwendung den resultierenden Klartext bei der Entschlüsselung erst nach erfolgreicher Authentifizierung durch Finish verwenden [SWS_CRYPT_50074]. Die maximal erforderliche Puffergröße für out kann vorab über GetRequiredOutputBufferSize unter Angabe von isFinal = true ermittelt werden [SWS_CRYPT_50081].

Fehlerbehandlung und Nebenläufigkeit

Die Methode ist threadsicher und ausnahmesicher spezifiziert [SWS_CRYPT_50075]. Fehler werden über ara::core::Result mit Rollback-Semantik zurückgemeldet [SWS_CRYPT_50075]:

  • ProcessingNotStarted: Die Datenverarbeitung wurde nicht zuvor mit Start() gestartet [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: Der Ausgabepuffer out ist zu klein [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInvalidInputSize: Die Puffergröße von in oder tag ist ungültig [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: Die Datenauthentizität kann bei der Entschlüsselung nicht bestätigt werden [SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kUnsupported: Streaming-Verarbeitung wird vom Kontext nicht unterstützt [SWS_CRYPT_50075].

Hinweis: Dieser Nutzungshinweis wurde automatisch auf Basis der Spezifikationsdaten generiert.

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

Parameter (in)

ParameterBeschreibung
inan input data buffer that contains a part of the plaintext/ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the en-/decrypted data is written to

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag is written to

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif data processing has not been started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50075
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50075@rel:R25-11#61f4f343
Content hash
61f4f343
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50075
Status: valid/unmigrated Version: rel:R25-11#61f4f343 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_50075@rel:R25-11#61f4f343
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function FinishEncrypt [SWS_CRYPT_50076] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > FinishEncrypt (ReadOnlyMem Region in, ReadWriteMemRegion out, ReadWriteMemRegion tag, ReadWrite MemRegion ivOut) noexcept=0;

Finalize the encryption and calculate the authentication tag and return the IV generated by the context.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: fd75aa19665e Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die Methode FinishEncrypt schließt eine authentifizierte Verschlüsselungsoperation in ara::crypto::cryp::AuthCipherCtx synchron ab, berechnet den Authentifizierungs-Tag und gibt den vom Kontext generierten Initialisierungsvektor über ivOut zurück [SWS_CRYPT_50076]. Der Aufruf ist threadsicher sowie ausnahmesicher (exception safe) spezifiziert [SWS_CRYPT_50076]. Als Ergebnis liefert die Funktion ein ara::core::Result<std::size_t> mit der Anzahl der tatsächlich in den Ausgabepuffer out geschriebenen Bytes, wobei die Ausgabegröße kleiner als die Pufferkapazität sein darf [SWS_CRYPT_50076]. Interpretation: Obwohl der Name auf Verschlüsselung hinweist, deuten die Spezifikation des Parameters tag sowie der Fehlercode ara::crypto::CryptoErrc::kAuthTagNotValid darauf hin, dass die Signatur im Kontext symmetrisch auch für Entschlüsselungsoperationen verwendet werden dürfte. Frage Q-6b924f12c32e0f33 (offen)

Zusammenspiel und Pufferdimensionierung

Die Datenverarbeitung muss vorab zwingend mit Start() eingeleitet worden sein, andernfalls meldet die Funktion den Fehler ProcessingNotStarted [SWS_CRYPT_50076]. Zur Pufferdimensionierung ist das Zusammenspiel mit folgenden Kontextfunktionen zu beachten:

  • Die maximal erforderliche Kapazität für out kann vorab über [SWS_CRYPT_50081] mit dem Parameter isFinal = true berechnet werden, um den Fehler ara::crypto::CryptoErrc::kInsufficientCapacity zu vermeiden [SWS_CRYPT_50076].
  • Die minimale und maximale Puffergröße für die Eingabedaten in wird durch [SWS_CRYPT_50162] sowie [SWS_CRYPT_50082] bestimmt.
  • Die benötigte Puffergröße zur Aufnahme des generierten Initialisierungsvektors in ivOut lässt sich über [SWS_CRYPT_50165] abfragen.

Fehlerbehandlung und Randbedingungen

Im Fehlerfall besitzen alle Rückmeldungen eine definierte Rollback-Semantik [SWS_CRYPT_50076]. Bei ungültigen Puffergrößen für Eingabedaten oder den Authentifizierungs-Tag wird ara::crypto::CryptoErrc::kInvalidInputSize zurückgegeben [SWS_CRYPT_50076]. Zudem liefert die Funktion ara::crypto::CryptoErrc::kUnsupported, falls Stream-Verarbeitung nicht unterstützt wird, kein IV genutzt wird oder der IV bereits beim Start durch die Anwendung vorgegeben wurde [SWS_CRYPT_50076].

Dieser Nutzungshinweis wurde von einer KI erstellt und basiert ausschließlich auf den Spezifikationsdaten.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
inan input data buffer that contains a part of the plaintext/ciphertext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the en-/decrypted data is written to
ivOutan output data buffer that contains the IV

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag for encryption: an output data buffer that the authentication tag is written to

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out

Fehler

FehlercodeBeschreibung
ProcessingNotStartedif data processing has not been started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer or the authentication tag is invalid
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the processed data cannot be authenticated during decryption
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context or if this context does not use an IV or if the IV has been provided by the application in the Start() function

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50076
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50076@rel:R25-11#7ffd5c95
Content hash
7ffd5c95
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50076
Status: valid/unmigrated Version: rel:R25-11#7ffd5c95 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_50076@rel:R25-11#7ffd5c95
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetMaxAssociatedDataSize [SWS_CRYPT_20103] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMaxAssociatedDataSize () const noexcept=0;

Get maximum supported size of associated public data.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >maximal supported size of associated public data in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20103@rel:R25-11#91aa2c60
Content hash
91aa2c60
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20103
Status: valid/unmigrated Version: rel:R25-11#7d3e4b66 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_20103@rel:R25-11#7d3e4b66
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#91aa2c602026-09-30
  • R20-11rel:R20-11#91749f732026-10-14
  • R21-11rel:R21-11#c88a3b9a2026-10-14
  • R22-11rel:R22-11#e871a6a52026-10-14
  • R23-11rel:R23-11#84dddf6c2026-10-14
  • R24-11rel:R24-11#c2f0c3512026-10-14
  • R25-11rel:R25-11#7d3e4b662026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetMaximumChunkSize [SWS_CRYPT_50082] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMaximumChunkSize () const noexcept=0;

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

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the maximum buffer size in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50082
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50082@rel:R25-11#f8e55f72
Content hash
f8e55f72
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50082
Status: valid/unmigrated Version: rel:R25-11#f8e55f72 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_50082@rel:R25-11#f8e55f72
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetMaximumInputIvSize [SWS_CRYPT_50164] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMaximumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the maximum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50164
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50164@rel:R25-11#1567e5b7
Content hash
1567e5b7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50164
Status: valid/unmigrated Version: rel:R25-11#1567e5b7 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_50164@rel:R25-11#1567e5b7
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetMinimumChunkSize [SWS_CRYPT_50162] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMinimumChunkSize () const noexcept=0;

Get the minimum input buffer size supported for processing in single calls to Update(), Finish(), FinishEncrypt() or ProcessSingleCall() by this context.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >the minimum buffer size in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50162
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50162@rel:R25-11#aa502d0a
Content hash
aa502d0a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50162
Status: valid/unmigrated Version: rel:R25-11#aa502d0a 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_50162@rel:R25-11#aa502d0a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetMinimumInputIvSize [SWS_CRYPT_50163] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetMinimumInputIvSize (Crypto Transform transformDirection) const noexcept=0;

Get the minimum IV size required to be passed to the context in the functions Start() and ProcessSingleCallWithInputIv() for the given transformDirection.

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50163
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50163@rel:R25-11#452ee080
Content hash
452ee080
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50163
Status: valid/unmigrated Version: rel:R25-11#452ee080 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_50163@rel:R25-11#452ee080
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetOutputIvSize [SWS_CRYPT_50165] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetOutputIvSize () const noexcept=0;

Get the output IV size that will be returned by the functions FinishEncrypt() (in case no IV has been provided by the application during the call to Start()), and EncryptSingleCallWithOutputIv().

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of IV in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50165
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50165@rel:R25-11#b902740e
Content hash
b902740e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50165
Status: valid/unmigrated Version: rel:R25-11#b902740e 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_50165@rel:R25-11#b902740e
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetRequiredOutputBufferSize [SWS_CRYPT_50081] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > GetRequiredOutputBufferSize (std::size_t inputSize, bool isFinal) const noexcept;

Calculate the maximum required size of the output buffer depending on the input size in the current state of the context.

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

Parameter (in)

ParameterBeschreibung
inputSizesize of input data
isFinalif true, calculate maximum required output buffer size for Finish(), FinishEncrypt() and ProcessSingleCall() otherwise for Update()

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the required capacity of the output buffer (in bytes) or an error

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if the context was not initialized by deploying a key and setting the transformation direction
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50081
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50081@rel:R25-11#6a6a83e1
Content hash
6a6a83e1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50081
Status: valid/unmigrated Version: rel:R25-11#6a6a83e1 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_50081@rel:R25-11#6a6a83e1
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function GetTagSize [SWS_CRYPT_50161] Upstream: RS_CRYPTO_02309

virtual ara::core::Result< std::size_t > GetTagSize () const noexcept=0;

Get the output tag size.

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

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >size of the authentication tag in bytes

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if this interface is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50161
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50161@rel:R25-11#f81af579
Content hash
f81af579
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50161
Status: valid/unmigrated Version: rel:R25-11#f81af579 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_50161@rel:R25-11#f81af579
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ProcessSingleCall [SWS_CRYPT_50078] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > ProcessSingleCall (ReadOnly MemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMemRegion tag, CryptoTransform transformDirection, ara::core::Optional< ReadOnlyMem Region > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call without setting or returning an IV.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: a5183289221a Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die synchrone und als threadsicher definierte Methode ProcessSingleCall von ara::crypto::cryp::AuthCipherCtx führt die Ver- oder Entschlüsselung von Nutzdaten und die gleichzeitige Berechnung bzw. Verifikation des Authentifizierungs-Tags in einer einzelnen Operation ohne Initialisierungsvektor (IV) aus [SWS_CRYPT_50078]. Über den optionalen Puffer authenticatedData können zusätzliche authentifizierte Daten bereitgestellt werden [SWS_CRYPT_50078]. Der Puffer tag dient bei der Entschlüsselung als Eingabe zur Verifikation und bei der Verschlüsselung als Ausgabe zur Speicherung des erzeugten Authentifizierungs-Tags [SWS_CRYPT_50078]. Bei erfolgreicher Verarbeitung gibt ara::core::Result<std::size_t> die tatsächliche Anzahl der in dataOut geschriebenen Bytes zurück, die kleiner als die Kapazität des Zielpuffers sein kann [SWS_CRYPT_50078].

Vor dem Aufruf muss der kryptografische Kontext über einen erfolgreichen Aufruf von SetKey initialisiert worden sein; andernfalls schlägt die Funktion mit ara::crypto::CryptoErrc::kUninitializedContext fehl [SWS_CRYPT_50078]. Zudem muss der verwendete Schlüssel für die angeforderte Transformationsrichtung freigegeben sein (kAllowDataEncrypt bzw. kAllowDataDecrypt), da sonst ara::crypto::CryptoErrc::kUsageViolation gemeldet wird [SWS_CRYPT_50078]. Wird die Einzelschritt-Verarbeitung nicht unterstützt oder erfordert der Kontext einen IV, gibt die Funktion ara::crypto::CryptoErrc::kUnsupported zurück [SWS_CRYPT_50078]. Schlägt bei der Entschlüsselung die Authentifizierung fehl, wird ara::crypto::CryptoErrc::kAuthTagNotValid ausgelöst [SWS_CRYPT_50078]. Fehler am zugeordneten Schlüsselslot werden über EmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource oder ara::crypto::CryptoErrc::kIncompatibleObject signalisiert [SWS_CRYPT_50078].

Für die Pufferverwaltung kann die maximal erforderliche Ausgabegröße für dataOut vorab über GetRequiredOutputBufferSize mit gesetztem Flag isFinal = true berechnet werden [SWS_CRYPT_50081]; ein zu kleiner Ausgabepuffer führt zu ara::crypto::CryptoErrc::kInsufficientCapacity [SWS_CRYPT_50078]. Zusätzlich muss die Größe von dataIn den Grenzen von GetMinimumChunkSize [SWS_CRYPT_50162] und GetMaximumChunkSize [SWS_CRYPT_50082] entsprechen, um ara::crypto::CryptoErrc::kInvalidInputSize zu vermeiden [SWS_CRYPT_50078].

Dieser Nutzungshinweis wurde automatisiert auf Basis der Spezifikation von AUTOSAR Adaptive R25-11 generiert.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
transformDirectionthe transformation direction, i.e., encryption or decryption
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting or returning an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer or authentication tag is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50078
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50078@rel:R25-11#e0ad5fae
Content hash
e0ad5fae
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50078
Status: valid/unmigrated Version: rel:R25-11#e0ad5fae 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_50078@rel:R25-11#e0ad5fae
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ProcessSingleCallWithInputIv [SWS_CRYPT_50079] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > ProcessSingleCallWithInputIv (ReadOnlyMemRegion dataIn, ReadWriteMemRegion dataOut, ReadWriteMem Region tag, CryptoTransform transformDirection, ReadOnlyMemRegion iv, ara::core::Optional< ReadOnlyMemRegion > authenticatedData) noexcept=0;

Perform en-/decryption and calculate/verify of the authentication tag in a single-call, providing an IV to be used during en-/decryption.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 36312c01407d Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode [SWS_CRYPT_50079] der Klasse ara::crypto::cryp::AuthCipherCtx führt eine synchrone Einzelschritt-Verarbeitung (Single-Call) zur Ver- oder Entschlüsselung von Daten bei gleichzeitiger Berechnung bzw. Prüfung des Authentifizierungs-Tags durch.

Beim Aufruf werden die Eingabedaten über dataIn und die Richtung über transformDirection vorgegeben. Der Initialisierungsvektor wird über iv übergeben, und optionale Authentifizierungsdaten können über authenticatedData bereitgestellt werden [SWS_CRYPT_50079]. Der Puffer tag dient im Verschlüsselungsfall als Ausgabe für das berechnete Tag und im Entschlüsselungsfall als Eingabe für die Verifikation [SWS_CRYPT_50079]. Der Rückgabewert ara::core::Result<std::size_t> liefert bei Erfolg die Anzahl der in dataOut geschriebenen Bytes, die kleiner als die Pufferkapazität sein kann [SWS_CRYPT_50079].

Im Fehlerfall besitzen alle Fehlercodes Rollback-Semantik [SWS_CRYPT_50079]:

  • ara::crypto::CryptoErrc::kUninitializedContext: Vorab wurde kein Schlüssel per SetKey konfiguriert [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUsageViolation: Der Schlüssel besitzt nicht das erforderliche Recht kAllowDataEncrypt bzw. kAllowDataDecrypt [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kEmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource oder ara::crypto::CryptoErrc::kIncompatibleObject: Ein konfigurierter KeySlot ist leer, belegt oder enthält keinen kompatiblen SymmetricKey [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kInvalidInputSize oder ara::crypto::CryptoErrc::kInsufficientCapacity: Die Puffer für Eingabe, Tag oder IV sind ungültig dimensioniert oder dataOut bietet unzureichende Kapazität [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: Bei der Entschlüsselung schlägt die Authentifizierung fehl [SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUnsupported: Single-Shot-Verarbeitung wird vom Kontext nicht unterstützt oder der Kontext erfordert das Setzen bzw. Ausgeben eines IV [SWS_CRYPT_50079].

Die Operation ist als thread-safe und exception safe definiert [SWS_CRYPT_50079]. Die zulässigen Längen für iv können dynamisch über GetMinimumInputIvSize [SWS_CRYPT_50163] und GetMaximumInputIvSize [SWS_CRYPT_50164] abgefragt werden. Im Vergleich zur reinen Blockchiffre in SymmetricCipherCtx [SWS_CRYPT_50048] verknüpft diese Schnittstelle kryptografische Transformation und Integritätsprüfung in einem Aufruf.

Dieser Text wurde von einer KI auf Basis der AUTOSAR-Spezifikation R25-11 generiert.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
dataInan input data buffer containing the plaintext/ciphertext
transformDirectionthe transformation direction, i.e., encryption or decryption
ivan Initialization Vector (IV) or "nonce" value
authenticatedDataoptional additional authenticated data

Parameter (out)

ParameterBeschreibung
dataOutan output data buffer that contains en-/decrypted data

Parameter (in/out)

ParameterBeschreibung
tagfor decryption: an input data buffer that contains the authentication tag. for encryption: an output data buffer that the authentication tag is written to.

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kEmptyKeySlotrollback_semantics if a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if single shot processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting or returning an IV
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided input buffer, authentication tag, or IV is invalid
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the data or IV output buffer is too small
ara::crypto::CryptoErrc::kAuthTagNotValidrollback_semantics if the transformDirection is kDecrypt and the processed data cannot be authenticated

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50079
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50079@rel:R25-11#971c6b5c
Content hash
971c6b5c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50079
Status: valid/unmigrated Version: rel:R25-11#971c6b5c 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_50079@rel:R25-11#971c6b5c
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function SetKey [SWS_CRYPT_23911] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

The interface shall configure the context to use the provided SymmetricKey.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: c987f167a8b5 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode SetKey konfiguriert die Instanz von ara::crypto::cryp::AuthCipherCtx für die Verwendung eines übergebenen symmetrischen Schlüssels [SWS_CRYPT_23911]. Als Parameter wird ein Shared Pointer key (vom Typ SymmetricKey::Sptr) übergeben, der für die authentisierte Ver- oder Entschlüsselung genutzt wird [SWS_CRYPT_23911]. Der Aufruf erfolgt synchron, ist als noexcept deklariert und gibt ein ara::core::Result<void> zurück [SWS_CRYPT_23911].

Im Fehlerfall wird das Ergebnis mit Rollback-Semantik zurückgesetzt und liefert spezifische Fehlercodes [SWS_CRYPT_23911]:

  • ara::crypto::CryptoErrc::kUnsupported: falls der Kontext ausschließlich die Konfiguration über einen KeySlot unterstützt [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kIncompatibleObject: wenn der übergebene Schlüsseltyp nicht mit dem aktuellen Kontext kompatibel ist [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kUsageViolation: wenn die erlaubten Nutzungsflags des Schlüssels nicht kAllowDataEncrypt für Chiffrierung bzw. kAllowDataDecrypt für Dechiffrierung enthalten [SWS_CRYPT_23911].

Gemäß Spezifikation ist die Schnittstelle als threadsicher (thread-safe) und ausnahmesicher (exception safe) eingestuft [SWS_CRYPT_23911]. Im Zusammenspiel mit dem Modulkontext dürfte der Schlüssel vor der Initialisierung einer neuen Transformation via Start [SWS_CRYPT_24715] gesetzt werden. Frage Q-11f7daa370f5d438 (offen)

Dieser Nutzungshinweis wurde automatisiert auf Basis des AUTOSAR-Payloads generiert.

Implementer's Guide folgt (Komplexität I2)

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

Parameter (in)

ParameterBeschreibung
keysymmetric key object used for authenticated en-/decryption

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context only supports setting a KeySlot
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if the provided SymmetricKey is incompatible with this AuthCipher Ctx
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the provided SymmetricKey does not include kAllowDataEncrypt for encryption, or kAllowDataDecrypt for decryption, respectively

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

Record
AUTOSAR/AP/record/SWS_CRYPT_23911
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_23911@rel:R25-11#7fa81c37
Content hash
7fa81c37
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_23911
Status: valid/unmigrated Version: rel:R25-11#205c09dd 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_23911@rel:R25-11#205c09dd
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#7fa81c372026-09-30
  • R19-11rel:R19-11#fcb0604e2026-10-14
  • R20-11rel:R20-11#43c209ac2026-10-14
  • R21-11rel:R21-11#9babec8c2026-10-14
  • R22-11rel:R22-11#a5a2e9812026-10-14
  • R23-11rel:R23-11#1982ebed2026-10-14
  • R24-11rel:R24-11#3524b4832026-10-14
  • R25-11rel:R25-11#205c09dd2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function SetKey [SWS_CRYPT_50072] Upstream: RS_CRYPTO_02001, RS_CRYPTO_02003

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

The interface shall configure the context to use the key stored in the provided KeySlot when the authenticated encrypt or decrypt operation is executed.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 44d0d6c36fa2 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Funktion SetKey im Interface ara::crypto::cryp::AuthCipherCtx konfiguriert den Kontext für kryptografische Operationen so, dass der in einem bereitgestellten Key-Slot hinterlegte symmetrische Schlüssel verwendet wird, sobald die authentifizierte Ver- oder Entschlüsselung ausgeführt wird [SWS_CRYPT_50072].

Verwendung: Der synchrone Aufruf erfolgt über die Schnittstelle aus ara/crypto/cryp/auth_cipher_ctx.h. Als Parameter keySlot wird eine Instanz von KeySlot::Sptr übergeben, die einen symmetrischen Schlüssel kapselt [SWS_CRYPT_50072]. Die Funktion liefert ein ara::core::Result<void> zurück, das den Erfolg bestätigt oder einen Fehlercode enthält [SWS_CRYPT_50072].

Fehlerbehandlung: Sofern die konkrete Implementierung des Kontextes ausschließlich die direkte Konfiguration über ein SymmetricKey-Objekt unterstützt und das Setzen via KeySlot nicht anbietet, schlägt der Aufruf fehl. In diesem Fall wird der Fehler ara::crypto::CryptoErrc::kUnsupported mit Rollback-Semantik zurückgegeben [SWS_CRYPT_50072].

Nebenläufigkeit und Einschränkungen: Die Funktion ist als thread-safe und exception safe spezifiziert [SWS_CRYPT_50072]. Sie kann nebenläufig aufgerufen werden und stellt sicher, dass bei Ausnahmesituationen kein inkonsistenter Zustand verbleibt.

Zusammenspiel: Als funktionale Alternative steht die Überladung SetKey mit einem direkten SymmetricKey::Sptr zur Verfügung [SWS_CRYPT_23911]. Nach erfolgter Schlüsselbindung wird der Kontext über Start mit der Operationsrichtung sowie dem Initialisierungsvektor initialisiert [SWS_CRYPT_24715]. Analoge Signaturen mit KeySlot::Sptr existieren zudem in MessageAuthnCodeCtx [SWS_CRYPT_50026] und SymmetricKeyWrapperCtx [SWS_CRYPT_50034].

Dieser Text wurde von einer KI erstellt und basiert auf der Spezifikation AUTOSAR R25-11.

Implementer's Guide folgt (Komplexität I2)

Header-Datei#include "ara/crypto/cryp/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
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::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_50072
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50072@rel:R25-11#3dd5795a
Content hash
3dd5795a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50072
Status: valid/unmigrated Version: rel:R25-11#3dd5795a 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_50072@rel:R25-11#3dd5795a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function Start [SWS_CRYPT_24715] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > Start (CryptoTransform transform Direction, ReadOnlyMemRegion iv) noexcept=0;

Initialize the context for a new encryption or decryption and set the IV used by the context.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: da3f0fb3ff33 Herkunft Offene Fragen (1)
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode Start initialisiert den Kontext ara::crypto::cryp::AuthCipherCtx für eine neue Ver- oder Entschlüsselung und setzt den zu verwendenden Initialisierungsvektor (IV) bzw. Nonce-Wert [SWS_CRYPT_24715]. Über den Parameter transformDirection wird die Transformationsrichtung festgelegt, während iv den Vektor als ReadOnlyMemRegion übergibt [SWS_CRYPT_24715]. Die zulässige IV-Größe lässt sich über GetMinimumInputIvSize() sowie GetMaximumInputIvSize() ermitteln; bei abweichender Länge meldet die Funktion den Fehler ara::crypto::CryptoErrc::kInvalidInputSize [SWS_CRYPT_24715].

Vor dem Aufruf muss SetKey erfolgreich ausgeführt worden sein, andernfalls wird ara::crypto::CryptoErrc::kUninitializedContext zurückgegeben [SWS_CRYPT_24715]. Ein konfigurierter KeySlot darf weder leer (EmptyKeySlot) noch belegt sein (ara::crypto::CryptoErrc::kBusyResource) [SWS_CRYPT_24715]. Zudem muss der hinterlegte Schlüssel ein passender SymmetricKey sein (sonst ara::crypto::CryptoErrc::kIncompatibleObject) und für die gewünschte Richtung berechtigt sein (kAllowDataEncrypt bzw. kAllowDataDecrypt, sonst ara::crypto::CryptoErrc::kUsageViolation) [SWS_CRYPT_24715]. Fehlt die Unterstützung für Stream-Verarbeitung oder das Setzen eines IV in der gewählten Richtung, schlägt der Aufruf mit ara::crypto::CryptoErrc::kUnsupported fehl [SWS_CRYPT_24715]. Alle Fehler weisen Rollback-Semantik auf [SWS_CRYPT_24715].

Die Operation ist als thread-safe sowie exception-safe (noexcept) deklariert [SWS_CRYPT_24715]. Im Zusammenspiel kryptografischer Abläufe dürfte nach erfolgreicher Initialisierung typischerweise die Übergabe zusätzlicher authentifizierter Daten über UpdateAuthenticatedData folgen [SWS_CRYPT_20313]. Frage Q-e023e27f1cd24507 (offen)

Dieser Nutzungshinweis wurde automatisiert auf Basis des AUTOSAR-Releases R25-11 erstellt.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption
ivan Initialization Vector (IV) or "nonce" value. The allowed size of the IV can be queried using the functions GetMinimumInputIvSize() and GetMaximumInputIvSize().

Rückgabewert

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

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context does not support setting an IV in the given transform Direction
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if the configured KeySlot is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of provided IV is not supported

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

Record
AUTOSAR/AP/record/SWS_CRYPT_24715
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_24715@rel:R25-11#85d3f696
Content hash
85d3f696
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_24715
Status: valid/unmigrated Version: rel:R25-11#dacbb482 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_24715@rel:R25-11#dacbb482
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#85d3f6962026-09-30
  • R19-11rel:R19-11#ea0e49642026-10-14
  • R20-11rel:R20-11#e9fc84162026-10-14
  • R21-11rel:R21-11#a59d78ec2026-10-14
  • R22-11rel:R22-11#dca7e5782026-10-14
  • R23-11rel:R23-11#640bb79c2026-10-14
  • R24-11rel:R24-11#f389a1072026-10-14
  • R25-11rel:R25-11#dacbb4822026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function Start [SWS_CRYPT_50073] Upstream: RS_CRYPTO_02302

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

Initialize the context for a new encryption or decryption. An IV is either not required for this context in this transformation direction, or set by the context itself.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: f698e30e2198 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Verwendung

Die rein virtuelle Methode Start der Klasse ara::crypto::cryp::AuthCipherCtx initialisiert den Kontext synchron für eine anstehende Ver- oder Entschlüsselung [SWS_CRYPT_50073]. Über den Parameter transformDirection wird angegeben, ob der Kontext für Verschlüsselung oder Entschlüsselung vorbereitet wird. Diese Überladung ohne Initialisierungsvektor (IV) darf nur verwendet werden, wenn der kryptografische Kontext in der gewählten Transformationsrichtung keinen IV voraussetzt oder diesen selbst festlegt [SWS_CRYPT_50073]. Der Rückgabewert ist ein leeres ara::core::Result<void> im Erfolgsfall oder ein entsprechender Fehlercode.

Fehlerbehandlung und Vorbedingungen

Vor dem Aufruf muss der Kontext erfolgreich über SetKey mit einem Schlüssel konfiguriert worden sein; andernfalls schlägt die Funktion mit ara::crypto::CryptoErrc::kUninitializedContext fehl [SWS_CRYPT_50073]. Darüber hinaus treten im Fehlerfall folgende Rückgabewerte auf:

  • ara::crypto::CryptoErrc::kUnsupported, wenn die Stream-Verarbeitung vom Kontext nicht unterstützt wird oder wenn der Kontext in der gewählten Transformationsrichtung zwingend die explizite Angabe eines IV verlangt [SWS_CRYPT_50073].
  • ara::crypto::CryptoErrc::kUsageViolation, wenn die erlaubte Schlüsselnutzung im konfigurierten KeySlot zum Aufrufzeitpunkt nicht die erforderliche Berechtigung kAllowDataEncrypt für Verschlüsselung bzw. kAllowDataDecrypt für Entschlüsselung umfasst [SWS_CRYPT_50073].
  • EmptyKeySlot bzw. ara::crypto::CryptoErrc::kBusyResource, falls ein konfigurierter KeySlot gegenwärtig leer oder blockiert ist [SWS_CRYPT_50073].
  • ara::crypto::CryptoErrc::kIncompatibleObject, wenn der konfigurierte KeySlot keinen SymmetricKey enthält oder dieser Schlüsseltyp vom Kontext nicht unterstützt wird [SWS_CRYPT_50073].

Tritt ein Fehler auf, greift die spezifizierte Rollback-Semantik (rollback_semantics) [SWS_CRYPT_50073].

Nebenläufigkeit und Zusammenspiel

Die Funktion ist mit noexcept=0 deklariert, gewährleistet Exception-Sicherheit und ist threadsicher ausgelegt [SWS_CRYPT_50073]. Verlangt der Algorithmus die externe Bereitstellung eines Initialisierungsvektors, ist stattdessen die Überladung Start(CryptoTransform, ReadOnlyMemRegion) zu nutzen [SWS_CRYPT_24715]. Nach erfolgreicher Initialisierung können zusätzliche authentifizierte Daten über UpdateAuthenticatedData in die Berechnung des Authentifizierungstags einfließen [SWS_CRYPT_20313].

Dieser Verwendungshinweis wurde automatisiert auf Basis der Spezifikation AUTOSAR Adaptive R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
transformDirectionthe transformation direction, i.e., encryption or decryption

Rückgabewert

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

Fehler

FehlercodeBeschreibung
EmptyKeySlotif a KeySlot was configured that is currently is empty
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if the context requires setting an IV in the given transformDirection
ara::crypto::CryptoErrc::kUninitializedContextrollback_semantics if SetKey has not been successfully called before
ara::crypto::CryptoErrc::kBusyResourcerollback_semantics if a KeySlot has been configured, but is currently busy
ara::crypto::CryptoErrc::kUsageViolationrollback_semantics if the allowed usage of the SymmetricKey deployed or contained in the provided KeySlot at the time of invocation of this interface does not include kAllowDataEncrypt for encryption, or kAllowData Decrypt for decryption, respectively
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but does not contain a Symmetric Key
ara::crypto::CryptoErrc::kIncompatibleObjectrollback_semantics if a KeySlot has been configured, but the SymmetricKey contained is not supported by this context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_50073
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_50073@rel:R25-11#24eaa91a
Content hash
24eaa91a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_50073
Status: valid/unmigrated Version: rel:R25-11#24eaa91a 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_50073@rel:R25-11#24eaa91a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function UpdateAuthenticatedData [SWS_CRYPT_20313] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< void > UpdateAuthenticatedData (ReadOnlyMem Region authenticatedData) noexcept=0;

Update the tag calculation by a new chunk of additional authenticated data.

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: f3852a997444 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode UpdateAuthenticatedData der Schnittstelle ara::crypto::cryp::AuthCipherCtx dient dazu, die Berechnung des Authentisierungs-Tags schrittweise um ein weiteres Teilstück zusätzlicher authentifizierter Daten (Additional Authenticated Data) zu aktualisieren [SWS_CRYPT_20313]. Über den Parameter authenticatedData wird der entsprechende Puffer als ReadOnlyMemRegion übergeben [SWS_CRYPT_20313].

Hinsichtlich des Aufrufkontexts und der Nebenläufigkeit ist die Operation als thread-safe sowie exception safe definiert [SWS_CRYPT_20313]. Für den Aufruf gelten strikte Reihenfolgebedingungen:

  • Die Transformation muss vorab über die Methode Start() eingeleitet worden sein, andernfalls wird ara::crypto::CryptoErrc::kProcessingNotStarted gemeldet [SWS_CRYPT_20313].
  • Die Funktion darf nicht mehr aufgerufen werden, wenn UpdateConfidentialData bereits ausgeführt wurde; bei Nichteinhaltung wird der Fehler ara::crypto::CryptoErrc::kInvalidUsageOrder zurückgegeben [SWS_CRYPT_20313].

Als Rückgabewert liefert die Funktion ein ara::core::Result<void>, das im Erfolgsfall leer ist oder einen aufgetretenen Fehlercode kapselt [SWS_CRYPT_20313]. Sämtliche Fehler weisen eine Rollback-Semantik auf [SWS_CRYPT_20313]:

  • ara::crypto::CryptoErrc::kInvalidInputSize: Die Größe des übergebenen Eingangspuffers ist ungültig [SWS_CRYPT_20313].
  • ara::crypto::CryptoErrc::kUnsupported: Die Stream-Verarbeitung wird durch den aktuellen Kontext nicht unterstützt [SWS_CRYPT_20313].

Dieser Text wurde von einer KI generiert und dient als Orientierungshilfe. Verbindlich ist die AUTOSAR-Spezifikation.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
authenticatedDataa part of the additional authenticated data

Rückgabewert

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

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if the processing was not initiated by a call of the Start() method
ara::crypto::CryptoErrc::kInvalidUsageOrderrollback_semantics if UpdateConfidentialData has already been called
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20313@rel:R25-11#e6b73691
Content hash
e6b73691
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20313
Status: valid/unmigrated Version: rel:R25-11#fcb70f91 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_20313@rel:R25-11#fcb70f91
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e6b736912026-09-30
  • R19-11rel:R19-11#f75b41ea2026-10-14
  • R20-11rel:R20-11#4c46c8f42026-10-14
  • R21-11rel:R21-11#50979c0c2026-10-14
  • R22-11rel:R22-11#f4a00d3a2026-10-14
  • R23-11rel:R23-11#a528f60f2026-10-14
  • R24-11rel:R24-11#7dfc69482026-10-14
  • R25-11rel:R25-11#fcb70f912026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function UpdateConfidentialData [SWS_CRYPT_50074] Upstream: RS_CRYPTO_02302

virtual ara::core::Result< std::size_t > UpdateConfidentialData (Read OnlyMemRegion in, ReadWriteMemRegion out) noexcept=0;

Encrypt or decrypt confidential data. When used for decryption, the plaintext is returned without verifying its authenticity. An application must not use the data before verifying its authenticity using Finish().

KI-GENERIERT ungeprüft Modell: gemini-3.8-flash-medium · Aufwand: medium · Temperatur: nicht steuerbar · Prompt: 0a7976c267f4 Herkunft
KI-generiertgemini-3.8-flash-medium · 2026-10-13

Die Methode UpdateConfidentialData der Klasse ara::crypto::cryp::AuthCipherCtx dient dem schrittweisen Ver- oder Entschlüsseln vertraulicher Nutzdaten im Rahmen eines authentifizierten Chiffrierkontexts [SWS_CRYPT_50074]. Ihr werden der Eingabepuffer in (Typ ReadOnlyMemRegion) mit einem Teil des Klar- oder Geheimtexts sowie der Ausgabepuffer out (Typ ReadWriteMemRegion) übergeben [SWS_CRYPT_50074]. Als synchroner Rückgabewert liefert die Funktion ein ara::core::Result<std::size_t>, welches bei Erfolg die tatsächlich geschriebene Bytezahl enthält; diese kann kleiner als die Kapazität von out sein [SWS_CRYPT_50074].

Hinsichtlich des Ablaufs und der Nebenläufigkeit gelten folgende Bedingungen:

  • Ablaufreihenfolge und Integrität: Vor der Verarbeitung muss der Vorgang über Start() initiiert worden sein [SWS_CRYPT_50074]. Wird die Methode zur Entschlüsselung genutzt, wird der Klartext ohne vorherige Authentizitätsprüfung ausgegeben; die Anwendung darf diese Daten keinesfalls vor der abschließenden Verifikation mittels Finish() verwenden [SWS_CRYPT_50074]. Zusätzliche authentifizierte Daten können parallel über UpdateAuthenticatedData in die Tag-Berechnung einfließen [SWS_CRYPT_20313].
  • Thread- und Exception-Sicherheit: Die Operation ist als thread-safe sowie exception-safe deklariert und wirft keine Exceptions (noexcept) [SWS_CRYPT_50074].

Schlägt die Verarbeitung fehl, greift Rollback-Semantik unter Rückgabe eines entsprechenden Fehlercodes in ara::core::Result [SWS_CRYPT_50074]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: Die Verarbeitung wurde noch nicht per Start() eingeleitet [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: Der Ausgabepuffer out ist zu klein dimensioniert [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kInvalidInputSize: Die Größe des Puffers in ist ungültig [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kUnsupported: Stream-Verarbeitung wird vom Kontext nicht unterstützt [SWS_CRYPT_50074].

Dieser Text wurde von einer KI auf Basis der AUTOSAR-Spezifikation R25-11 generiert.

Implementer's Guide folgt (Komplexität I1)

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

Parameter (in)

ParameterBeschreibung
inan input data buffer containing a part of the ciphertext or plaintext

Parameter (out)

ParameterBeschreibung
outan output data buffer that the encrypted or decrypted data is written too

Rückgabewert

TypBeschreibung
ara::core::Result<std::size_t >a result containing the size of the output data or an error. The output data may be smaller than the size of the output buffer out.

Fehler

FehlercodeBeschreibung
ara::crypto::CryptoErrc::kProcessingNotStartedrollback_semantics if data processing was not started by a call of the Start() method
ara::crypto::CryptoErrc::kInsufficientCapacityrollback_semantics if the output buffer is too small
ara::crypto::CryptoErrc::kInvalidInputSizerollback_semantics if the size of the input buffer is invalid
ara::crypto::CryptoErrc::kUnsupportedrollback_semantics if stream processing is not supported by the context

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

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

Dokumentation der Typaliase

type alias Sptr [SWS_CRYPT_20101] Upstream: RS_CRYPTO_02207

using Sptr = std::shared_ptr<AuthCipherCtx>;

Smart pointer of the interface.

Header-Datei#include "ara/crypto/cryp/auth_cipher_ctx.h"
Scopeclass ara::crypto::cryp::AuthCipherCtx
SymbolSptr

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

Record
AUTOSAR/AP/record/SWS_CRYPT_20101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CRYPT_20101@rel:R25-11#6cded4ce
Content hash
6cded4ce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_20101
Status: valid/unmigrated Version: rel:R25-11#56d76308 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_20101@rel:R25-11#56d76308
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#6cded4ce2026-09-30
  • R19-11rel:R19-11#d499b7852026-10-14
  • R20-11rel:R20-11#38ae99fd2026-10-14
  • R21-11rel:R21-11#15df77a52026-10-14
  • R22-11rel:R22-11#22ad2b2d2026-10-14
  • R23-11rel:R23-11#d20afa502026-10-14
  • R24-11rel:R24-11#d20afa502026-10-14
  • R25-11rel:R25-11#56d763082026-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