| 271 | |
| 272 | |
| 273 | bool 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 | |
| 287 | bool encryptAES256CbcPkcs5(const unsigned char* lpszKey, int nKeyLen, \ |
| 288 | const unsigned char* pIV, int nIVLen, \ |
no test coverage detected