DEENESPTFRRUARHIKOZHNL

클래스 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

사용자 가이드AI 생성

무결성 보호를 통한 인증된 대칭 암호화 및 복호화를 위한 인터페이스를 제공합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: a1dee2a3fcf5 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

무결성 보호를 통한 인증된 대칭 암호화 및 복호화를 위한 인터페이스를 제공합니다.

인터페이스 ara::crypto::cryp::AuthCipherCtx은 기밀성과 무결성을 유지하면서 데이터의 인증된 암호화 및 복호화를 수행하는 데 사용됩니다 [SWS_CRYPT_23911]. 키 구성 후 처리는 원자적 단일 호출로 수행되거나 초기화, 선택적 인증 데이터, 페이로드 업데이트 및 완료로 구성된 스트리밍 시퀀스로 수행됩니다. 중요한 보안 조건으로서 인증 태그가 유효하지 않으면 복호화가 실패하므로 복호화된 페이로드는 유효성 검사가 성공한 후에만 처리될 수 있습니다 [SWS_CRYPT_50075].

컨텍스트

인터페이스 ara::crypto::cryp::AuthCipherCtx은 AUTOSAR Adaptive Platform 내에서 인증된 암호화 작업(Authenticated Encryption with Associated Data, AEAD)을 위한 표준화된 프로그래밍 인터페이스를 정의합니다. 이 인터페이스는 페이로드의 실제 암호화 또는 복호화 외에도 항상 암호화 인증 태그를 생성하거나 검증함으로써 기밀성과 무결성 보호를 결합합니다. 호출 애플리케이션과 키 객체가 중앙 상호 작용 파트너 역할을 합니다. 컨텍스트는 사용 전에 SymmetricKey의 구체적인 인스턴스에 바인딩되거나 [SWS_CRYPT_23911], 영구화되거나 제공된 KeySlot으로 구성됩니다 [SWS_CRYPT_50072]. 점진적인 스트리밍 처리 외에도 이 클래스는 한 번의 단계로 완전한 메시지를 처리하기 위한 독립적인 단일 호출을 지원합니다 [SWS_CRYPT_50078].

수명 주기

컨텍스트는 애플리케이션 영역에서 공유 포인터 유형 ara::crypto::cryp::AuthCipherCtx::Sptr을 통해 관리됩니다 [SWS_CRYPT_20101]. (해석: AuthCipherCtx는 순수 인터페이스로 명시되어 있으므로 객체 생성은 일반적으로 상위 제공자 팩토리를 통해 수행됩니다). 질문 Q-23125789874cf2f3 (열림) 모든 멤버 함수는 예외 안전(exception safe) 및 스레드 안전(thread-safe)으로 선언되어 있습니다 [SWS_CRYPT_23911], [SWS_CRYPT_24715]. 기능적 수명 주기는 명확하게 정의된 상태를 거칩니다:

  • 초기화되지 않음: 인스턴스화 직후의 상태입니다. 아직 키가 할당되지 않았으므로 데이터 처리 호출이 거부됩니다 [SWS_CRYPT_50081].
  • 키 구성됨: SymmetricKey [SWS_CRYPT_23911] 또는 KeySlot [SWS_CRYPT_50072]을 사용하여 SetKey을 성공적으로 호출하면 컨텍스트가 사용 준비 상태로 전환됩니다. 이 상태에서는 단일 샷(Single-Shot) 작업을 직접 실행할 수 있습니다.
  • 스트리밍 활성: 초기화 벡터(IV)가 있는 [SWS_CRYPT_24715] 또는 명시적 IV가 없는 [SWS_CRYPT_50073] 변환 방향을 지정하여 Start을 호출함으로써 진입합니다.
  • 완료 / 초기화: 진행 중인 스트리밍 작업은 Finish [SWS_CRYPT_50075] 또는 FinishEncrypt [SWS_CRYPT_50076]을 통해 정상적으로 완료되거나 Cancel를 통해 조기에 중단됩니다 [SWS_CRYPT_50077]. 그 후 컨텍스트는 새로운 처리 시퀀스를 위해 다시 준비됩니다.
Lebenszyklus Uninitialized Uninitialized KeyConfigured KeyConfigured Uninitialized->KeyConfigured SetKey() KeyConfigured->KeyConfigured ProcessSingleCall() StreamingActive StreamingActive KeyConfigured->StreamingActive Start() StreamingActive->KeyConfigured Finish() / Cancel() StreamingActive->StreamingActive UpdateAuthenticatedData() UpdateConfidentialData()

상태 다이어그램: 키 바인딩부터 스트리밍 처리 및 완료까지 컨텍스트의 상태 단계. 출처: [SWS_CRYPT_23911], [SWS_CRYPT_50072], [SWS_CRYPT_24715], [SWS_CRYPT_50075], [SWS_CRYPT_50077].

사용 경로

