Lines Matching refs:keyLen
145 bool doEncrypt, const EVP_CIPHER* cipher, uint8_t* key, size_t keyLen, in encryptDecryptData() argument
151 (size_t)EVP_CIPHER_key_length(cipher) > keyLen || in encryptDecryptData()
165 HMAC(EVP_sha256(), key, keyLen, inBytes, inBytesLen, calMac.data(), in encryptDecryptData()
225 if (NULL == HMAC(EVP_sha256(), key, keyLen, outBytes, *outBytesLen, mac, in encryptDecryptData()
327 auto keyLen = key.size(); in readPasswdFileData() local
330 key.data(), reinterpret_cast<unsigned int*>(&keyLen))) in readPasswdFileData()
346 if (encryptDecryptData(false, EVP_aes_128_cbc(), key.data(), keyLen, iv, in readPasswdFileData()
357 OPENSSL_cleanse(key.data(), keyLen); in readPasswdFileData()
493 size_t keyLen = key.size(); in updatePasswdSpecialFile() local
506 key.data(), reinterpret_cast<unsigned int*>(&keyLen))) in updatePasswdSpecialFile()
525 true, EVP_aes_128_cbc(), key.data(), keyLen, iv.data(), ivLen, in updatePasswdSpecialFile()
534 OPENSSL_cleanse(key.data(), keyLen); in updatePasswdSpecialFile()