Examples of GOST3411Digest


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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

                    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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

    private DSA                     signer;
    private SecureRandom            random;

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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

            {
                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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

        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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

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

            return d;
        }
View Full Code Here

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

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

Examples of org.bouncycastle.crypto.digests.GOST3411Digest

    static public class ecgost3410
        extends JDKGOST3410Signer
    {
        public ecgost3410()
        {
            super(new GOST3411Digest(), new ECGOST3410Signer());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.