지속적인 데이터 스트림 처리를 위해 인터페이스는 정렬된 호출 시퀀스를 요구합니다:

  1. 구성: SetKey [SWS_CRYPT_23911] 또는 KeySlot을 사용하는 SetKey를 통한 키 할당 [SWS_CRYPT_50072].
  2. 매개변수 쿼리: GetMinimumChunkSize [SWS_CRYPT_50162], GetMaximumChunkSize [SWS_CRYPT_50082], GetMinimumInputIvSize [SWS_CRYPT_50163], GetMaximumInputIvSize [SWS_CRYPT_50164], GetTagSize [SWS_CRYPT_50161] 및 GetRequiredOutputBufferSize [SWS_CRYPT_50081]을 통한 한곗값 및 버퍼 크기의 선택적 확인.
  3. 작업 시작: 방향(암호화 또는 복호화) 설정 및 IV [SWS_CRYPT_24715] 제공 또는 컨텍스트 고유 IV [SWS_CRYPT_50073] 요청과 함께 Start 호출.
  4. 연관 데이터(AAD): 추가 일반 텍스트 데이터를 무결성 계산에 포함해야 하는 경우, UpdateAuthenticatedData을 통해 전달됩니다 [SWS_CRYPT_20313]. 허용되는 최대 AAD 크기는 GetMaxAssociatedDataSize을 통해 쿼리할 수 있습니다 [SWS_CRYPT_20103]. 중요: AAD 블록은 반드시 실제 페이로드 데이터보다 먼저 전송되어야 합니다.
  5. 페이로드 데이터 처리: UpdateConfidentialData을 통한 데이터 블록의 단계적 전달 [SWS_CRYPT_50074]. 복호화 시 인증 여부가 확인되기 전에 일반 텍스트가 반환되므로, 애플리케이션은 성공적으로 마무리된 후에만 이 데이터를 사용해야 합니다.
  6. 마무리: Finish [SWS_CRYPT_50075] 또는 FinishEncrypt [SWS_CRYPT_50076]을 통한 작업 종료. 이를 통해 최종 블록이 처리되고 인증 태그가 계산되거나 검증됩니다.

소형 페이로드를 위한 단일 호출 대안이 존재합니다. ProcessSingleCall은 IV 전달 없이 데이터를 처리하고 [SWS_CRYPT_50078], ProcessSingleCallWithInputIv는 외부 IV를 수락하며 [SWS_CRYPT_50079], EncryptSingleCallWithOutputIv는 컨텍스트에서 생성된 IV를 호출자에게 반환합니다 [SWS_CRYPT_50080].

