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

Method SetDecrypting

src/twcrypto/crypto.cpp:584–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584void 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
595void cRSA::SetSigning(const cRSAPrivateKey* pKey)
596{

Callers 2

SetReadMethod · 0.80
TestCryptoFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestCryptoFunction · 0.64