chiark / gitweb /
buffer.c: Fix typoed variable name in `assert'.
[catacomb-python] / algorithms.py
index 3ceb207b175fd4de8d7ab3c5c1401b5c790101a1..84ea439e43b0a547c8ebc363e8e2606de1c6d68d 100644 (file)
@@ -33,7 +33,7 @@ latindances = '''
 salsa20 salsa20/12 salsa20/8 xsalsa20 xsalsa20/12 xsalsa20/8
 chacha20 chacha12 chacha8 xchacha20 xchacha12 xchacha8
 '''.split()
-streamciphers += map(lambda s: s.translate(None, '/'), latindances)
+streamciphers += map(lambda s: s.replace('/', ''), latindances)
 hashes = '''
 md2 md4 md5 tiger has160
 sha sha224 sha256 sha384 sha512
@@ -86,7 +86,7 @@ for i in latindances:
     raise ValueError, 'failed to find root name for %s' % i
   print ('\t_("%(name)s", %(root)s_keysz, %(id)s_rand, ' +
          'RNGF_NONCE, %(ROOT)s_NONCESZ) \\') % \
-      {'name': i, 'id': i.translate(None, '/'),
+      {'name': i, 'id': i.replace('/', ''),
        'root': root, 'ROOT': root.upper()}
 print '\t/* end */'
 print