当前位置: 首页>>代码示例>>Java>>正文


Java CamelliaEngine类代码示例

本文整理汇总了Java中org.bouncycastle.crypto.engines.CamelliaEngine的典型用法代码示例。如果您正苦于以下问题:Java CamelliaEngine类的具体用法?Java CamelliaEngine怎么用?Java CamelliaEngine使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CamelliaEngine类属于org.bouncycastle.crypto.engines包,在下文中一共展示了CamelliaEngine类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createWrapper

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
static Wrapper createWrapper(int encAlgorithm)
    throws PGPException
{
    switch (encAlgorithm)
    {
    case SymmetricKeyAlgorithmTags.AES_128:
    case SymmetricKeyAlgorithmTags.AES_192:
    case SymmetricKeyAlgorithmTags.AES_256:
        return new RFC3394WrapEngine(new AESFastEngine());
    case SymmetricKeyAlgorithmTags.CAMELLIA_128:
    case SymmetricKeyAlgorithmTags.CAMELLIA_192:
    case SymmetricKeyAlgorithmTags.CAMELLIA_256:
        return new RFC3394WrapEngine(new CamelliaEngine());
    default:
        throw new PGPException("unknown wrap algorithm: " + encAlgorithm);
    }
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:18,代码来源:BcImplProvider.java

示例2: initBlockCipherEngines

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
private static void initBlockCipherEngines() {
	blockCipherEngines.put("MARS", MarsEngine.class);
	blockCipherEngines.put("AES", AESEngine.class);
	blockCipherEngines.put("Blowfish", BlowfishEngine.class);
	blockCipherEngines.put("Camellia", CamelliaEngine.class);
	blockCipherEngines.put("CAST5", CAST5Engine.class);
	blockCipherEngines.put("CAST6", CAST6Engine.class);
	blockCipherEngines.put("DESede", DESedeEngine.class);
	blockCipherEngines.put("DES", DESEngine.class);
	blockCipherEngines.put("GOST28147", GOST28147Engine.class);
	blockCipherEngines.put("IDEA", IDEAEngine.class);
	blockCipherEngines.put("Noekeon", NoekeonEngine.class);
	blockCipherEngines.put("RC2", RC2Engine.class);
	blockCipherEngines.put("RC5", RC532Engine.class);
	blockCipherEngines.put("RC6", RC6Engine.class);
	blockCipherEngines.put("SEED", SEEDEngine.class);
	blockCipherEngines.put("Serpent", SerpentEngine.class);
	blockCipherEngines.put("Shacal2", Shacal2Engine.class);
	blockCipherEngines.put("Skipjack", SkipjackEngine.class);
	blockCipherEngines.put("SM4", SM4Engine.class);
	blockCipherEngines.put("TEA", TEAEngine.class);
	blockCipherEngines.put("Twofish", TwofishEngine.class);
	blockCipherEngines.put("XTEA", XTEAEngine.class);
	blockCipherEngines.put("Threefish", ThreefishEngine.class);
}
 
开发者ID:shilongdai,项目名称:vsDiaryWriter,代码行数:26,代码来源:BlockCiphers.java

示例3: ECB

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
public ECB()
{
    super(new BlockCipherProvider()
    {
        public BlockCipher get()
        {
            return new CamelliaEngine();
        }
    });
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:11,代码来源:Camellia.java

示例4: performTests

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
private void performTests()
    throws Exception
{
    testModes(new BlowfishEngine(), new BlowfishEngine(), 16);
    testModes(new DESEngine(), new DESEngine(), 8);
    testModes(new DESedeEngine(), new DESedeEngine(), 24);
    testModes(new TEAEngine(), new TEAEngine(), 16);
    testModes(new CAST5Engine(), new CAST5Engine(), 16);
    testModes(new RC2Engine(), new RC2Engine(), 16);
    testModes(new XTEAEngine(), new XTEAEngine(), 16);

    testModes(new AESEngine(), new AESEngine(), 16);
    testModes(new NoekeonEngine(), new NoekeonEngine(), 16);
    testModes(new TwofishEngine(), new TwofishEngine(), 16);
    testModes(new CAST6Engine(), new CAST6Engine(), 16);
    testModes(new SEEDEngine(), new SEEDEngine(), 16);
    testModes(new SerpentEngine(), new SerpentEngine(), 16);
    testModes(new RC6Engine(), new RC6Engine(), 16);
    testModes(new CamelliaEngine(), new CamelliaEngine(), 16);
    testModes(new ThreefishEngine(ThreefishEngine.BLOCKSIZE_512),
        new ThreefishEngine(ThreefishEngine.BLOCKSIZE_512), 64);

    testMode(new RC4Engine(), new KeyParameter(new byte[16]));
    testMode(new Salsa20Engine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[8]));
    testMode(new XSalsa20Engine(), new ParametersWithIV(new KeyParameter(new byte[32]), new byte[24]));
    testMode(new ChaChaEngine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[8]));
    testMode(new Grainv1Engine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[8]));
    testMode(new Grain128Engine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[12]));
    testMode(new HC128Engine(), new KeyParameter(new byte[16]));
    testMode(new HC256Engine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[16]));

    testSkipping(new Salsa20Engine(), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[8]));
    testSkipping(new SICBlockCipher(new AESEngine()), new ParametersWithIV(new KeyParameter(new byte[16]), new byte[16]));
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:35,代码来源:CipherStreamTest.java

示例5: createCamelliaBlockCipher

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
protected BlockCipher createCamelliaBlockCipher()
{
    return new CBCBlockCipher(new CamelliaEngine());
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:DefaultTlsCipherFactory.java

示例6: CBC

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
public CBC()
{
    super(new CBCBlockCipher(new CamelliaEngine()), 128);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:Camellia.java

示例7: RFC3211Wrap

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
public RFC3211Wrap()
{
    super(new RFC3211WrapEngine(new CamelliaEngine()), 16);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:Camellia.java

示例8: GMAC

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
public GMAC()
{
    super(new GMac(new GCMBlockCipher(new CamelliaEngine())));
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:Camellia.java

示例9: getCipher

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
@Override
protected StreamCipher getCipher() {
    return new CFBBlockCipher(new CamelliaEngine(), 128);
}
 
开发者ID:zhoulifu,项目名称:ss-java,代码行数:5,代码来源:CamelliaCrypto.java

示例10: createCamelliaEngine

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
protected BlockCipher createCamelliaEngine()
{
    return new CamelliaEngine();
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:5,代码来源:DefaultTlsCipherFactory.java

示例11: CamelliaTest

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
CamelliaTest()
{
    super(tests, new CamelliaEngine(), new KeyParameter(new byte[32]));
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:5,代码来源:CamelliaTest.java

示例12: Poly1305

import org.bouncycastle.crypto.engines.CamelliaEngine; //导入依赖的package包/类
public Poly1305()
{
    super(new org.bouncycastle.crypto.macs.Poly1305(new CamelliaEngine()));
}
 
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:5,代码来源:Camellia.java


注:本文中的org.bouncycastle.crypto.engines.CamelliaEngine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。