스트리밍 인증 암호화 흐름애플리케이션AuthCipherCtxSetKey(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>

시퀀스 다이어그램: 스트리밍 인증 암호화의 호출 순서. 출처: [SWS_CRYPT_23911], [SWS_CRYPT_24715], [SWS_CRYPT_20313], [SWS_CRYPT_50074], [SWS_CRYPT_50075].

오류 시나리오

AuthCipherCtx의 메서드는 ara::core::Result을 통해 결과를 반환하며 오류 발생 시 롤백 시맨틱을 갖습니다. ara::crypto::CryptoErrc의 관련 오류 코드는 다음과 같습니다:

이 가이드는 AUTOSAR Adaptive 표준(릴리스 R25-11)만을 기반으로 하며 ara::crypto::cryp::AuthCipherCtx 인터페이스에 대한 요구사항을 요약합니다.

멤버 맵

클래스 다이어그램

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

상세 보기

개요에서 항목을 선택하세요.

메서드

Cancel 함수

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 함수

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

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 함수

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 함수 2

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

오버로드 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 함수 2

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

오버로드 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;

타입 별칭

Sptr 타입 별칭

Smart pointer of the interface.

메서드 문서

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 739ac0d710b6 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

인터페이스 ara::crypto::cryp::AuthCipherCtx의 메서드 Cancel()은 이전에 Start()를 통해 시작되었으나 아직 완료되지 않은 활성 스트리밍 연산을 취소합니다 [SWS_CRYPT_50077]. 이 함수는 헤더 ara/crypto/cryp/auth_cipher_ctx.h를 통해 제공되며 전달 매개변수 없이 동기적으로 동작합니다 [SWS_CRYPT_50077]. 성공 시 비어 있는 ara::core::Result<void>을 반환합니다.

오류 처리 및 제약 조건

취소는 데이터 처리가 실제로 이전에 Start()에 의해 시작되었음을 전제로 합니다. 스트리밍 연산이 시작되지 않은 경우 호출은 실패하고 롤백 시맨틱과 함께 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted을 반환합니다 [SWS_CRYPT_50077].

동시성

이 연산은 noexcept(으)로 선언되어 있으며 사양에 따라 thread-safe 및 exception safe 둘 다로 분류되어 있습니다 [SWS_CRYPT_50077].

상호 작용

Cancel()에 의해 구현된 취소 패턴은 모듈 crypt에서 표준화되어 있습니다. 동일한 인터페이스 시맨틱과 동일한 오류 코드 ara::crypto::CryptoErrc::kProcessingNotStarted가 상응하는 스트리밍 컨텍스트에 대해 정의되어 있습니다:

이 사용 지침은 AUTOSAR 사양 R25-11을 바탕으로 자동 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#7ddd8f84
Content hash
7ddd8f84
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 6385ebfbc16d 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

인터페이스 ara::crypto::cryp::AuthCipherCtx의 동기 메서드 EncryptSingleCallWithOutputIv은(는) 단일 단계에서 인증된 암호화를 실행하고 이때 초기화 벡터를 자체적으로 생성합니다[SWS_CRYPT_50080]. 이 메서드는 dataIn의 입력 데이터와 선택적 추가 데이터 authenticatedData을(를) 처리하고 암호문을 버퍼 dataOut에 기록합니다. 생성된 초기화 벡터는 버퍼 ivOut에 저장되며, 인증 태그는 tag을(를) 통해 출력됩니다[SWS_CRYPT_50080]. ivOut의 버퍼 크기는 메서드 GetOutputIvSize을(를) 통해 미리 확인할 수 있습니다[SWS_CRYPT_50165]. 이름의 구성 요소 Encrypt에도 불구하고, 오류 사양에 transformDirection == kDecrypt에 대한 동작이 명시적으로 나열되어 있으므로 아마도 복호화에도 이 메서드를 사용할 수 있을 것으로 보입니다[SWS_CRYPT_50080]. 질문 Q-66618567b20f99b9 (열림)

호출에는 중요한 전제 조건과 제한 사항이 적용됩니다:

  • 컨텍스트는 사전에 SetKey(으)로 성공적으로 초기화되었어야 합니다. 그렇지 않으면 kUninitializedContext이(가) 보고됩니다[SWS_CRYPT_50080].
  • 구성된 키 슬롯의 키는 호환되어야 하고 적절한 권한(예: kAllowDataEncrypt)을 가져야 하며, 그렇지 않으면 kUsageViolation 또는 kIncompatibleObject이(가) 반환됩니다[SWS_CRYPT_50080].
  • 출력 버퍼 dataOut 또는 ivOut이(가) 충분하지 않으면 호출이 kInsufficientCapacity(으)로 실패합니다[SWS_CRYPT_50080].
  • 컨텍스트가 단일 단계 처리를 지원하지 않거나 외부 IV 지정을 필요로 하는 경우 kUnsupported이(가) 반환됩니다[SWS_CRYPT_50080].

이 연산은 thread-safe 및 예외 안전으로 명시되어 있으며 오류 발생 시 롤백 시맨틱을 보장합니다[SWS_CRYPT_50080]. 태그 처리가 없는 순수 대칭 암호화의 경우 SymmetricCipherCtx에 별도의 대응 기능이 존재합니다[SWS_CRYPT_50049].

이 텍스트는 사양을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#d90ec576
Content hash
d90ec576
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 8b946dd1de69 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용법 및 의미론

메서드 Finish은(는) ara::crypto::cryp::AuthCipherCtx 내에서 암호화 또는 복호화를 동기식으로 완료하고, 초기화 벡터(IV)를 반환하지 않고 인증 태그를 계산하거나 검사합니다[SWS_CRYPT_50075]. 호출자는 버퍼 in 및 대상 버퍼 out을(를) 통해 남은 데이터를 전달합니다. 버퍼 tag을(를) 통해 암호화 시에는 계산된 태그가 출력되고, 복호화 시에는 검사할 태그가 전달됩니다[SWS_CRYPT_50075]. 반환값 ara::core::Result<std::size_t>은(는) out에 실제로 기록된 바이트 수를 나타내며, 이는 출력 버퍼의 용량보다 작을 수 있습니다[SWS_CRYPT_50075].

순서 및 상호작용

호출 전에 데이터 처리는 반드시 Start()에 의해 시작되었어야 합니다[SWS_CRYPT_50075]. 이전에 데이터 블록이 UpdateConfidentialData을(를) 통해 처리된 경우, 애플리케이션은 복호화 시 Finish에 의한 인증이 성공한 후에만 결과 일반 텍스트를 사용할 수 있습니다[SWS_CRYPT_50074]. out에 필요한 최대 버퍼 크기는 isFinal = true을(를) 지정하여 GetRequiredOutputBufferSize을(를) 통해 미리 확인할 수 있습니다[SWS_CRYPT_50081].

오류 처리 및 동시성

이 메서드는 스레드 안전 및 예외 안전으로 명시되어 있습니다[SWS_CRYPT_50075]. 오류는 롤백 시맨틱과 함께 ara::core::Result을(를) 통해 다시 보고됩니다[SWS_CRYPT_50075]:

  • ProcessingNotStarted: 데이터 처리가 사전에 Start()(으)로 시작되지 않았습니다[SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: 출력 버퍼 out이(가) 너무 작습니다[SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kInvalidInputSize: in 또는 tag의 버퍼 크기가 유효하지 않습니다[SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: 복호화 시 데이터 신뢰성을 확인할 수 없습니다[SWS_CRYPT_50075].
  • ara::crypto::CryptoErrc::kUnsupported: 컨텍스트에서 스트리밍 처리를 지원하지 않습니다[SWS_CRYPT_50075].

참고: 이 사용 지침은 사양 데이터를 기반으로 자동 생성되었습니다.

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#fb2349b2
Content hash
fb2349b2
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: fd75aa19665e 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

FinishEncrypt 메서드는 ara::crypto::cryp::AuthCipherCtx에서 인증된 암호화 연산을 동기식으로 완료하고, 인증 태그를 계산하며, 컨텍스트에서 생성된 초기화 벡터를 ivOut를 통해 반환합니다[SWS_CRYPT_50076]. 호출은 스레드 안전 및 예외 안전(exception safe)으로 명세되어 있습니다[SWS_CRYPT_50076]. 결과로서 함수는 실제로 출력 버퍼 out에 기록된 바이트 수가 포함된 ara::core::Result<std::size_t>를 반환하며, 이때 출력 크기는 버퍼 용량보다 작을 수 있습니다[SWS_CRYPT_50076]. 해석: 이름은 암호화를 나타내지만, 매개변수 tag의 명세와 오류 코드 ara::crypto::CryptoErrc::kAuthTagNotValid은 이 시그니처가 컨텍스트에서 복호화 연산에도 대칭적으로 사용될 수 있음을 시사합니다. 질문 Q-6b924f12c32e0f33 (열림)

상호작용 및 버퍼 크기 산정

데이터 처리는 사전에 Start()로 반드시 시작되었어야 하며, 그렇지 않은 경우 함수는 오류 ProcessingNotStarted을(를) 보고합니다[SWS_CRYPT_50076]. 버퍼 크기 산정과 관련하여 다음 컨텍스트 함수들과의 상호작용에 유의해야 합니다:

  • out에 필요한 최대 용량은 오류 ara::crypto::CryptoErrc::kInsufficientCapacity을(를) 방지하기 위해 매개변수 isFinal = true와 함께 [SWS_CRYPT_50081]를 통해 사전에 계산될 수 있습니다[SWS_CRYPT_50076].
  • 입력 데이터 in의 최소 및 최대 버퍼 크기는 [SWS_CRYPT_50162] 및 [SWS_CRYPT_50082]에 의해 결정됩니다.
  • ivOut에서 생성된 초기화 벡터를 수용하는 데 필요한 버퍼 크기는 [SWS_CRYPT_50165]를 통해 쿼리할 수 있습니다.

오류 처리 및 제약 조건

오류 발생 시 모든 응답은 정의된 롤백 시맨틱을 갖습니다[SWS_CRYPT_50076]. 입력 데이터 또는 인증 태그의 유효하지 않은 버퍼 크기에 대해서는 ara::crypto::CryptoErrc::kInvalidInputSize이(가) 반환됩니다[SWS_CRYPT_50076]. 또한 스트림 처리가 지원되지 않거나, IV가 사용되지 않거나, 애플리케이션 시작 시 이미 IV가 지정된 경우 함수는 ara::crypto::CryptoErrc::kUnsupported를 반환합니다[SWS_CRYPT_50076].

이 사용 지침은 AI에 의해 작성되었으며 전적으로 명세 데이터에 기반합니다.

구현자 가이드 준비 중 (복잡도 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#80d73e1c
Content hash
80d73e1c
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

함수 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#0c8bb9b8
Content hash
0c8bb9b8
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

함수 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#7d895645
Content hash
7d895645
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

함수 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#cec37ca9
Content hash
cec37ca9
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

함수 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#b26f7db0
Content hash
b26f7db0
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

함수 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#84bb83af
Content hash
84bb83af
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

함수 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#e437afdf
Content hash
e437afdf
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

함수 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#02e9f0b6
Content hash
02e9f0b6
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

함수 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#b064fb9f
Content hash
b064fb9f
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: a5183289221a 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::crypto::cryp::AuthCipherCtx의 동기식이며 스레드 안전한 것으로 정의된 메서드 ProcessSingleCall은(는) 초기화 벡터(IV) 없이 단일 연산으로 페이로드의 암호화 또는 복호화와 인증 태그의 동시 계산 또는 검증을 실행합니다 [SWS_CRYPT_50078]. 선택적 버퍼 authenticatedData을(를) 통해 추가 인증 데이터를 제공할 수 있습니다 [SWS_CRYPT_50078]. 버퍼 tag은(는) 복호화 시에는 검증을 위한 입력으로 사용되고, 암호화 시에는 생성된 인증 태그를 저장하기 위한 출력으로 사용됩니다 [SWS_CRYPT_50078]. 성공적으로 처리되면 ara::core::Result<std::size_t>은(는) 대상 버퍼의 용량보다 작을 수 있는 dataOut에 기록된 실제 바이트 수를 반환합니다 [SWS_CRYPT_50078].

호출 전에 SetKey의 성공적인 호출을 통해 암호화 컨텍스트가 초기화되었어야 합니다. 그렇지 않으면 함수가 ara::crypto::CryptoErrc::kUninitializedContext(으)로 실패합니다 [SWS_CRYPT_50078]. 또한 사용된 키가 요청된 변환 방향에 대해 승인되어 있어야 하며(kAllowDataEncrypt 또는 kAllowDataDecrypt), 그렇지 않으면 ara::crypto::CryptoErrc::kUsageViolation이(가) 보고됩니다 [SWS_CRYPT_50078]. 단일 단계 처리가 지원되지 않거나 컨텍스트에 IV가 필요한 경우 함수는 ara::crypto::CryptoErrc::kUnsupported을(를) 반환합니다 [SWS_CRYPT_50078]. 복호화 시 인증에 실패하면 ara::crypto::CryptoErrc::kAuthTagNotValid이(가) 트리거됩니다 [SWS_CRYPT_50078]. 할당된 키 슬롯의 오류는 EmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource 또는 ara::crypto::CryptoErrc::kIncompatibleObject을(를) 통해 신호됩니다 [SWS_CRYPT_50078].

버퍼 관리를 위해 플래그 isFinal = true이(가) 설정된 상태에서 GetRequiredOutputBufferSize을(를) 통해 dataOut에 필요한 최대 출력 크기를 사전에 계산할 수 있습니다 [SWS_CRYPT_50081]. 출력 버퍼가 너무 작으면 ara::crypto::CryptoErrc::kInsufficientCapacity이(가) 발생합니다 [SWS_CRYPT_50078]. 또한 ara::crypto::CryptoErrc::kInvalidInputSize을(를) 방지하기 위해 dataIn의 크기는 GetMinimumChunkSize [SWS_CRYPT_50162] 및 GetMaximumChunkSize [SWS_CRYPT_50082]의 한계에 부합해야 합니다 [SWS_CRYPT_50078].

이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 기반으로 자동 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#a12ef9c9
Content hash
a12ef9c9
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 36312c01407d 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::crypto::cryp::AuthCipherCtx 클래스의 메서드 [SWS_CRYPT_50079]은(는) 인증 태그를 동시에 계산하거나 검사하면서 데이터의 암호화 또는 복호화를 위한 동기식 단일 단계 처리(Single-Call)를 수행합니다.

호출 시 입력 데이터는 dataIn을(를) 통해 지정되고 방향은 transformDirection을(를) 통해 지정됩니다. 초기화 벡터는 iv을(를) 통해 전달되며, 선택적 인증 데이터는 authenticatedData을(를) 통해 제공될 수 있습니다[SWS_CRYPT_50079]. 버퍼 tag은(는) 암호화 시 계산된 태그의 출력으로, 복호화 시 검증을 위한 입력으로 사용됩니다[SWS_CRYPT_50079]. 반환값 ara::core::Result<std::size_t>은(는) 성공 시 dataOut에 기록된 바이트 수를 제공하며, 이는 버퍼 용량보다 작을 수 있습니다[SWS_CRYPT_50079].

오류 발생 시 모든 오류 코드는 롤백 시맨틱을 갖습니다[SWS_CRYPT_50079]:

  • ara::crypto::CryptoErrc::kUninitializedContext: 사전에 SetKey을(를) 통해 키가 구성되지 않았습니다[SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUsageViolation: 키에 필요한 권한(kAllowDataEncrypt 또는 kAllowDataDecrypt)이 없습니다[SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kEmptyKeySlot, ara::crypto::CryptoErrc::kBusyResource 또는 ara::crypto::CryptoErrc::kIncompatibleObject: 구성된 KeySlot이 비어 있거나, 점유되어 있거나, 호환 가능한 SymmetricKey을(를) 포함하지 않습니다[SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kInvalidInputSize 또는 ara::crypto::CryptoErrc::kInsufficientCapacity: 입력, 태그 또는 IV용 버퍼의 크기가 유효하지 않게 지정되었거나 dataOut의 용량이 충분하지 않습니다[SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kAuthTagNotValid: 복호화 시 인증에 실패했습니다[SWS_CRYPT_50079].
  • ara::crypto::CryptoErrc::kUnsupported: 컨텍스트에서 단일 샷(Single-Shot) 처리를 지원하지 않거나 컨텍스트에서 IV 설정 또는 출력을 필요로 합니다[SWS_CRYPT_50079].

이 연산은 thread-safe 및 exception safe(으)로 정의됩니다[SWS_CRYPT_50079]. iv에 허용되는 길이는 GetMinimumInputIvSize [SWS_CRYPT_50163] 및 GetMaximumInputIvSize [SWS_CRYPT_50164]을(를) 통해 동적으로 조회할 수 있습니다. SymmetricCipherCtx [SWS_CRYPT_50048]의 순수 블록 암호와 비교하여 이 인터페이스는 단일 호출에서 암호화 변환과 무결성 검사를 결합합니다.

이 텍스트는 AUTOSAR 사양 R25-11을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#5cfd5373
Content hash
5cfd5373
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: c987f167a8b5 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

SetKey 메서드는 전달된 대칭 키를 사용하도록 ara::crypto::cryp::AuthCipherCtx의 인스턴스를 구성합니다 [SWS_CRYPT_23911]. 매개변수로 인증된 암호화 또는 복호화에 사용되는 key(타입 SymmetricKey::Sptr)의 공유 포인터가 전달됩니다 [SWS_CRYPT_23911]. 호출은 동기적으로 수행되고 noexcept로 선언되어 있으며 ara::core::Result<void>를 반환합니다 [SWS_CRYPT_23911].

오류 발생 시 결과는 롤백 시맨틱으로 재설정되며 특정 오류 코드를 반환합니다 [SWS_CRYPT_23911]:

  • ara::crypto::CryptoErrc::kUnsupported: 컨텍스트가 KeySlot를 통한 구성만을 지원하는 경우 [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kIncompatibleObject: 전달된 키 타입이 현재 컨텍스트와 호환되지 않는 경우 [SWS_CRYPT_23911].
  • ara::crypto::CryptoErrc::kUsageViolation: 키의 허용된 사용 플래그에 암호화를 위한 kAllowDataEncrypt 또는 복호화를 위한 kAllowDataDecrypt가 포함되어 있지 않은 경우 [SWS_CRYPT_23911].

사양에 따르면 이 인터페이스는 스레드 안전(thread-safe) 및 예외 안전(exception safe)으로 분류됩니다 [SWS_CRYPT_23911]. 모듈 컨텍스트와의 상호작용에서 키는 Start [SWS_CRYPT_24715]를 통한 새 변환 초기화 전에 설정될 것으로 추정됩니다. 질문 Q-11f7daa370f5d438 (열림)

이 사용 지침은 AUTOSAR 페이로드를 기반으로 자동 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#c1d76e2f
Content hash
c1d76e2f
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 44d0d6c36fa2 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::crypto::cryp::AuthCipherCtx 인터페이스의 SetKey 함수는 인증된 암호화 또는 복호화가 실행되는 즉시 제공된 키 슬롯에 저장된 대칭 키가 사용되도록 암호화 연산을 위한 컨텍스트를 구성합니다[SWS_CRYPT_50072].

사용법: 동기식 호출은 ara/crypto/cryp/auth_cipher_ctx.h의 인터페이스를 통해 수행됩니다. keySlot 매개변수로 대칭 키를 캡슐화하는 KeySlot::Sptr 인스턴스가 전달됩니다[SWS_CRYPT_50072]. 함수는 성공을 확인하거나 오류 코드를 포함하는 ara::core::Result<void>를 반환합니다[SWS_CRYPT_50072].

오류 처리: 컨텍스트의 구체적인 구현이 SymmetricKey 객체를 통한 직접 구성만을 지원하고 KeySlot을(를) 통한 설정을 제공하지 않는 경우 호출은 실패합니다. 이 경우 롤백 시맨틱과 함께 ara::crypto::CryptoErrc::kUnsupported 오류가 반환됩니다[SWS_CRYPT_50072].

동시성 및 제약 사항: 함수는 thread-safe 및 exception safe로 명세되어 있습니다[SWS_CRYPT_50072]. 동시 호출이 가능하며 예외 상황에서도 불일치한 상태가 남지 않도록 보장합니다.

상호작용: 기능적 대안으로 직접적인 SymmetricKey::Sptr을(를) 사용하는 오버로드 SetKey를 사용할 수 있습니다[SWS_CRYPT_23911]. 키 바인딩이 완료된 후 컨텍스트는 연산 방향 및 초기화 벡터와 함께 Start를 통해 초기화됩니다[SWS_CRYPT_24715]. KeySlot::Sptr를 사용하는 유사한 시그니처는 MessageAuthnCodeCtx [SWS_CRYPT_50026] 및 SymmetricKeyWrapperCtx [SWS_CRYPT_50034]에도 존재합니다.

이 텍스트는 AI에 의해 작성되었으며 AUTOSAR R25-11 명세를 기반으로 합니다.

구현자 가이드 준비 중 (복잡도 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#92976436
Content hash
92976436
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: da3f0fb3ff33 출처 열린 질문 (1)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

Start 메서드는 새로운 암호화 또는 복호화를 위해 컨텍스트 ara::crypto::cryp::AuthCipherCtx을 초기화하고 사용할 초기화 벡터(IV) 또는 nonce 값을 설정합니다 [SWS_CRYPT_24715]. transformDirection 매개변수를 통해 변환 방향이 지정되며, iv는 벡터를 ReadOnlyMemRegion로 전달합니다 [SWS_CRYPT_24715]. 허용되는 IV 크기는 GetMinimumInputIvSize() 및 GetMaximumInputIvSize()을 통해 확인할 수 있으며, 길이가 일치하지 않는 경우 함수는 오류 ara::crypto::CryptoErrc::kInvalidInputSize를 보고합니다 [SWS_CRYPT_24715].

호출 전에 SetKey이 성공적으로 실행되어 있어야 하며, 그렇지 않으면 ara::crypto::CryptoErrc::kUninitializedContext이 반환됩니다 [SWS_CRYPT_24715]. 구성된 KeySlot는 비어 있거나(EmptyKeySlot) 사용 중(ara::crypto::CryptoErrc::kBusyResource)이어서는 안 됩니다 [SWS_CRYPT_24715]. 또한 저장된 키는 적절한 SymmetricKey이어야 하고(그렇지 않으면 ara::crypto::CryptoErrc::kIncompatibleObject) 원하는 방향에 대한 권한이 있어야 합니다(kAllowDataEncrypt 또는 kAllowDataDecrypt, 그렇지 않으면 ara::crypto::CryptoErrc::kUsageViolation) [SWS_CRYPT_24715]. 스트림 처리에 대한 지원이 없거나 선택한 방향에서 IV 설정 지원이 누락된 경우 호출은 ara::crypto::CryptoErrc::kUnsupported과 함께 실패합니다 [SWS_CRYPT_24715]. 모든 오류는 롤백 시맨틱을 갖습니다 [SWS_CRYPT_24715].

이 작업은 thread-safe 및 exception-safe(noexcept)로 선언되어 있습니다 [SWS_CRYPT_24715]. 암호화 흐름의 상호작용에서 성공적인 초기화 후에는 일반적으로 UpdateAuthenticatedData를 통한 추가 인증 데이터 전달이 이어질 것으로 추정됩니다 [SWS_CRYPT_20313]. 질문 Q-e023e27f1cd24507 (열림)

본 사용 지침은 AUTOSAR 릴리스 R25-11을 기반으로 자동 작성되었습니다.

구현자 가이드 준비 중 (복잡도 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#10266ac6
Content hash
10266ac6
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: f698e30e2198 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

사용

ara::crypto::cryp::AuthCipherCtx 클래스의 순수 가상 메서드 Start는 향후 수행될 암호화 또는 복호화를 위해 컨텍스트를 동기식으로 초기화합니다[SWS_CRYPT_50073]. 매개변수 transformDirection를 통해 컨텍스트가 암호화를 위해 준비되는지 아니면 복호화를 위해 준비되는지 지정합니다. 초기화 벡터(IV)가 없는 이 오버로드는 암호화 컨텍스트가 선택한 변환 방향에서 IV를 요구하지 않거나 이를 직접 결정하는 경우에만 사용해야 합니다[SWS_CRYPT_50073]. 반환값은 성공 시 비어 있는 ara::core::Result<void>이거나 해당 오류 코드입니다.

오류 처리 및 사전 조건

호출 전에 컨텍스트는 SetKey를 통해 키로 성공적으로 구성되어 있어야 합니다. 그렇지 않으면 함수는 ara::crypto::CryptoErrc::kUninitializedContext 오류로 실패합니다[SWS_CRYPT_50073]. 또한 오류 발생 시 다음과 같은 반환값이 나타납니다:

  • 스트림 처리가 컨텍스트에서 지원되지 않거나, 컨텍스트가 선택한 변환 방향에서 명시적인 IV 지정을 반드시 요구하는 경우 ara::crypto::CryptoErrc::kUnsupported[SWS_CRYPT_50073].
  • 호출 시점에 구성된 KeySlot의 허용된 키 사용에 암호화를 위한 필수 권한 kAllowDataEncrypt 또는 복호화를 위한 필수 권한 kAllowDataDecrypt가 포함되지 않은 경우 ara::crypto::CryptoErrc::kUsageViolation[SWS_CRYPT_50073].
  • 구성된 KeySlot이(가) 현재 비어 있거나 차단된 경우 EmptyKeySlot 또는 ara::crypto::CryptoErrc::kBusyResource[SWS_CRYPT_50073].
  • 구성된 KeySlot에 SymmetricKey이(가) 포함되어 있지 않거나 해당 키 유형이 컨텍스트에서 지원되지 않는 경우 ara::crypto::CryptoErrc::kIncompatibleObject[SWS_CRYPT_50073].

오류가 발생하면 명세된 롤백 시맨틱(rollback_semantics)이 적용됩니다[SWS_CRYPT_50073].

동시성 및 상호 작용

이 함수는 noexcept=0(으)로 선언되어 예외 안전성을 보장하며 스레드 안전하도록 설계되었습니다[SWS_CRYPT_50073]. 알고리즘이 초기화 벡터의 외부 제공을 요구하는 경우 대신 오버로드 Start(CryptoTransform, ReadOnlyMemRegion)를 사용해야 합니다[SWS_CRYPT_24715]. 성공적으로 초기화된 후에는 UpdateAuthenticatedData를 통해 추가적인 인증 데이터를 인증 태그 계산에 포함시킬 수 있습니다[SWS_CRYPT_20313].

이 사용 지침은 AUTOSAR Adaptive R25-11 사양을 바탕으로 자동 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#0dc6c204
Content hash
0dc6c204
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

함수 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.

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: f3852a997444 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

ara::crypto::cryp::AuthCipherCtx 인터페이스의 UpdateAuthenticatedData 메서드는 추가 인증 데이터(Additional Authenticated Data)의 추가 조각을 통해 인증 태그 계산을 점진적으로 업데이트하는 데 사용됩니다[SWS_CRYPT_20313]. 매개변수 authenticatedData을(를) 통해 해당 버퍼가 ReadOnlyMemRegion(으)로 전달됩니다[SWS_CRYPT_20313].

호출 컨텍스트 및 동시성과 관련하여 이 연산은 thread-safe 및 exception safe(으)로 정의되어 있습니다[SWS_CRYPT_20313]. 호출에는 엄격한 순서 조건이 적용됩니다:

  • 변환은 사전에 Start() 메서드를 통해 시작되어야 하며, 그렇지 않으면 ara::crypto::CryptoErrc::kProcessingNotStarted이(가) 보고됩니다[SWS_CRYPT_20313].
  • UpdateConfidentialData이(가) 이미 실행된 경우에는 이 함수를 더 이상 호출해서는 안 되며, 준수하지 않을 경우 오류 ara::crypto::CryptoErrc::kInvalidUsageOrder이(가) 반환됩니다[SWS_CRYPT_20313].

반환값으로 이 함수는 성공 시 비어 있거나 발생한 오류 코드를 캡슐화하는 ara::core::Result<void>을(를) 제공합니다[SWS_CRYPT_20313]. 모든 오류는 롤백 시맨틱을 갖습니다[SWS_CRYPT_20313]:

  • ara::crypto::CryptoErrc::kInvalidInputSize: 전달된 입력 버퍼의 크기가 잘못되었습니다[SWS_CRYPT_20313].
  • ara::crypto::CryptoErrc::kUnsupported: 현재 컨텍스트에서 스트림 처리를 지원하지 않습니다[SWS_CRYPT_20313].

이 텍스트는 AI에 의해 생성되었으며 참고용으로 제공됩니다. 구속력을 갖는 것은 AUTOSAR 사양입니다.

구현자 가이드 준비 중 (복잡도 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#ef5e7e16
Content hash
ef5e7e16
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

함수 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().

AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: 0a7976c267f4 출처
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

클래스 ara::crypto::cryp::AuthCipherCtx의 메서드 UpdateConfidentialData은(는) 인증된 암호화 컨텍스트의 프레임워크 내에서 기밀 페이로드를 점진적으로 암호화하거나 복호화하는 데 사용됩니다 [SWS_CRYPT_50074]. 평문 또는 암호문의 일부가 포함된 입력 버퍼 in(타입 ReadOnlyMemRegion) 및 출력 버퍼 out(타입 ReadWriteMemRegion)가 이 메서드에 전달됩니다 [SWS_CRYPT_50074]. 동기식 반환값으로 이 함수는 ara::core::Result<std::size_t>을(를) 반환하며, 이는 성공 시 실제로 기록된 바이트 수를 포함합니다. 이 값은 out의 용량보다 작을 수 있습니다 [SWS_CRYPT_50074].

동작 흐름 및 동시성과 관련하여 다음 조건이 적용됩니다:

  • 실행 순서 및 무결성: 처리 전에 Start()을(를) 통해 작업이 시작되었어야 합니다 [SWS_CRYPT_50074]. 이 메서드가 복호화에 사용되는 경우 사전 인증 검증 없이 평문이 출력됩니다. 애플리케이션은 Finish()을(를) 통한 최종 검증 전에는 어떠한 경우에도 이 데이터를 사용해서는 안 됩니다 [SWS_CRYPT_50074]. 추가적인 인증 데이터는 UpdateAuthenticatedData을(를) 통해 태그 계산에 병렬로 반영될 수 있습니다 [SWS_CRYPT_20313].
  • 스레드 및 예외 안전성: 해당 연산은 thread-safe 및 exception-safe로 선언되어 있으며 예외를 발생시키지 않습니다(noexcept) [SWS_CRYPT_50074].

처리가 실패하면 ara::core::Result에서 해당 오류 코드를 반환하면서 롤백 시맨틱이 적용됩니다 [SWS_CRYPT_50074]:

  • ara::crypto::CryptoErrc::kProcessingNotStarted: Start()을(를) 통한 처리가 아직 시작되지 않았습니다 [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kInsufficientCapacity: 출력 버퍼 out의 크기가 너무 작게 할당되었습니다 [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kInvalidInputSize: 버퍼 in의 크기가 유효하지 않습니다 [SWS_CRYPT_50074].
  • ara::crypto::CryptoErrc::kUnsupported: 스트림 처리가 컨텍스트에서 지원되지 않습니다 [SWS_CRYPT_50074].

이 텍스트는 AUTOSAR 사양 R25-11을 기반으로 AI에 의해 생성되었습니다.

구현자 가이드 준비 중 (복잡도 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#1c55ee82
Content hash
1c55ee82
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

타입 별칭 문서

타입 별칭 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#1b03bc9c
Content hash
1b03bc9c
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