boolean checkDecryptedBytes(final byte[] msg){
  boolean conform=false;
  byte[] tmpMsg=msg;
  if (oracleType == OracleType.BigIP && tmpMsg[1] == 0x02) {
    conform=true;
  }
  if (tmpMsg[0] == 0x00) {
    byte[] tmp=new byte[tmpMsg.length - 1];
    System.arraycopy(tmpMsg,1,tmp,0,tmp.length);
    tmpMsg=tmp;
  }
  if (oracleType == OracleType.MANGER_0x00 && tmpMsg.length == (blockSize - 1)) {
    conform=true;
  }
  if (tmpMsg[0] == 0x02 && tmpMsg.length == (blockSize - 1)) {
switch (oracleType) {
case TTT:
case BigIP:
      conform=true;
    break;
case FTT:
  if (checkFirst(tmpMsg)) {
    conform=true;
  }
break;
case TFT:
if (checkSecond(tmpMsg)) {
conform=true;
}
break;
case FFT:
if (checkFirst(tmpMsg) && checkSecond(tmpMsg)) {
conform=true;
}
break;
case FFF:
if (checkFirst(tmpMsg) && checkSecond(tmpMsg) && checkThird(tmpMsg)) {
conform=true;
}
break;
case JSSE:
if (checkJSSE(tmpMsg)) {
conform=true;
}
break;
case XMLENC:
if (checkXMLENC(tmpMsg)) {
conform=true;
}
break;
default :
break;
}
}
if (conform) {
LOGGER.debug("-------- Valid message by query number {} -----------",numberOfQueries);
}
return conform;
}

boolean checkDecryptedBytes ( final byte [ ] msg ) { boolean conform = false ; byte [ ] tmpMsg = msg ; if ( oracleType == OracleType . BigIP && tmpMsg [ 1 ] == 0x02 ) { conform = true ; } if ( tmpMsg [ 0 ] == 0x00 ) { byte [ ] tmp = new byte [ tmpMsg . length - 1 ] ; System . arraycopy ( tmpMsg , 1 , tmp , 0 , tmp . length ) ; tmpMsg = tmp ; } if ( oracleType == OracleType . MANGER_0x00 && tmpMsg . length == ( blockSize - 1 ) ) { conform = true ; } if ( tmpMsg [ 0 ] == 0x02 && tmpMsg . length == ( blockSize - 1 ) ) { switch ( oracleType ) { case TTT : case BigIP : conform = true ; break ; case FTT : if ( checkFirst ( tmpMsg ) ) { conform = true ; } break ; case TFT : if ( checkSecond ( tmpMsg ) ) { conform = true ; } break ; case FFT : if ( checkFirst ( tmpMsg ) && checkSecond ( tmpMsg ) ) { conform = true ; } break ; case FFF : if ( checkFirst ( tmpMsg ) && checkSecond ( tmpMsg ) && checkThird ( tmpMsg ) ) { conform = true ; } break ; case JSSE : if ( checkJSSE ( tmpMsg ) ) { conform = true ; } break ; case XMLENC : if ( checkXMLENC ( tmpMsg ) ) { conform = true ; } break ; default : break ; } } if ( conform ) { LOGGER . debug ( "-------- Valid message by query number {} -----------" , numberOfQueries ) ; } return conform ; }
checks the message and its pkcs # 1 conformity according to the oracle type
