block word digest SHA-1 512 32 160 SHA-256 512 32 256 SHA-384 1024 64 384 SHA-512 1024 64 512
153154155156157158159
static public class ecDSA512 extends Signature { public ecDSA512() { super(new SHA512Digest(), new ECDSASigner(), new StdDSAEncoder()); }
207208209210211212213
static public class ecNR512 extends Signature { public ecNR512() { super(new SHA512Digest(), new ECNRSigner(), new StdDSAEncoder()); }
295296297298299300301
static public class SHA512WithRSAEncryption extends JDKDigestSignature { public SHA512WithRSAEncryption() { super(NISTObjectIdentifiers.id_sha512, new SHA512Digest(), new PKCS1Encoding(new RSABlindedEngine())); }
287288289290291292293
static public class SHA512WithRSAEncryption extends JDKDigestSignature { public SHA512WithRSAEncryption() { super("SHA512withRSA", NISTObjectIdentifiers.id_sha512, new SHA512Digest(), new PKCS1Encoding(new RSAEngine())); }
102103104105106107108109110111
{ return new SHA384Digest(); } if (sha512.contains(digestName)) { return new SHA512Digest(); } return null; }
195196197198199200201202203204205
{ cipher = new OAEPEncoding(new RSAEngine(), new SHA384Digest()); } else if (pad.equals("OAEPWITHSHA512ANDMGF1PADDING")) { cipher = new OAEPEncoding(new RSAEngine(), new SHA512Digest()); } else { throw new NoSuchPaddingException(padding + " unavailable with RSA."); }
200201202203204205206
static public class SHA512withRSA extends JDKPSSSigner { public SHA512withRSA() { super("SHA512withRSA/PSS", new RSAEngine(), new SHA512Digest()); }
162163164165166167168169170171172
{ cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), new SHA384Digest())); } else if (pad.equals("OAEPWITHSHA512ANDMGF1PADDING")) { cipher = new BufferedAsymmetricBlockCipher(new OAEPEncoding(new ElGamalEngine(), new SHA512Digest())); } else { throw new NoSuchPaddingException(padding + " unavailable with ElGamal."); }
308309310311312313314
static public class ecDSA512 extends JDKDSASigner { public ecDSA512() { super("SHA512withECDSA", new SHA512Digest(), new ECDSASigner()); }
354355356357358359360
static public class ecNR512 extends JDKDSASigner { public ecNR512() { super("SHA512withECNR", new SHA512Digest(), new ECNRSigner()); }