- AesEncryption: AES-256-CBC 암호화/복호화 - RsaEncryption: RSA-2048 키 쌍 생성/암복호화 - E2EEService: 하이브리드 암복호화 (요청 복호화, 응답 암호화) - TimestampValidator: 타임스탬프 검증 (±30초) - SecureTransportAttribute: Action Filter (보안등급 3 엔드포인트용) - DI 등록: IE2EEService → E2EEService (Singleton) Closes #28
14 lines
343 B
C#
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);
|
|
}
|