feat(core): add IRsaKeyService interface

This commit is contained in:
Joseph Doherty
2026-01-03 08:12:57 -05:00
parent 15b292a6f7
commit 4e1523b0c0
@@ -0,0 +1,19 @@
namespace JdeScoping.Core.Interfaces;
/// <summary>
/// RSA key management for login encryption.
/// </summary>
public interface IRsaKeyService
{
/// <summary>
/// Gets the server's public key in PEM format.
/// </summary>
string GetPublicKeyPem();
/// <summary>
/// Decrypts RSA-OAEP encrypted data.
/// </summary>
/// <param name="ciphertext">Encrypted bytes</param>
/// <returns>Decrypted plaintext bytes</returns>
byte[] Decrypt(byte[] ciphertext);
}