99100101102103104105106107108109
{ return new SHA256Digest(); } if (sha384.contains(digestName)) { return new SHA384Digest(); } if (sha512.contains(digestName)) { return new SHA512Digest(); }
103104105106107108109110111112
{ return new SHA384Digest(); } if (sha512.contains(digestName)) { return new SHA512Digest(); } return null; }
8081828384858687
if (digest == null) { throw new NoSuchPaddingException("no match on OAEP constructor for digest algorithm: "+ mgfParams.getDigestAlgorithm()); } cipher = new OAEPEncoding(new RSABlindedEngine(), digest, ((PSource.PSpecified)pSpec.getPSource()).getValue()); paramSpec = pSpec; }
300301302303304305306307308309310
if (mgfDigest == null) { throw new InvalidAlgorithmParameterException("no match on MGF digest algorithm: "+ mgfParams.getDigestAlgorithm()); } cipher = new OAEPEncoding(new RSABlindedEngine(), digest, mgfDigest, ((PSource.PSpecified)spec.getPSource()).getValue()); } } else { throw new IllegalArgumentException("unknown parameter type.");
5758596061626364
if (digest == null) { throw new NoSuchPaddingException("no match on OAEP constructor for digest algorithm: "+ mgfParams.getDigestAlgorithm()); } cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), digest, ((PSource.PSpecified)pSpec.getPSource()).getValue())); paramSpec = pSpec; }
349350351352353354355
static public class RIPEMD256WithRSAEncryption extends JDKDigestSignature { public RIPEMD256WithRSAEncryption() { super(TeleTrusTObjectIdentifiers.ripemd256, new RIPEMD256Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
358359360361362363364
static public class noneRSA extends JDKDigestSignature { public noneRSA() { super(new NullDigest(), new PKCS1Encoding(new RSABlindedEngine())); }
75767778798081
public static class RFC3211Wrap extends WrapCipherSpi { public RFC3211Wrap() { super(new RFC3211WrapEngine(new AESEngine()), 16); }
30313233343536
public static class ECB extends JCEBlockCipher { public ECB() { super(new AESFastEngine()); }
39404142434445
public static class CBC extends JCEBlockCipher { public CBC() { super(new CBCBlockCipher(new AESFastEngine()), 128); }