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

Method setKey

src/plugins/crypt/chacha/ChaCha.cpp:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getEncryptKeyMethod · 0.45
getDecryptKeyMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected