rc2parameters.java

来自「进行与数字证书相关开发必须的java源码」· Java 代码 · 共 39 行

JAVA
39
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   RC2Parameters.java

package jit.crypto.params;

import jit.crypto.CipherParameters;

public class RC2Parameters
    implements CipherParameters
{

    private byte key[];
    private int bits;

    public RC2Parameters(byte key[])
    {
        this(key, key.length <= 128 ? key.length * 8 : 1024);
    }

    public RC2Parameters(byte key[], int bits)
    {
        this.key = new byte[key.length];
        this.bits = bits;
        System.arraycopy(key, 0, this.key, 0, key.length);
    }

    public byte[] getKey()
    {
        return key;
    }

    public int getEffectiveKeyBits()
    {
        return bits;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?