FileDocCategorySizeDatePackage
RC2Parameters.javaAPI DocAzureus 3.0.3.4667Tue Jun 08 05:13:00 BST 2004org.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;