Program: 52592
Project: 52592
Buggy source:
public void performTest() throws Exception {
  baseOaepTest(1,pubKeyEnc1,privKeyEnc1,output1);
  baseOaepTest(2,pubKeyEnc2,privKeyEnc2,output2);
  baseOaepTest(3,pubKeyEnc3,privKeyEnc3,output3);
  RSAKeyParameters pubParam=new RSAKeyParameters(false,new BigInteger(1,modulus_1024),new BigInteger(1,pubExp_1024));
  RSAKeyParameters privParam=new RSAPrivateCrtKeyParameters(pubParam.getModulus(),pubParam.getExponent(),new BigInteger(1,privExp_1024),new BigInteger(1,prime1_1024),new BigInteger(1,prime2_1024),new BigInteger(1,primeExp1_1024),new BigInteger(1,primeExp2_1024),new BigInteger(1,crtCoef_1024));
  oaepVecTest(1024,1,pubParam,privParam,seed_1024_1,input_1024_1,output_1024_1);
  oaepVecTest(1024,2,pubParam,privParam,seed_1024_2,input_1024_2,output_1024_2);
  oaepVecTest(1024,3,pubParam,privParam,seed_1024_3,input_1024_3,output_1024_3);
  oaepVecTest(1024,4,pubParam,privParam,seed_1024_4,input_1024_4,output_1024_4);
  oaepVecTest(1024,5,pubParam,privParam,seed_1024_5,input_1024_5,output_1024_5);
  oaepVecTest(1024,6,pubParam,privParam,seed_1024_6,input_1024_6,output_1024_6);
  pubParam=new RSAKeyParameters(false,new BigInteger(1,modulus_1027),new BigInteger(1,pubExp_1027));
  privParam=new RSAPrivateCrtKeyParameters(pubParam.getModulus(),pubParam.getExponent(),new BigInteger(1,privExp_1027),new BigInteger(1,prime1_1027),new BigInteger(1,prime2_1027),new BigInteger(1,primeExp1_1027),new BigInteger(1,primeExp2_1027),new BigInteger(1,crtCoef_1027));
  oaepVecTest(1027,1,pubParam,privParam,seed_1027_1,input_1027_1,output_1027_1);
  oaepVecTest(1027,2,pubParam,privParam,seed_1027_2,input_1027_2,output_1027_2);
  oaepVecTest(1027,3,pubParam,privParam,seed_1027_3,input_1027_3,output_1027_3);
  oaepVecTest(1027,4,pubParam,privParam,seed_1027_4,input_1027_4,output_1027_4);
  oaepVecTest(1027,5,pubParam,privParam,seed_1027_5,input_1027_5,output_1027_5);
  oaepVecTest(1027,6,pubParam,privParam,seed_1027_6,input_1027_6,output_1027_6);
}

Fixed version (ground truth):
public void performTest() throws Exception {
  baseOaepTest(1,pubKeyEnc1,privKeyEnc1,output1);
  baseOaepTest(2,pubKeyEnc2,privKeyEnc2,output2);
  baseOaepTest(3,pubKeyEnc3,privKeyEnc3,output3);
  RSAKeyParameters pubParam=new RSAKeyParameters(false,new BigInteger(1,modulus_1024),new BigInteger(1,pubExp_1024));
  RSAKeyParameters privParam=new RSAPrivateCrtKeyParameters(pubParam.getModulus(),pubParam.getExponent(),new BigInteger(1,privExp_1024),new BigInteger(1,prime1_1024),new BigInteger(1,prime2_1024),new BigInteger(1,primeExp1_1024),new BigInteger(1,primeExp2_1024),new BigInteger(1,crtCoef_1024));
  oaepVecTest(1024,1,pubParam,privParam,seed_1024_1,input_1024_1,output_1024_1);
  oaepVecTest(1024,2,pubParam,privParam,seed_1024_2,input_1024_2,output_1024_2);
  oaepVecTest(1024,3,pubParam,privParam,seed_1024_3,input_1024_3,output_1024_3);
  oaepVecTest(1024,4,pubParam,privParam,seed_1024_4,input_1024_4,output_1024_4);
  oaepVecTest(1024,5,pubParam,privParam,seed_1024_5,input_1024_5,output_1024_5);
  oaepVecTest(1024,6,pubParam,privParam,seed_1024_6,input_1024_6,output_1024_6);
  pubParam=new RSAKeyParameters(false,new BigInteger(1,modulus_1027),new BigInteger(1,pubExp_1027));
  privParam=new RSAPrivateCrtKeyParameters(pubParam.getModulus(),pubParam.getExponent(),new BigInteger(1,privExp_1027),new BigInteger(1,prime1_1027),new BigInteger(1,prime2_1027),new BigInteger(1,primeExp1_1027),new BigInteger(1,primeExp2_1027),new BigInteger(1,crtCoef_1027));
  oaepVecTest(1027,1,pubParam,privParam,seed_1027_1,input_1027_1,output_1027_1);
  oaepVecTest(1027,2,pubParam,privParam,seed_1027_2,input_1027_2,output_1027_2);
  oaepVecTest(1027,3,pubParam,privParam,seed_1027_3,input_1027_3,output_1027_3);
  oaepVecTest(1027,4,pubParam,privParam,seed_1027_4,input_1027_4,output_1027_4);
  oaepVecTest(1027,5,pubParam,privParam,seed_1027_5,input_1027_5,output_1027_5);
  oaepVecTest(1027,6,pubParam,privParam,seed_1027_6,input_1027_6,output_1027_6);
  AsymmetricBlockCipher cipher=new OAEPEncoding(new RSAEngine(),new SHA256Digest(),new SHA1Digest(),new byte[10]);
  cipher.init(true,new ParametersWithRandom(pubParam,new SecureRandom()));
  byte[] input=new byte[10];
  byte[] out=cipher.processBlock(input,0,input.length);
  cipher.init(false,privParam);
  out=cipher.processBlock(out,0,out.length);
  for (int i=0; i != input.length; i++) {
    if (out[i] != input[i]) {
      fail("String_Node_Str");
    }
  }
  cipher=new OAEPEncoding(new RSAEngine(),new SHA1Digest(),new SHA256Digest(),new byte[10]);
  cipher.init(true,new ParametersWithRandom(pubParam,new SecureRandom()));
  out=cipher.processBlock(input,0,input.length);
  cipher.init(false,privParam);
  out=cipher.processBlock(out,0,out.length);
  for (int i=0; i != input.length; i++) {
    if (out[i] != input[i]) {
      fail("String_Node_Str");
    }
  }
}