// compute u = H(A | B)
// IMessageDigest hash = srp.newDigest();
// IMessageDigest hash = HashFactory.getInstance(md);
final SRP srp = SRP.instance(md);
final IMessageDigest hash = srp.newDigest();
byte[] buffy;
buffy = Util.trim(A);
hash.update(buffy, 0, buffy.length);
buffy = Util.trim(B);
hash.update(buffy, 0, buffy.length);