updated build system
This commit is contained in:
		
							
								
								
									
										7
									
								
								support/3rd_party/src/utils/encryption.cpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								support/3rd_party/src/utils/encryption.cpp
									
									
									
									
										vendored
									
									
								
							| @@ -66,11 +66,8 @@ auto encrypt_data(std::string_view data, std::string_view password, | ||||
|       hasher.has_value() ? (*hasher)(password) : create_hash_256(password); | ||||
|  | ||||
|   data_buffer buf{}; | ||||
|   if (not encrypt_data(key, | ||||
|                        reinterpret_cast<const unsigned char *>(data.data()), | ||||
|                        data.size(), buf)) { | ||||
|     throw std::runtime_error("encryption failed"); | ||||
|   } | ||||
|   encrypt_data(key, reinterpret_cast<const unsigned char *>(data.data()), | ||||
|                data.size(), buf); | ||||
|  | ||||
|   return buf; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user