📄 mechanism.java
字号:
// 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: Mechanism.java
package jit.jcrypto;
public class Mechanism
{
public static final int JIT_CKM_RSA_PKCS_KEY_PAIR_GEN = 0;
public static final int JIT_CKM_RSA_PKCS = 1;
public static final int JIT_CKM_MD2_RSA_PKCS = 4;
public static final int JIT_CKM_MD5_RSA_PKCS = 5;
public static final int JIT_CKM_SHA1_RSA_PKCS = 6;
public static final int JIT_CKM_DSA_KEY_PAIR_GEN = 16;
public static final int JIT_CKM_DSA_SHA1 = 18;
public static final int JIT_CKM_RC2_KEY_GEN = 256;
public static final int JIT_CKM_RC2_ECB = 257;
public static final int JIT_CKM_RC2_CBC = 258;
public static final int JIT_CKM_RC4_KEY_GEN = 272;
public static final int JIT_CKM_RC4 = 273;
public static final int JIT_CKM_DES_KEY_GEN = 288;
public static final int JIT_CKM_DES_ECB = 289;
public static final int JIT_CKM_DES_CBC = 290;
public static final int JIT_CKM_DES3_KEY_GEN = 305;
public static final int JIT_CKM_DES3_ECB = 306;
public static final int JIT_CKM_DES3_CBC = 307;
public static final int JIT_CKM_MD2 = 512;
public static final int JIT_CKM_MD2_HMAC = 513;
public static final int JIT_CKM_MD5 = 528;
public static final int JIT_CKM_MD5_HMAC = 529;
public static final int JIT_CKM_SHA_1 = 544;
public static final int JIT_CKM_SHA_1_HMAC = 545;
public static final int JIT_CKM_CAST5_KEY_GEN = 800;
public static final int JIT_CKM_CAST5_ECB = 801;
public static final int JIT_CKM_CAST5_CBC = 802;
public static final int JIT_CKM_IDEA_KEY_GEN = 832;
public static final int JIT_CKM_IDEA_ECB = 833;
public static final int JIT_CKM_IDEA_CBC = 834;
public static final int JIT_CKM_AES_KEY_GEN = 848;
public static final int JIT_CKM_AES_ECB = 849;
public static final int JIT_CKM_AES_CBC = 850;
public static final int JIT_CKM_EC_KEY_KEYPAIR_GEN = 1025;
public static final int JIT_CKM_EC_IES = 1026;
public static final int JIT_CKM_SHA1_EC_DSA = 1027;
public static final int JIT_CKM_PKCS5_PBKDF2_KEY = 0x80000001;
public static final int JIT_CKM_PKCS5_PBKDF1_KEY_MD5 = 0x80000002;
public static final int JIT_CKM_PKCS5_PBKDF1_KEY_MD2 = 0x80000003;
public static final int JIT_CKM_PKCS5_PBKDF1_KEY_SHA1 = 0x80000004;
public static final int JIT_CKM_PBE_MD2_DES_CBC = 0x80000010;
public static final int JIT_CKM_PBE_MD5_DES_CBC = 0x80000011;
public static final int JIT_CKM_PBE_SHA1_DES_CBC = 0x80000012;
public static final int JIT_CKM_PBE_MD2_RC2_CBC = 0x80000013;
public static final int JIT_CKM_PBE_MD5_RC2_CBC = 0x80000014;
public static final int JIT_CKM_PBE_SHA1_RC2_CBC = 0x80000015;
public static final int JIT_CKM_GENERATE_RANDOM = 0x80000020;
public static final int JIT_CKM_SF33_KEY_GEN = 0x80000030;
public static final int JIT_CKM_SF33_ECB = 0x80000031;
public static final int JIT_CKM_SF33_CBC = 0x80000032;
protected int mechanismType;
protected Object mechanismParam;
public Mechanism(int _mType)
{
mechanismType = _mType;
mechanismParam = null;
}
public Mechanism(int _mType, Object _param)
{
mechanismType = _mType;
mechanismParam = _param;
}
public int getMechanismType()
{
return mechanismType;
}
public Object getParam()
{
return mechanismParam;
}
static
{
JIT_CKM_RSA_PKCS_KEY_PAIR_GEN = 0;
JIT_CKM_RSA_PKCS = 1;
JIT_CKM_MD2_RSA_PKCS = 4;
JIT_CKM_MD5_RSA_PKCS = 5;
JIT_CKM_SHA1_RSA_PKCS = 6;
JIT_CKM_DSA_KEY_PAIR_GEN = 16;
JIT_CKM_DSA_SHA1 = 18;
JIT_CKM_RC2_KEY_GEN = 256;
JIT_CKM_RC2_ECB = 257;
JIT_CKM_RC2_CBC = 258;
JIT_CKM_RC4_KEY_GEN = 272;
JIT_CKM_RC4 = 273;
JIT_CKM_DES_KEY_GEN = 288;
JIT_CKM_DES_ECB = 289;
JIT_CKM_DES_CBC = 290;
JIT_CKM_DES3_KEY_GEN = 305;
JIT_CKM_DES3_ECB = 306;
JIT_CKM_DES3_CBC = 307;
JIT_CKM_MD2 = 512;
JIT_CKM_MD2_HMAC = 513;
JIT_CKM_MD5 = 528;
JIT_CKM_MD5_HMAC = 529;
JIT_CKM_SHA_1 = 544;
JIT_CKM_SHA_1_HMAC = 545;
JIT_CKM_CAST5_KEY_GEN = 800;
JIT_CKM_CAST5_ECB = 801;
JIT_CKM_CAST5_CBC = 802;
JIT_CKM_IDEA_KEY_GEN = 832;
JIT_CKM_IDEA_ECB = 833;
JIT_CKM_IDEA_CBC = 834;
JIT_CKM_AES_KEY_GEN = 848;
JIT_CKM_AES_ECB = 849;
JIT_CKM_AES_CBC = 850;
JIT_CKM_EC_KEY_KEYPAIR_GEN = 1025;
JIT_CKM_EC_IES = 1026;
JIT_CKM_SHA1_EC_DSA = 1027;
JIT_CKM_PKCS5_PBKDF2_KEY = 0x80000001;
JIT_CKM_PKCS5_PBKDF1_KEY_MD5 = 0x80000002;
JIT_CKM_PKCS5_PBKDF1_KEY_MD2 = 0x80000003;
JIT_CKM_PKCS5_PBKDF1_KEY_SHA1 = 0x80000004;
JIT_CKM_PBE_MD2_DES_CBC = 0x80000010;
JIT_CKM_PBE_MD5_DES_CBC = 0x80000011;
JIT_CKM_PBE_SHA1_DES_CBC = 0x80000012;
JIT_CKM_PBE_MD2_RC2_CBC = 0x80000013;
JIT_CKM_PBE_MD5_RC2_CBC = 0x80000014;
JIT_CKM_PBE_SHA1_RC2_CBC = 0x80000015;
JIT_CKM_GENERATE_RANDOM = 0x80000020;
JIT_CKM_SF33_KEY_GEN = 0x80000030;
JIT_CKM_SF33_ECB = 0x80000031;
JIT_CKM_SF33_CBC = 0x80000032;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -