Example usage for org.bouncycastle.cms CMSEnvelopedGenerator AES256_CBC

List of usage examples for org.bouncycastle.cms CMSEnvelopedGenerator AES256_CBC

Introduction

In this page you can find the example usage for org.bouncycastle.cms CMSEnvelopedGenerator AES256_CBC.

Prototype

String AES256_CBC

To view the source code for org.bouncycastle.cms CMSEnvelopedGenerator AES256_CBC.

Click Source Link

Usage

From source file:org.neociclo.odetteftp.util.EnvelopingUtil.java

License:Apache License

public static String asEncryptionAlgorithm(CipherSuite cipherSuite) {
    if (cipherSuite == CipherSuite.TRIPLEDES_RSA_SHA1)
        return CMSEnvelopedGenerator.DES_EDE3_CBC;
    else if (cipherSuite == CipherSuite.AES_RSA_SHA1)
        return CMSEnvelopedGenerator.AES256_CBC;
    else/*from   w ww.  jav a2  s  . c om*/
        return null;
}