| 582 | } |
| 583 | |
| 584 | void cRSA::SetDecrypting(const cRSAPrivateKey* pKey) |
| 585 | { |
| 586 | ASSERT(pKey->mpData->mKeyLength == mpData->mKeyBits); |
| 587 | if (pKey->mpData->mKeyLength != mpData->mKeyBits) |
| 588 | ThrowAndAssert(eInternal(_T("RSA Key length mismatch."))); |
| 589 | |
| 590 | mpData->mAction = cRSA_i::DECRYPT; |
| 591 | mpData->mpPrivateKey = pKey; |
| 592 | mpData->mpPublicKey = 0; |
| 593 | } |
| 594 | |
| 595 | void cRSA::SetSigning(const cRSAPrivateKey* pKey) |
| 596 | { |
no outgoing calls