- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1k
          Murmur3 should not be cryptographic hash algorithm
          #3668
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            shargon
  merged 15 commits into
  neo-project:master
from
nan01ab:feat.murmur3-non-cryptographic-hash
  
      
      
   
  Jan 27, 2025 
      
    
  
     Merged
                    Changes from 1 commit
      Commits
    
    
            Show all changes
          
          
            15 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      e88a1ea
              
                optimize: Murmur3 should be no cryptographic hash algorithm
              
              
                nan01ab 4868dc8
              
                Avoid double initialize when only call once ComputeHash
              
              
                shargon c2fc2e5
              
                Rename
              
              
                shargon a8855d2
              
                Allow to append
              
              
                shargon 9c5e956
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                 dfbfb95
              
                Update src/Neo/Cryptography/Murmur32.cs
              
              
                nan01ab 4894dfc
              
                Update src/Neo/Cryptography/Murmur32.cs
              
              
                nan01ab 24991ed
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon 8acc8f5
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon 90dee11
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon 25df0aa
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon 8273b9a
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon 6536483
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                 ee87f06
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                cschuchardt88 d933edd
              
                Merge branch 'master' into feat.murmur3-non-cryptographic-hash
              
              
                shargon File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
NonCryptographicHashAlgorithmas inherit classUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More updates are needed, because
Appendnot supported.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? You can still use
append.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current murmur32 impl in neo doesn’t support multiple Append operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you can't use it in
NonCryptographicHashAlgorithm?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the current logic does not allow this interface, feel free to create a new PR for this purpose
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well then I don't find this as a fix. Using these interfaces makes the hash a lot faster to process data. I want to see a benchmark of this new implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic is the same, should be faster but never slower, why do you think it will be slower?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the
classinterfaces use an engine for fast hashing for huge amounts of data up to 2GB.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No significant performance difference.