Iterated-sha1: Don't accept raw ciphertexts except XSHA#5907
Iterated-sha1: Don't accept raw ciphertexts except XSHA#5907magnumripper merged 1 commit intoopenwall:bleeding-jumbofrom
Conversation
cef8b55 to
5f4fafe
Compare
Done. Actually no |
solardiz
left a comment
There was a problem hiding this comment.
I agree with the changes here.
However, I think our checks for the format tag should be case-sensitive. I now see we also have similar case-insensitive matching of tags in a few other formats - those are probably also wrong in doing that - but let's at least not make matters worse by replicating this in new formats without a reason.
Wow, I never noticed. I'll fix this one but we should probably fix all other formats (giving each some thought - there might be some where it's sensible although I can't think of any). |
Bare XSHA need to 48 chars of uppercase hex. These will end up in john.pot as-is (like the old XSHA format).
5f4fafe to
2c2fcfd
Compare
Bare XSHA is exactly 48 chars of uppercase hex.
Pot entries will currently be iterated-sha1 canonical, tagged and in lowercase.I guess we should write XSHA entries to .pot using the raw uppercase format, like the XSHA-specific CPU format does? This will complicate valid a little and need adding asplit()but it's trivial. Working on it (slowly).