-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding SM3 hashing method and whirlpool hashing method #347
Comments
When I remove rar, some other will come and say rar support is important to me. |
Can't create another branch to try out? I am puzzled taking some bad function out from 23.01 src and try adding new things within. I like some hints for adding sha512 for hashing first. |
@chuhei1987 |
The question is about modules. As 7-zip is open, you can modify whatever you like. By the way, I have a branch like that, chuhei1987/7z2301-src/tree/Version_1 . I now have to find ways adding new hashing method such as sha512. |
7-zip's strength is that it's universal, versatile and can unpack almost every format on the planet. And how you're thinking about stripping it down to remove a very big share of files that it can handle. This is unwise and childish. |
Perhaps you are right. I just prepare what if while try adding new things. Dont worry, if you are not quite sure, then try reading these source code , compile by yourself. |
yeah, no, this is not the way forward |
There is rar extraction module found in zstd and orginal author , which is open source, you can use that if you concent the terms. 7-zip has to provide the term to us because of using the library. By the way, I like asking one question, how to add new hashing function such as sha512 like what we see in 7-zip ZSTD? |
On the other hand you can maintain your own fork of 7-zip with any features you want, RAR ripped out, added playing Chopin songs or whatever you desire. But don't force your broken ideas to entire world and all existing users. |
I may. Perhaps the flaws found in that rar extractor is already fixed. |
Okay, I will think about SM3 and Whirlpool - but removing rar will not be done. |
I want to share something about my thoughts. Here is the content. I'm struggle about finding a lightweight SM3 hashing implementation. (I don't want to add something like OpenSSL because it's too huge for the project.) But I think Whirlpool hashing we can use the implementation from RHash. And here is my adaption: https://github.com/M2Team/NanaZip/blob/2.0.450/SevenZip/Extensions/RHash/WhirlpoolHandler.cpp I hope it can make some help. Kenji Mouri |
Additionally, digestpp maybe a starting point for our needs. |
About SM3 hashing, I think maybe GmSSL's implementation is lightweight enough. Kenji Mouri |
There are people making that thing independent, we may try. By the way, It is not easy finding a suitable one to add in 7-zip. |
I have review the source code, When trying to take RAR out, taking obsolete hashing function out , I'm puzzled. I like some hints how to do that above.
The text was updated successfully, but these errors were encountered: