Buffer.BufferImpl keyBuf = objArg(args, 0, Buffer.BufferImpl.class, true);
DHImpl self = (DHImpl)thisObj;
assert(self.prime != null);
BigInteger x = self.intFromBuf(keyBuf, cx);
DHPrivateKeySpec spec = new DHPrivateKeySpec(x, self.prime, DH_GENERATOR);
try {
KeyFactory kf = self.getKeyFactory();
self.privKey = (DHPrivateKey)kf.generatePrivate(spec);
} catch (NoSuchAlgorithmException e) {
throw new AssertionError(e);