Class OpenSSLCryptoConfigConverter


  • public class OpenSSLCryptoConfigConverter
    extends Object
    A class to parse the output of 'openssl dhparam -text bits' where bits is the prime number bit length. Will output 'N', 'g', 'k' in bases 10, 10, 16 respectively. Note that k is derived from 'N' and 'g' but Nimbus 1.4.x currently uses a the byte array constructor of BigInteger to computes 'k' which is not available in Javascript so the value genenerated by Java needs to be configure in the Javascript.