Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -18413,18 +18413,18 @@ int ascii_digest (hashcat_ctx_t *hashcat_ctx, char *out_buf, const size_t out_le
}
else if (hash_mode == 16110)
{
snprintf(out_buf, out_len -1, "%08x", byte_swap_32(digest_buf[0]));
snprintf(out_buf, out_len - 1, "%08x", byte_swap_32(digest_buf[0]));
}
else if (hash_mode == 16111)
{
u32 bswapped[2];
bswapped[0] = byte_swap_32(digest_buf[0]);
bswapped[1] = byte_swap_32(digest_buf[1]);

u8 encoded[11];

u8 encoded[12];
ps4_encode_hash((u8*)bswapped, encoded);
snprintf(out_buf, 11, "%s", (char*)encoded);
encoded[11] = 0;
snprintf(out_buf, out_len - 1, "%s", (char*)encoded);
}
else if (hash_mode == 99999)
{
Expand Down