SPMS_API/SPMS.Application/Interfaces/IE2EEService.cs
SEAN 27f33f809b feat: E2EE 암호화 유틸리티 구현 (#28)
- AesEncryption: AES-256-CBC 암호화/복호화
- RsaEncryption: RSA-2048 키 쌍 생성/암복호화
- E2EEService: 하이브리드 암복호화 (요청 복호화, 응답 암호화)
- TimestampValidator: 타임스탬프 검증 (±30초)
- SecureTransportAttribute: Action Filter (보안등급 3 엔드포인트용)
- DI 등록: IE2EEService → E2EEService (Singleton)

Closes #28
2026-02-09 16:33:38 +09:00

14 lines
343 B
C#

namespace SPMS.Application.Interfaces;
public class E2EEDecryptResult
{
public required byte[] DecryptedBody { get; init; }
public required byte[] AesKey { get; init; }
}
public interface IE2EEService
{
E2EEDecryptResult DecryptRequest(byte[] encryptedPayload);
byte[] EncryptResponse(byte[] plainResponse, byte[] aesKey);
}