DEENESPTFRRUARHIKOZHNL

네임스페이스 ara::crypto::cryp

사용자 가이드AI 생성

암호화 연산, 키 객체 및 해당 스토리지 관리를 위한 인터페이스를 정의합니다.
AI 생성 미검증 모델: gemini-3.8-flash-medium · 노력: medium · 온도: 제어 불가 · 프롬프트: f15c72def571 출처 열린 질문 (3)
독일어 가이드에서 번역됨gemini-3.8-flash-low · 2026-10-13 · 독일어 원문

암호화 연산, 키 객체 및 해당 스토리지 관리를 위한 인터페이스를 정의합니다.

네임스페이스 ara::crypto::cryp은(는) AUTOSAR Adaptive 플랫폼에서 암호화 연산, 키 객체 및 키 스토리지를 위한 핵심 인터페이스를 제공합니다. 중앙 팩토리 CryptoProvider을(를) 통해 KeySlot의 인스턴스로부터 키를 획득하고, 암호화, 서명 또는 해싱을 위한 CryptoContext 기반의 특수화된 실행 컨텍스트를 인스턴스화합니다. 암호화 연산은 상태 기반 컨텍스트를 구성한 후 입력 데이터를 사용하여 수행됩니다. 현재 해석에 따르면 중요한 제약 조건은 CryptoObject을(를) 통한 키 자료의 엄격한 캡슐화 및 WriteableKeySlot을(를) 통한 쓰기 권한의 구분에 있습니다.

컨텍스트 및 역할 범위

네임스페이스 ara::crypto::cryp은(는) AUTOSAR Adaptive 암호화 모듈의 기능적 핵심을 형성하며 암호화 프리미티브, 객체 모델 및 키 관리 구조를 위한 인터페이스를 제공합니다. 아키텍처의 중심에는 암호화 알고리즘의 구현 인스턴스이자 팩토리 역할을 하고 키 스토리지에 접근하는 인터페이스 CryptoProvider이(가) 있습니다. 기본 데이터 구조와 키는 공통 인터페이스 CryptoObject을(를) 통해 표현되며, 이로부터 SymmetricKey, PublicKey, PrivateKey와(과) 같은 구체적인 키 타입이 파생됩니다. 키 자료의 저장 위치는 KeySlot 및 해당 쓰기 가능 특수화인 WriteableKeySlot에 의해 매핑됩니다.

CrypKontext CryptoProvider CryptoProvider KeySlot KeySlot CryptoProvider->KeySlot verwaltet CryptoContext CryptoContext CryptoProvider->CryptoContext erzeugt CryptoObject CryptoObject KeySlot->CryptoObject haelt CryptoContext->CryptoObject 사용 SymmetricKey SymmetricKey CryptoObject->SymmetricKey spezialisiert PublicKey PublicKey CryptoObject->PublicKey spezialisiert PrivateKey PrivateKey CryptoObject->PrivateKey spezialisiert WriteableKeySlot WriteableKeySlot WriteableKeySlot->KeySlot erweitert

컨텍스트 다이어그램: CryptoProvider, 키 스토리지 및 암호화 컨텍스트 간의 상호작용. 출처: 페이로드에 명시되지 않음.

암호화 변환의 실행을 위해 네임스페이스는 가변 기본 컨텍스트 CryptoContext을(를) 기반으로 구축된 특수 인터페이스 패밀리를 제공합니다. 이러한 실행 컨텍스트에는 대칭 암호화기(SymmetricCipherCtx, AuthCipherCtx), 비대칭 암호화 및 복호화(EncryptorPublicCtx, DecryptorPrivateCtx), 서명 생성 및 검증 메커니즘(SignerPrivateCtx, VerifierPublicCtx)이 포함됩니다. 이 스펙트럼은 해시 함수(HashFunctionCtx), 메시지 인증 코드(MessageAuthnCodeCtx), 키 유도(KeyDerivationFunctionCtx), 키 합의(KeyAgreementPrivateCtx), 키 캡슐화(KeyEncapsulatorPublicCtx, KeyDecapsulatorPrivateCtx), 대칭 래핑을 사용한 키 캡슐화(SymmetricKeyWrapperCtx), 난수 생성(RandomGeneratorCtx) 및 보안 키 임포트(ProtectedKeyImportCtx)를 위한 컨텍스트에 의해 보완됩니다.

수명주기 및 상태 유지

