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); |       hasher.has_value() ? (*hasher)(password) : create_hash_256(password); | ||||||
|  |  | ||||||
|   data_buffer buf{}; |   data_buffer buf{}; | ||||||
|   if (not encrypt_data(key, |   encrypt_data(key, reinterpret_cast<const unsigned char *>(data.data()), | ||||||
|                        reinterpret_cast<const unsigned char *>(data.data()), |                data.size(), buf); | ||||||
|                        data.size(), buf)) { |  | ||||||
|     throw std::runtime_error("encryption failed"); |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   return buf; |   return buf; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user