Skip to content

SM3 format: Change tag from $sm3$ to $raw-sm3$#5906

Merged
magnumripper merged 1 commit intoopenwall:bleeding-jumbofrom
magnumripper:sm3tag
Nov 22, 2025
Merged

SM3 format: Change tag from $sm3$ to $raw-sm3$#5906
magnumripper merged 1 commit intoopenwall:bleeding-jumbofrom
magnumripper:sm3tag

Conversation

@magnumripper
Copy link
Member

@magnumripper magnumripper commented Nov 21, 2025

Apparently libxcrypt implements Drepper style crypt-sm3 using the tag $sm3$ and the usual B64 encoding with optional rounds= defaulting to 5000.

Theoretically we could tell them apart without changing this tag (raw SM3 using hex), but I'm guessing we could end up regretting that.

Apparently libxcrypt implements Drepper style crypt-sm3 using the tag
$sm3$ and the usual B64 encoding with optional "rounds=" defaulting to
5000.
@magnumripper magnumripper assigned solardiz and unassigned solardiz Nov 21, 2025
@magnumripper
Copy link
Member Author

For some reason I can't request a review from @SamuraiOcto.

@magnumripper
Copy link
Member Author

Oh, and it appears hashcat use no tag for raw-sm3 and this $sm3$ for sm3crypt already. So we should definitely merge this.

@magnumripper magnumripper merged commit 3fd5fe9 into openwall:bleeding-jumbo Nov 22, 2025
33 of 34 checks passed
@magnumripper magnumripper deleted the sm3tag branch November 22, 2025 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants