-print '\t_("rc4", rc4_keysz, rc4_rand, 0) \\'
-print '\t_("seal", seal_keysz, seal_rand, RNGF_INT) \\'
+print '\t_("rc4", rc4_keysz, rc4_rand, 0, 0) \\'
+print '\t_("seal", seal_keysz, seal_rand, RNGF_INT, 0) \\'
+for i in latindances:
+ for r in ['salsa20', 'xsalsa20', 'chacha', 'xchacha']:
+ if i.startswith(r):
+ root = r
+ break
+ else:
+ raise ValueError, 'failed to find root name for %s' % i
+ if i.endswith('-ietf'): root += '_ietf'
+ print ('\t_("%(name)s", %(root)s_keysz, %(id)s_rand, ' +
+ 'RNGF_NONCE | RNGF_LATIN, %(ROOT)s_NONCESZ) \\') % \
+ {'name': i, 'id': i.translate(None, '/').replace('-', '_'),
+ 'root': root, 'ROOT': root.upper()}