• Show log

    Commit

  • Hash : d46d3b53
    Author : Patrick Steinhardt
    Date : 2019-04-05T10:59:46

    hash: split into generic and SHA1-specific interface
    
    As a preparatory step to allow multiple hashing APIs to exist at
    the same time, split the hashing functions into one layer for generic
    hashing and one layer for SHA1-specific hashing. Right now, this is
    simply an additional indirection layer that doesn't yet serve any
    purpose. In the future, the generic API will be extended to allow for
    choosing which hash to use, though, by simply passing an enum to the
    hash context initialization function. This is necessary as a first step
    to be ready for Git's move to SHA256.