| ... | @@ -270,7 +270,7 @@ pub fn validate_hash(input: []const u8, file_path: []const u8) !bool { | ... | @@ -270,7 +270,7 @@ pub fn validate_hash(input: []const u8, file_path: []const u8) !bool { |
| 270 | .sha256 => try do_hash(std.crypto.hash.sha2.Sha256, data), | 270 | .sha256 => try do_hash(std.crypto.hash.sha2.Sha256, data), |
| 271 | .sha512 => try do_hash(std.crypto.hash.sha2.Sha512, data), | 271 | .sha512 => try do_hash(std.crypto.hash.sha2.Sha512, data), |
| 272 | }; | 272 | }; |
| 273 | const result = std.mem.eql(u8, expected, actual); | 273 | const result = std.mem.startsWith(u8, actual, expected); |
| 274 | if (!result) { | 274 | if (!result) { |
| 275 | std.log.info("expected: {s}, actual: {s}", .{ expected, actual }); | 275 | std.log.info("expected: {s}, actual: {s}", .{ expected, actual }); |
| 276 | } | 276 | } |