You need to sign in or sign up before continuing.
Restore additional message digest types to ntpkeygen
See http://doc.ntp.org/current-stable/keygen.html
-c [ RSA-MD2 | RSA-MD5 | RSA-SHA | RSA-SHA1 | RSA-MDC2 | RSA-RIPEMD160 | DSA-SHA | DSA-SHA1 ]
Select certificate digital signature and message digest scheme. Note that RSA schemes must be used with an RSA sign key and DSA schemes must be used with a DSA sign key. The default without this option is RSA-MD5. If compatibility with FIPS 140-2 is required, either the DSA-SHA or DSA-SHA1 scheme must be used.
ntpkeygen should be able to generate keys for digests besides md5 and sha1.
We should support all digests available via hashlib.algorithms_available
. See https://docs.python.org/2/library/hashlib.html
$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hashlib
>>> hashlib.algorithms_available
set(['GOST R 34.11-94', 'SHA1', 'SHA256', 'SHA512', 'dsaWithSHA', 'GOST R 34-11-2012 (512 bit)', 'MD4', 'streebog512', 'sha256', 'sha512', 'ripemd160', 'whirlpool', 'streebog256', 'SHA224', 'gost-mac', 'SHA', 'GOST R 34.11-2012 (256 bit)', 'SHA384', 'ecdsa-with-SHA1', 'md4', 'md5', 'sha1', 'DSA-SHA', 'GOST 28147-89 MAC', 'sha224', 'dsaEncryption', 'md_gost94', 'DSA', 'RIPEMD160', 'sha', 'MD5', 'sha384'])