| 214 | // Private SSL type (block 1) Encrypt |
| 215 | template<class Pad> |
| 216 | void 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 | |
| 226 | word32 SSL_Decrypt(const RSA_PublicKey& key, const byte* sig, byte* plain); |