X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/blobdiff_plain/cae2812998c561287d33d33683a0ef62d17e3b0c..278e43d0c27875a1355ebaf3bef6d0f5df739626:/algorithms.py diff --git a/algorithms.py b/algorithms.py index 4187c46..0fa434a 100644 --- a/algorithms.py +++ b/algorithms.py @@ -43,6 +43,7 @@ md2 md4 md5 tiger has160 sha sha224 sha256 sha512/224 sha512/256 sha384 sha512 rmd128 rmd160 rmd256 rmd320 whirlpool whirlpool256 +sha3-224 sha3-256 sha3-384 sha3-512 '''.split() hmodes = ''' mgf hmac @@ -95,5 +96,12 @@ for i in latindances: 'RNG_LATIN, %(ROOT)s_NONCESZ) \\') % \ {'name': i, 'id': i.translate(None, '/').replace('-', '_'), 'root': root, 'ROOT': root.upper()} +for i in [128, 256]: + print ('\t_("shake%(w)d", shake%(w)d_keysz, cshake%(w)d_rand, ' + + 'RNG_SHAKE, 0) \\') % \ + {'w': i} + print ('\t_("kmac%(w)d", kmac%(w)d_keysz, kmac%(w)d_rand, ' + + 'RNG_KMAC, 0) \\') % \ + {'w': i} print '\t/* end */' print