암호화 아티팩트의 관리 및 수명은 CryptoProvider, 키 객체 및 컨텍스트 간의 상호작용에 밀접하게 연결되어 있습니다. 암호화 컨텍스트 및 객체의 수명주기는 현재 해석에 따르면 인스턴스화를 위한 중앙 진입점 역할을 하는 CryptoProvider의 팩토리 및 관리 메서드를 통해 주로 제어됩니다. CryptoObject에서 파생된 객체는 불변 또는 관리되는 암호화 엔티티를 나타내는 반면, CryptoContext은(는) 상태 기반의 가변 컨텍스트로 명시적으로 정의됩니다. 따라서 구성, 중간 상태 및 알고리즘 매개변수는 해당 컨텍스트 인스턴스 내에서 유지 관리되어야 합니다.

키 자료의 영구적 또는 일시적 저장을 위해 네임스페이스는 KeySlot과(와) WriteableKeySlot을(를) 구분합니다. 합리적인 해석에 따르면 KeySlot과(와) WriteableKeySlot의 분리는 읽기 접근과 쓰기 키 수정을 분리하여 불변 또는 쓰기 보호된 키 영역이 실수로 덮어쓰여지는 것을 방지할 수 있도록 합니다. 질문 Q-e1b708ca976f7e99 (열림) 따라서 키와 컨텍스트의 상태 변환은 수명주기 전반에 걸쳐 키 객체의 유효성을 보장하는 관련 제공자의 제어 하에 발생합니다.

암호화 연산의 사용 경로

암호화 연산은 일반적으로 제공자 쿼리, 키 슬롯을 통한 키 프로비저닝, 상태 저장 컨텍스트 초기화의 순서를 따릅니다. 첫 번째 단계에서 애플리케이션 컴포넌트는 담당 CryptoProvider에 접근합니다. 이 제공자를 통해 필요한 키 자료를 KeySlot 또는 WriteableKeySlot에서 로드하거나 구체적인 CryptoObject(예: SymmetricKey, PrivateKey 또는 PublicKey)(으)로 가져옵니다. 병렬로 또는 후속 단계로 제공자는 암호화를 위한 SymmetricCipherCtx이나 디지털 서명을 위한 SignerPrivateCtx와(과) 같은 적절한 CryptoContext 인스턴스를 생성합니다.

암호화 작업 절차애플리케이션CryptoProviderKeySlotCryptoContext키 요청키 객체 로드CryptoObject bereitstellenCryptoObject 반환CryptoContext anfordernKontext instanziierenCryptoContext 반환작업 실행Ergebnis liefern

시퀀스 다이어그램: 암호화 연산 수행 시 일반적인 호출 순서. 출처: 페이로드에 명시되지 않음.

이어지는 실행 단계에서 생성된 컨텍스트는 로드된 키로 구성되고 처리할 페이로드 데이터가 제공됩니다. CryptoContext의 상태 저장 특성 덕분에 최종 암호화 결과(예: 암호문, 서명 또는 해시값)가 애플리케이션으로 반환되기 전에 스트리밍 연산이나 다단계 변환을 단계별로 수행할 수 있습니다. 처리가 완료된 후 임시 상태의 해제는 실행 컨텍스트 및 제공자의 규칙에 따릅니다.

이 텍스트는 릴리스 R25-11의 메타데이터를 기반으로 인공지능에 의해 생성되었습니다.

주제 맵

KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.

클래스 다이어그램

Abgerundete Rahmen = Namespace- bzw. Klassen-Scopes; hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); graue Boxen = namespace-fremde bzw. externe Basisklassen. Klicken öffnet die jeweilige Klassen- bzw. cppreference-Seite.

