]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 15 Dec 2011 19:33:32 +0000 (20:33 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 15 Dec 2011 19:33:32 +0000 (20:33 +0100)
don't use them.

ChangeLog
util/import_gcry.py

index d7523e116cc4fdbca3223c531352848e468ce72a..74aa2a60dd92f489d8457a1fa19ac8c7f2fdcd6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
+       don't use them.
+
 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
index ae9602db49122626f994438f8da77226848f194b..e55ffd97b4450a98485a9d95f06f49c182a8c04c 100644 (file)
@@ -190,8 +190,10 @@ for cipher_file in cipher_files:
             if hold:
                 hold = False
                 # We're optimising for size.
-                if not re.match ("(run_selftests|selftest|_gcry_aes_c.._..c|_gcry_[a-z0-9]*_hash_buffer|tripledes_set2keys|do_tripledes_set_extra_info)", line) is None:
+                if not re.match ("(run_selftests|selftest|_gcry_aes_c.._..c|_gcry_[a-z0-9]*_hash_buffer|tripledes_set2keys|do_tripledes_set_extra_info|_gcry_rmd160_mixblock|serpent_test)", line) is None:
                     skip = True
+                    if not re.match ("serpent_test", line) is None:
+                        fw.write ("static const char *serpent_test (void) { return 0; }\n");
                     fname = re.match ("[a-zA-Z0-9_]*", line).group ()
                     chmsg = "(%s): Removed." % fname
                     if nch: