1package org.bouncycastle.crypto.params;
2
3public class RC2Parameters
4    extends KeyParameter
5{
6    private int     bits;
7
8    public RC2Parameters(
9        byte[]  key)
10    {
11        this(key, (key.length > 128) ? 1024 : (key.length * 8));
12    }
13
14    public RC2Parameters(
15        byte[]  key,
16        int     bits)
17    {
18        super(key);
19        this.bits = bits;
20    }
21
22    public int getEffectiveKeyBits()
23    {
24        return bits;
25    }
26}
27