Package org.bouncycastle.crypto.digests

Examples of org.bouncycastle.crypto.digests.GOST3411Digest


    private Digest                  digest;
    private DSA                     signer;

    public SignatureSpi()
    {
        this.digest = new GOST3411Digest();
        this.signer = new ECGOST3410Signer();
    }
View Full Code Here


                    break;
                case SHA256:
                    generator = new PKCS12ParametersGenerator(new SHA256Digest());
                    break;
                case GOST3411:
                    generator = new PKCS12ParametersGenerator(new GOST3411Digest());
                    break;
                default:
                    throw new IllegalStateException("unknown digest scheme for PBE encryption.");
                }
            }
View Full Code Here

    private DSA                     signer;
    private SecureRandom            random;

    public SignatureSpi()
    {
        this.digest = new GOST3411Digest();
        this.signer = new GOST3410Signer();
    }
View Full Code Here

            {
                throw new InvalidKeyException("can't recognise key type in DSA based signer");
            }
        }

        digest = new GOST3411Digest(expandSbox(((BCDSTU4145PublicKey)publicKey).getSbox()));
        signer.init(false, param);
    }
View Full Code Here

        if (privateKey instanceof ECKey)
        {
            param = ECUtil.generatePrivateKeyParameter(privateKey);
        }

        digest = new GOST3411Digest(DEFAULT_SBOX);

        if (appRandom != null)
        {
            signer.init(true, new ParametersWithRandom(param, appRandom));
        }
View Full Code Here

        extends BCMessageDigest
        implements Cloneable
    {
        public Digest()
        {
            super(new GOST3411Digest());
        }
View Full Code Here

        public Object clone()
            throws CloneNotSupportedException
        {
            Digest d = (Digest)super.clone();
            d.digest = new GOST3411Digest((GOST3411Digest)digest);

            return d;
        }
View Full Code Here

    public static class HashMac
        extends BaseMac
    {
        public HashMac()
        {
            super(new HMac(new GOST3411Digest()));
        }
View Full Code Here

    static public class gost3410
        extends JDKGOST3410Signer
    {
        public gost3410()
        {
            super(new GOST3411Digest(), new GOST3410Signer());
        }
View Full Code Here

    static public class ecgost3410
        extends JDKGOST3410Signer
    {
        public ecgost3410()
        {
            super(new GOST3411Digest(), new ECGOST3410Signer());
        }
View Full Code Here

TOP

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

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.