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

Method AquireKey

src/twcrypto/keyfile.cpp:555–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553// class cPrivateKeyProxy
554
555bool cPrivateKeyProxy::AquireKey(cKeyFile& keyFile, int8* passphrase, int passphraseLen)
556{
557 if (mpKey != 0)
558 {
559 ASSERT(mpKeyFile != 0);
560 mpKeyFile->ReleasePrivateKey();
561 }
562
563 mpKeyFile = &keyFile;
564 mpKey = keyFile.GetPrivateKey(passphrase, passphraseLen);
565
566 return mpKey != 0;
567}
568
569cPrivateKeyProxy::~cPrivateKeyProxy()
570{

Callers 2

CreatePrivateKeyMethod · 0.80
TestKeyFileFunction · 0.80

Calls 2

ReleasePrivateKeyMethod · 0.80
GetPrivateKeyMethod · 0.80

Tested by 1

TestKeyFileFunction · 0.64