Package org.bouncycastle.crypto.digests

Examples of org.bouncycastle.crypto.digests.SHA512Digest


    static public class SHA512WithRSAEncryption
        extends JDKDigestSignature
    {
        public SHA512WithRSAEncryption()
        {
            super("SHA512withRSA", NISTObjectIdentifiers.id_sha512, new SHA512Digest(), new PKCS1Encoding(new RSABlindedEngine()));
        }
View Full Code Here


        {
            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.");
        }
View Full Code Here

    static public class SHA512withRSA
        extends JDKPSSSigner
    {
        public SHA512withRSA()
        {
            super("SHA512withRSAandMGF1", new RSABlindedEngine(), new SHA512Digest());
        }
View Full Code Here

    static public class dsa512
        extends JDKDSASigner
    {
        public dsa512()
        {
            super("SHA512withDSA", new SHA512Digest(), new DSASigner());
        }
View Full Code Here

    static public class ecDSA512
        extends JDKDSASigner
    {
        public ecDSA512()
        {
            super("SHA512withECDSA", new SHA512Digest(), new ECDSASigner());
        }
View Full Code Here

    static public class ecNR512
        extends JDKDSASigner
    {
        public ecNR512()
        {
            super("SHA512withECNR", new SHA512Digest(), new ECNRSigner());
        }
View Full Code Here

     * the license.
     *
     * @return the digest as a byte array.
     */
    public byte[] calculatePublicKeyRingDigest() {
        final SHA512Digest dig = new SHA512Digest();
        dig.reset();
        dig.update(publicKeyRing, 0, publicKeyRing.length);
        final byte[] digest = new byte[dig.getDigestSize()];
        dig.doFinal(digest, 0);
        return digest;
    }
View Full Code Here

      digest = new SHA384Digest();

    } else if (alg.equals(JWSAlgorithm.ES512)) {

      oid = SECObjectIdentifiers.secp521r1;
      digest = new SHA512Digest();

    } else {
      throw new JOSEException("Unsupported ECDSA algorithm, must be ES256, ES384 or ES512");
    }
View Full Code Here

      digest = new SHA384Digest();

    } else if (alg.equals(JWSAlgorithm.ES512)) {

      oid = SECObjectIdentifiers.secp521r1;
      digest = new SHA512Digest();

    } else {
      throw new JOSEException("Unsupported ECDSA algorithm, must be ES256, ES384 or ES512");
    }
View Full Code Here

TOP

Related Classes of org.bouncycastle.crypto.digests.SHA512Digest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.