MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / SetEncrypting

Method SetEncrypting

src/twcrypto/crypto.cpp:572–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void cRSA::SetEncrypting(const cRSAPublicKey* pKey)
573{
574 ASSERT(pKey->mpData->mKeyLength == mpData->mKeyBits);
575 if (pKey->mpData->mKeyLength != mpData->mKeyBits)
576 ThrowAndAssert(eInternal(_T("RSA Key length mismatch.")));
577
578
579 mpData->mAction = cRSA_i::ENCRYPT;
580 mpData->mpPublicKey = pKey;
581 mpData->mpPrivateKey = 0;
582}
583
584void cRSA::SetDecrypting(const cRSAPrivateKey* pKey)
585{

Callers 2

SetWriteMethod · 0.80
TestCryptoFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCryptoFunction · 0.64