FileDocCategorySizeDatePackage
RC2Parameters.javaAPI DocAndroid 1.5 API670Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.params

RC2Parameters

public class RC2Parameters extends Object implements org.bouncycastle.crypto.CipherParameters

Fields Summary
private byte[]
key
private int
bits
Constructors Summary
public RC2Parameters(byte[] key)

        this(key, (key.length > 128) ? 1024 : (key.length * 8));
    
public RC2Parameters(byte[] key, int bits)

        this.key = new byte[key.length];
        this.bits = bits;

        System.arraycopy(key, 0, this.key, 0, key.length);
    
Methods Summary
public intgetEffectiveKeyBits()

        return bits;
    
public byte[]getKey()

        return key;