G cluster_ns ara::crypto::cryp nara__crypto__cryp__AuthCipherCtx AuthCipherCtx nara__crypto__cryp__CryptoContext CryptoContext nara__crypto__cryp__AuthCipherCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__CryptoObject CryptoObject next_ara__crypto__Serializable ara::crypto::Serializable nara__crypto__cryp__CryptoObject->next_ara__crypto__Serializable nara__crypto__cryp__CryptoProvider CryptoProvider nara__crypto__cryp__DecryptorPrivateCtx DecryptorPrivateCtx nara__crypto__cryp__DecryptorPrivateCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__EncryptorPublicCtx EncryptorPublicCtx nara__crypto__cryp__EncryptorPublicCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__HashFunctionCtx HashFunctionCtx nara__crypto__cryp__HashFunctionCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__KeyAgreementPrivateCtx KeyAgreementPrivateCtx nara__crypto__cryp__KeyAgreementPrivateCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__KeyDecapsulatorPrivateCtx KeyDecapsulatorPrivateCtx nara__crypto__cryp__KeyDecapsulatorPrivateCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__KeyDerivationFunctionCtx KeyDerivationFunctionCtx nara__crypto__cryp__KeyDerivationFunctionCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__KeyEncapsulatorPublicCtx KeyEncapsulatorPublicCtx nara__crypto__cryp__KeyEncapsulatorPublicCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__KeySlot KeySlot nara__crypto__cryp__MessageAuthnCodeCtx MessageAuthnCodeCtx nara__crypto__cryp__MessageAuthnCodeCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__PrivateKey PrivateKey nara__crypto__cryp__PrivateKey->nara__crypto__cryp__CryptoObject nara__crypto__cryp__ProtectedKeyImportCtx ProtectedKeyImportCtx nara__crypto__cryp__ProtectedKeyImportCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__PublicKey PublicKey nara__crypto__cryp__PublicKey->nara__crypto__cryp__CryptoObject nara__crypto__cryp__RandomGeneratorCtx RandomGeneratorCtx nara__crypto__cryp__RandomGeneratorCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__SignerPrivateCtx SignerPrivateCtx nara__crypto__cryp__SignerPrivateCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__SymmetricCipherCtx SymmetricCipherCtx nara__crypto__cryp__SymmetricCipherCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__SymmetricKey SymmetricKey nara__crypto__cryp__SymmetricKey->nara__crypto__cryp__CryptoObject nara__crypto__cryp__SymmetricKeyWrapperCtx SymmetricKeyWrapperCtx nara__crypto__cryp__SymmetricKeyWrapperCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__VerifierPublicCtx VerifierPublicCtx nara__crypto__cryp__VerifierPublicCtx->nara__crypto__cryp__CryptoContext nara__crypto__cryp__WriteableKeySlot WriteableKeySlot nara__crypto__cryp__WriteableKeySlot->nara__crypto__cryp__KeySlot

상세 보기

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

Verschlüsselung

AuthCipherCtx 클래스

Authenticated Cipher Context interface.

상속 대상 CryptoContext

Interface for asymmetric decryption.

상속 대상 CryptoContext

Interface for asymmetric encryption.

상속 대상 CryptoContext

Interface for Symmetric Cipher Operations.

상속 대상 CryptoContext

Signatur und MAC

HashFunctionCtx 클래스

Hash function interface.

상속 대상 CryptoContext

Keyed Message Authentication Code Context interface definition.

상속 대상 CryptoContext

Signature Private key Context interface.

상속 대상 CryptoContext

Signature Verification Public key Context interface.

상속 대상 CryptoContext

Schlüsselmaterial

Key Agreement Private key Context interface.

상속 대상 CryptoContext

Asymmetric Key Encapsulation Mechanism (KEM) Private key Context interface.

상속 대상 CryptoContext

Key Derivation Function interface.

상속 대상 CryptoContext

Asymmetric Key Encapsulation Mechanism (KEM) Public key Context interface.

상속 대상 CryptoContext

A contexts for importing secured data such as secret key-material.

상속 대상 CryptoContext

Context of a symmetric key wrap algorithm.

상속 대상 CryptoContext

Schlüsselobjekte

CryptoObject 클래스

A common interface for all cryptographic objects recognizable by the Crypto Provider.

상속 대상 ara::crypto::Serializable

기반 클래스 대상 PrivateKey, PublicKey, SymmetricKey

PrivateKey 클래스

Generalized Asymmetric Private Key interface.

상속 대상 CryptoObject

PublicKey 클래스

General Asymmetric Public Key interface.

상속 대상 CryptoObject

SymmetricKey 클래스

Symmetric Key interface.

상속 대상 CryptoObject

Schlüsselspeicher

KeySlot 클래스

KeySlot interface representing a storage location for a key in a CryptoProvider.

기반 클래스 대상 WriteableKeySlot

WriteableKeySlot interface representing a writeable storage location for a key in a Crypto Provider.

상속 대상 KeySlot

Kontextbasis

CryptoProvider 클래스

CryptoProviderInterface representing one implementation of a set of cryptographic primitives with a key storage.

Interface of Random Number Generator Context.

상속 대상 CryptoContext