lbry-android-sdk/p4a/pythonforandroidold/recipes/pycrypto/add_length.patch

12 lines
467 B
Diff
Raw Permalink Normal View History

2022-12-02 21:15:34 +01:00
--- pycrypto-2.6.1/src/hash_SHA2_template.c.orig 2013-10-14 14:38:10.000000000 -0700
+++ pycrypto-2.6.1/src/hash_SHA2_template.c 2014-05-19 10:15:51.000000000 -0700
@@ -87,7 +87,7 @@
* return 1 on success
* return 0 if the length overflows
*/
-int add_length(hash_state *hs, sha2_word_t inc) {
+static int add_length(hash_state *hs, sha2_word_t inc) {
sha2_word_t overflow_detector;
overflow_detector = hs->length_lower;
hs->length_lower += inc;