MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / setKey

Method setKey

src/plugins/crypt/arc4/Arc4.cpp:115–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113};
114
115void Arc4::setKey(CheckStatusWrapper* status, ICryptKey* key)
116{
117 status->init();
118 try
119 {
120 unsigned int l;
121 const void* k = key->getEncryptKey(&l);
122 en = createCypher(l, k);
123
124 k = key->getDecryptKey(&l);
125 de = createCypher(l, k);
126 }
127 catch (const Exception& ex)
128 {
129 ex.stuffException(status);
130 }
131}
132
133void Arc4::encrypt(CheckStatusWrapper* status, unsigned int length, const void* from, void* to)
134{

Callers

nothing calls this directly

Calls 4

initMethod · 0.45
getEncryptKeyMethod · 0.45
getDecryptKeyMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected