131132133134135136137138139140141
{ cipher = new BufferedAsymmetricBlockCipher(new ElGamalEngine()); } else if (pad.equals("PKCS1PADDING")) { cipher = new BufferedAsymmetricBlockCipher(new PKCS1Encoding(new ElGamalEngine())); } else if (pad.equals("OAEPPADDING")) { cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine())); }
322323324325326327328
static public class PKCS1v1_5Padding extends JCEElGamalCipher { public PKCS1v1_5Padding() { super(new PKCS1Encoding(new ElGamalEngine())); }
237238239240241242243
static public class SHA1WithRSAEncryption extends JDKDigestSignature { public SHA1WithRSAEncryption() { super("SHA1withRSA", id_SHA1, new SHA1Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
246247248249250251252
static public class SHA224WithRSAEncryption extends JDKDigestSignature { public SHA224WithRSAEncryption() { super("SHA224withRSA", NISTObjectIdentifiers.id_sha224, new SHA224Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
255256257258259260261
static public class SHA256WithRSAEncryption extends JDKDigestSignature { public SHA256WithRSAEncryption() { super("SHA256withRSA", NISTObjectIdentifiers.id_sha256, new SHA256Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
264265266267268269270
static public class SHA384WithRSAEncryption extends JDKDigestSignature { public SHA384WithRSAEncryption() { super("SHA384withRSA", NISTObjectIdentifiers.id_sha384, new SHA384Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
273274275276277278279
static public class SHA512WithRSAEncryption extends JDKDigestSignature { public SHA512WithRSAEncryption() { super("SHA512withRSA", NISTObjectIdentifiers.id_sha512, new SHA512Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
282283284285286287288
static public class MD2WithRSAEncryption extends JDKDigestSignature { public MD2WithRSAEncryption() { super("MD2withRSA", md2, new MD2Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
291292293294295296297
static public class MD4WithRSAEncryption extends JDKDigestSignature { public MD4WithRSAEncryption() { super("MD4withRSA", md4, new MD4Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
300301302303304305306
static public class MD5WithRSAEncryption extends JDKDigestSignature { public MD5WithRSAEncryption() { super("MD5withRSA", md5, new MD5Digest(), new PKCS1Encoding(new RSABlindedEngine())); }