block word digest SHA-1 512 32 160 SHA-256 512 32 256 SHA-384 1024 64 384 SHA-512 1024 64 512
189190191192193194195
static public class ecNR256 extends Signature { public ecNR256() { super(new SHA256Digest(), new ECNRSigner(), new StdDSAEncoder()); }
234235236237238239240
static public class ecCVCDSA256 extends Signature { public ecCVCDSA256() { super(new SHA256Digest(), new ECDSASigner(), new CVCDSAEncoder()); }
277278279280281282283
static public class SHA256WithRSAEncryption extends JDKDigestSignature { public SHA256WithRSAEncryption() { super(NISTObjectIdentifiers.id_sha256, new SHA256Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
269270271272273274275
static public class SHA256WithRSAEncryption extends JDKDigestSignature { public SHA256WithRSAEncryption() { super("SHA256withRSA", NISTObjectIdentifiers.id_sha256, new SHA256Digest(), new PKCS1Encoding(new RSAEngine())); }
949596979899100101102103104
{ return new SHA224Digest(); } if (sha256.contains(digestName)) { return new SHA256Digest(); } if (sha384.contains(digestName)) { return new SHA384Digest(); }
8081828384858687888990
break; case TIGER: generator = new PKCS12ParametersGenerator(new TigerDigest()); break; case SHA256: generator = new PKCS12ParametersGenerator(new SHA256Digest()); break; default: throw new IllegalStateException("unknown digest scheme for PBE encryption."); } }
187188189190191192193194195196197
{ cipher = new OAEPEncoding(new RSAEngine(), new SHA224Digest()); } else if (pad.equals("OAEPWITHSHA256ANDMGF1PADDING")) { cipher = new OAEPEncoding(new RSAEngine(), new SHA256Digest()); } else if (pad.equals("OAEPWITHSHA384ANDMGF1PADDING")) { cipher = new OAEPEncoding(new RSAEngine(), new SHA384Digest()); }
182183184185186187188
static public class SHA256withRSA extends JDKPSSSigner { public SHA256withRSA() { super("SHA256withRSA/PSS", new RSAEngine(), new SHA256Digest()); }
154155156157158159160161162163164
{ cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), new SHA224Digest())); } else if (pad.equals("OAEPWITHSHA256ANDMGF1PADDING")) { cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), new SHA256Digest())); } else if (pad.equals("OAEPWITHSHA384ANDMGF1PADDING")) { cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), new SHA384Digest())); }
290291292293294295296
static public class ecDSA256 extends JDKDSASigner { public ecDSA256() { super("SHA256withECDSA", new SHA256Digest(), new ECDSASigner()); }