final String[] mpi = tpasswd.lookupConfig(entry[2]);
final BigInteger N = new BigInteger(1, Util.fromBase64(mpi[0]));
final BigInteger g = new BigInteger(1, Util.fromBase64(mpi[1]));
final IKeyPairGenerator kpg = new SRPKeyPairGenerator();
final HashMap attributes = new HashMap();
attributes.put(SRPKeyPairGenerator.SHARED_MODULUS, N);
attributes.put(SRPKeyPairGenerator.GENERATOR, g);
kpg.setup(attributes);
final KeyPair clientKP = kpg.generate();
final BigInteger A = ((SRPPublicKey) clientKP.getPublic()).getY();
final BigInteger a = ((SRPPrivateKey) clientKP.getPrivate()).getX();
attributes.put(SRPKeyPairGenerator.USER_VERIFIER, v);
kpg.setup(attributes);
final KeyPair serverKP = kpg.generate();
final BigInteger B = ((SRPPublicKey) serverKP.getPublic()).getY();
final BigInteger b = ((SRPPrivateKey) serverKP.getPrivate()).getX();
// compute u = H(A | B)
// IMessageDigest hash = srp.newDigest();