Examples of DESEngine


Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class PBEWithMD5
        extends BaseBlockCipher
    {
        public PBEWithMD5()
        {
            super(new CBCBlockCipher(new DESEngine()));
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class PBEWithSHA1
        extends BaseBlockCipher
    {
        public PBEWithSHA1()
        {
            super(new CBCBlockCipher(new DESEngine()));
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

       
        c1 = new IESCipher(new IESEngine(new ECDHBasicAgreement(),
                new KDF2BytesGenerator(new SHA1Digest()),
                new HMac(new SHA1Digest()),
                new PaddedBufferedBlockCipher(new DESEngine())));
       
        c2 = new IESCipher(new IESEngine(new ECDHBasicAgreement(),
                new KDF2BytesGenerator(new SHA1Digest()),
                new HMac(new SHA1Digest()),
                new PaddedBufferedBlockCipher(new DESEngine())))
   
        params = new IESParameterSpec(derivation, encoding, 128, 128);
     
        // Testing ECIES with default curve using DES
        g = KeyPairGenerator.getInstance("EC", "BC");
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

        }
       
        cipher.processBlock(buf, 0, mac, 0);

        // Added to code from base class
        DESEngine deseng = new DESEngine();
       
        deseng.init(false, this.lastKey2);
        deseng.processBlock(mac, 0, mac, 0);
       
        deseng.init(true, this.lastKey3);
        deseng.processBlock(mac, 0, mac, 0);
        // ****
       
        System.arraycopy(mac, 0, out, outOff, macSize);
       
        reset();
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class DES
        extends JCEBlockCipher
    {
        public DES()
        {
            super(new DESEngine());
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class DESCBC
        extends JCEBlockCipher
    {
        public DESCBC()
        {
            super(new CBCBlockCipher(new DESEngine()), 64);
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class DES_CFB8
        extends JCEStreamCipher
    {
        public DES_CFB8()
        {
            super(new CFBBlockCipher(new DESEngine(), 8), 64);
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class DES_OFB8
        extends JCEStreamCipher
    {
        public DES_OFB8()
        {
            super(new OFBBlockCipher(new DESEngine(), 8), 64);
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class PBEWithMD5AndDES
        extends JCEBlockCipher
    {
        public PBEWithMD5AndDES()
        {
            super(new CBCBlockCipher(new DESEngine()));
        }
View Full Code Here

Examples of org.bouncycastle.crypto.engines.DESEngine

    static public class PBEWithSHA1AndDES
        extends JCEBlockCipher
    {
        public PBEWithSHA1AndDES()
        {
            super(new CBCBlockCipher(new DESEngine()));
        }
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.