MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / processKeyAESCbc

Function processKeyAESCbc

src/share/WizEnc.cpp:273–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271
272
273bool processKeyAESCbc(const unsigned char* lpszKey, int nKeyLen, std::string& strKey)
274{
275 if (!lpszKey || nKeyLen <= 0)
276 return false;
277
278 strKey = WizMd5StringNoSpaceJava(lpszKey, nKeyLen).toStdString();
279
280 if (strKey.length() != 32) {
281 return false;
282 }
283
284 return true;
285}
286
287bool encryptAES256CbcPkcs5(const unsigned char* lpszKey, int nKeyLen, \
288 const unsigned char* pIV, int nIVLen, \

Callers 2

encryptAES256CbcPkcs5Function · 0.85
decryptAES256CbcPkcs5Function · 0.85

Calls 2

WizMd5StringNoSpaceJavaFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected