if (pad.equals(PKCS7_PAD))
if (pad.equals(PKCS7_PAD) || pad.equals(PKCS5_PAD))
  public static final IPad getInstance(String pad)  {    if (pad == null)      {        return null;      }    pad = pad.trim().toLowerCase();    if (pad.endsWith("padding"))      pad = pad.substring(0, pad.length() - "padding".length());    IPad result = null;    if (pad.equals(PKCS7_PAD))      {        result = new PKCS7();      }    else if (pad.equals(TBC_PAD))      {        result = new TBC();      }    else if (pad.equals(EME_PKCS1_V1_5_PAD))      {        result = new PKCS1_V1_5();      }    else if (pad.equals(SSL3_PAD))      {        result = new SSL3();      }    else if (pad.equals(TLS1_PAD))      {        result = new TLS1();      }    if (result != null && !result.selfTest())      {        throw new InternalError(result.name());      }    return result;  }