From 4e1523b0c06c2f511261802ce493634e909ef140 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sat, 3 Jan 2026 08:12:57 -0500 Subject: [PATCH] feat(core): add IRsaKeyService interface --- .../Interfaces/IRsaKeyService.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs diff --git a/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs b/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs new file mode 100644 index 0000000..ea34537 --- /dev/null +++ b/NEW/src/JdeScoping.Core/Interfaces/IRsaKeyService.cs @@ -0,0 +1,19 @@ +namespace JdeScoping.Core.Interfaces; + +/// +/// RSA key management for login encryption. +/// +public interface IRsaKeyService +{ + /// + /// Gets the server's public key in PEM format. + /// + string GetPublicKeyPem(); + + /// + /// Decrypts RSA-OAEP encrypted data. + /// + /// Encrypted bytes + /// Decrypted plaintext bytes + byte[] Decrypt(byte[] ciphertext); +}