- Sep 17, 2018
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
Remove unused track_length parameter
-
- Sep 14, 2018
-
-
Antoine R. Dumont authored
And revert to their original behavior (returning only digest as bytes)
-
Antoine R. Dumont authored
This allows calls like: - MultiHash.from_file(file_object).digest() - MultiHash.from_path(b'foo').hexdigest() - MultiHash.from_data(b'foo').bytehexdigest()
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
This is the first step to improve the hashutil module according to "the" plan [1]. In this regards, the hashutil exposes the same function as before. Internally though, they now uses a MultiHash instance. Related D410 [1] D410#7952
-
- Sep 13, 2018
-
-
Antoine R. Dumont authored
Related T421
-
Antoine R. Dumont authored
Related T421
-
- Jun 21, 2018
-
-
Nicolas Dandrimont authored
Summary: We used to depend on the 'blake2s256' and 'blake2b512' names to be available in hashlib.algorithms_available. It turns out that that's specific to OpenSSL 1.1. We now try, in order: - blake2s256/blake2b512 as shipped by libssl1.1 (Python 3.5+ on Debian stretch and up) - blake2s/blake2b as built into Python 3.6+ - pyblake2 if all else fails While we're here, let's also avoid doing not-so-subtle hacks with hashlib builtins. Thanks to Alexios Zavras for the report. Test Plan: New unit tests added to check for behavior in all cases. Manually running the tests on Python 3.4 + pyblake2, Python 3.5 and Python 3.6 as shipped by Debian exercises all three cases. Reviewers: zack, #reviewers! Differential Revision: https://forge.softwareheritage.org/D347
-
- Jan 14, 2018
-
-
Stefano Zacchiroli authored
-
- Dec 20, 2017
-
-
Antoine R. Dumont authored
-
- Dec 12, 2017
-
-
Nicolas Dandrimont authored
-
- Sep 15, 2017
-
-
Nicolas Dandrimont authored
-
- Jul 12, 2017
-
-
Nicolas Dandrimont authored
Summary: for those people with legacy openssls Reviewers: anlambert, #reviewers! Differential Revision: https://forge.softwareheritage.org/D224
-
- Mar 24, 2017
-
-
Antoine R. Dumont authored
Related T703
-
- Mar 21, 2017
-
-
Antoine R. Dumont authored
This resolves the caveat mentioned in prior commit about not being able to use blake2 prior to 3.5 Related T692 Closes D192
-
- Mar 17, 2017
-
-
Antoine R. Dumont authored
- Add module docstring - Add blake2s256 and blake2b512 in supported algorithms - Spawn a new variable DEFAULT_ALGORITHMS as default computed algorithms for the main functions Related T692
-
Antoine R. Dumont authored
Remove the limit on the python3 version, this should be transparent. If the hash requested is not available, this will raise with an explanation on the error. Related T692
-
Antoine R. Dumont authored
The same caveat applies, will only be supported from python3.6 onward. Related T692
-
Antoine R. Dumont authored
The caveat is that it will only be supported when we will be using python3 >= 3.5. Related T692
-
- Mar 15, 2017
-
-
Antoine R. Dumont authored
Related T700
-
- Apr 02, 2016
-
-
Antoine R. Dumont authored
Since we compute it anyway, better return it along with the result
-
- Dec 16, 2015
-
-
Nicolas Dandrimont authored
-
- Nov 23, 2015
-
-
Nicolas Dandrimont authored
-