📄 rijndaelkey.java
字号:
// Decompiled by Jad v1.5.7. Copyright 1997-99 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3)
// Source File Name: RijndaelKey.java
package cn.ac.ict.crypto.provider.Rijndael;
import java.io.*;
import javax.crypto.SecretKey;
public class RijndaelKey
implements SecretKey, Externalizable
{
public RijndaelKey()
{
}
public RijndaelKey(byte rawKey[])
{
keyLength = rawKey.length;
key = new byte[keyLength];
System.arraycopy(rawKey, 0, key, 0, keyLength);
}
public String getAlgorithm()
{
return "Rijndael";
}
public String getFormat()
{
return "RAW";
}
public byte[] getEncoded()
{
byte tmp[] = new byte[keyLength];
System.arraycopy(key, 0, tmp, 0, keyLength);
return tmp;
}
public void writeExternal(ObjectOutput out)
throws IOException
{
out.write((byte)key.length);
out.write(key);
}
public void readExternal(ObjectInput in)
throws IOException
{
int len = in.read();
key = new byte[len];
in.readFully(key, 0, len);
}
public static final String ident = "$Id: RijndaelKey.java,v 0.0 2000/12/26 $";
private byte key[];
private int keyLength;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -