CryptoByLeo/Src/RSA/Keys/Private.mqh

70 lines
2.5 KiB
MQL5

2026-08-23 08:35:14 -05:00
//+------------------------------------------------------------------+
//| Private.mqh |
//| Copyright 2026, Niquel Mendoza |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza"
#property link "https://www.mql5.com"
#property strict
#ifndef CRYPTOBYLEO_SRC_RSA_KEYS_PRIVATE_MQH
#define CRYPTOBYLEO_SRC_RSA_KEYS_PRIVATE_MQH
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
2026-08-23 19:36:33 -05:00
#include "H.mqh"
2026-08-23 08:35:14 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
namespace TSN
{
2026-08-29 20:40:52 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void CRsaPrivateKey::Load(BigUInteger &n, BigUInteger &d, BigUInteger &p, BigUInteger &q, BigUInteger &dp,
2026-08-30 10:39:49 -05:00
BigUInteger &dq, BigUInteger &qin, const ulong e, int total_bits)
2026-08-29 20:40:52 -05:00
{
m_n.RobarDe(n);
m_d.RobarDe(d);
m_p.RobarDe(p);
m_q.RobarDe(q);
m_dp.RobarDe(dp);
m_dq.RobarDe(dq);
m_qinv.RobarDe(qin);
m_e = e;
2026-08-30 10:39:49 -05:00
m_total_sbits = total_bits;
m_total_sbytes = total_bits >> 3;
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
template <typename TRandomFunc>
bool CRsaPrivateKey::Decrypt(const uchar &chiper_text[], uchar &out[])
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
bool CRsaPrivateKey::Firmar(const uchar &raw[], uchar &out[])
{
2026-08-29 20:40:52 -05:00
}
2026-08-30 10:39:49 -05:00
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
2026-08-23 08:35:14 -05:00
//+------------------------------------------------------------------+
}
//---
#endif // CRYPTOBYLEO_SRC_RSA_KEYS_PRIVATE_MQH