xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Key.x
浏览该文件的文档.
1
4class Key {
5
6 // 定义密钥类型的常量
7 public static const int PUBLIC_KEY; // 公钥类型
8 public static const int PRIVATE_KEY; // 私钥类型
9 public static const int SECRET_KEY; // 密钥类型
10
11
12 // 定义RSA加密算法的公共指数常量
13 public static const int RSA_E_3; // RSA加密指数e=3
14 public static const int RSA_E_17; // RSA加密指数e=17
15 public static const int RSA_E_F4; // RSA加密指数e=65537(F4)
16
17
18 // 定义RSA算法相关字符串常量
19 public static const String RSA_BITS; // RSA密钥位数
20 public static const String RSA_e; // RSA加密指数e的字符串表示
25 public bool create();
31 public void setParam(String, Object);
37 public @NotNilptr Object getParam(String);
38 public bool load(byte[], int, int, String);
39 public bool load(String, String);
40 public @NotNilptr String getAlgorithm();
41 public @NotNilptr String getFormat();
42 public int keyType();
43 public @NotNilptr byte[] getData();
44 public int length();
45 public @NotNilptr Key translateKey(Key, Object);
46 public void finalize();
47};
Definition Key.x:4
void setParam(String, Object)
bool create()
bool load(byte[], int, int, String)
String getFormat()
bool load(String, String)
void finalize()
int keyType()
int length()
byte [] getData()
static const int PUBLIC_KEY
Definition Key.x:7
static const int PRIVATE_KEY
Definition Key.x:8
static const String RSA_BITS
Definition Key.x:19
static const String RSA_e
Definition Key.x:20
Object getParam(String)
static const int RSA_E_F4
Definition Key.x:15
String getAlgorithm()
static const int SECRET_KEY
Definition Key.x:9
Key translateKey(Key, Object)
static const int RSA_E_3
Definition Key.x:13
static const int RSA_E_17
Definition Key.x:14
Definition Object.x:1
Definition String.x:5