package com.eucalyptus.crypto;
import java.security.GeneralSecurityException;
import javax.crypto.Cipher;
public enum Ciphers {
AES_GCM( "AES/GCM/NoPadding", "BC" ),
<BUG>AES_CBC("AES/CBC/NoPadding", "BC"),
</BUG>
RSA_PKCS1( "RSA/ECB/PKCS1Padding" );  //"None" is more correct than ECB, but ECB is the required algorithm for JDKs
public Cipher get( )  throws GeneralSecurityException {
return provider.isEmpty() ?

package com.eucalyptus.crypto;
import java.security.GeneralSecurityException;
import javax.crypto.Cipher;
public enum Ciphers {
AES_GCM( "AES/GCM/NoPadding", "BC" ),
AES_CBC("AES/CBC/PKCS7Padding", "BC"),
RSA_PKCS1( "RSA/ECB/PKCS1Padding" );  //"None" is more correct than ECB, but ECB is the required algorithm for JDKs
public Cipher get( )  throws GeneralSecurityException {
return provider.isEmpty() ?
