FileDocCategorySizeDatePackage
MyCipher.javaAPI DocAndroid 1.5 API3602Wed May 06 22:41:02 BST 2009org.apache.harmony.crypto.tests.support

MyCipher

public class MyCipher extends CipherSpi
Cipher implementation for testing

Fields Summary
Constructors Summary
public MyCipher()

        super();
    
Methods Summary
protected byte[]engineDoFinal(byte[] input, int inputOffset, int inputLen)

        return null;
    
protected intengineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

        return 0;
    
protected intengineGetBlockSize()

        return 111;
    
protected byte[]engineGetIV()

        byte[] b = {1,2,3};
        return b;
    
protected intengineGetOutputSize(int inputLen)

        return inputLen + 10;
    
protected java.security.AlgorithmParametersengineGetParameters()

        return null;
    
protected voidengineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random)

    
protected voidengineInit(int opmode, java.security.Key key, java.security.SecureRandom random)

    
protected voidengineInit(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)

    
protected voidengineSetMode(java.lang.String mode)

    
protected voidengineSetPadding(java.lang.String padding)

        if (!"PKCS5Padding".equals(padding)) {
            throw new  NoSuchPaddingException(padding);
        }
    
protected byte[]engineUpdate(byte[] input, int inputOffset, int inputLen)

        return null;
    
protected intengineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

        return 0;