MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / SSL_Sign

Method SSL_Sign

extra/yassl/taocrypt/include/rsa.hpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214// Private SSL type (block 1) Encrypt
215template<class Pad>
216void RSA_Decryptor<Pad>::SSL_Sign(const byte* message, word32 sz, byte* sig,
217 RandomNumberGenerator& rng)
218{
219 RSA_PublicKey inverse;
220 inverse.Initialize(key_.GetModulus(), key_.GetPrivateExponent());
221 RSA_Encryptor<RSA_BlockType1> enc(inverse); // SSL Type
222 enc.Encrypt(message, sz, sig, rng);
223}
224
225
226word32 SSL_Decrypt(const RSA_PublicKey& key, const byte* sig, byte* plain);

Callers 2

rsa_testFunction · 0.80
signMethod · 0.80

Calls 2

EncryptMethod · 0.80
InitializeMethod · 0.45

Tested by 1

rsa_testFunction · 0.64