xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
Crypto类 参考
Crypto 的协作图:
Collaboration graph

静态 Public 成员函数

静态 Public 属性

详细描述

Crypto类提供各种加密算法的实现,包括MD5、SHA1、RSA和AES等加密算法。 该类定义了多种加密常量以及相关的加密、解密和初始化方法。

在文件 Crypto.x5 行定义.

成员函数说明

◆ aes_close()

static final void aes_close ( long  ) throws IllegalArgumentException
static

◆ aes_encrypt()

static final int aes_encrypt ( long  ,
  byte[],
int  ,
int  ,
  byte[],
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ aes_open()

static final long aes_open ( String  ,
  String,
int  ,
bool   
) throws IllegalArgumentException
static

AES加密解密相关方法

◆ md5_close()

static final void md5_close ( long  )
static

◆ md5_final()

static final void md5_final ( long  )
static

◆ md5_init()

static final long md5_init ( )
static

◆ md5_result()

static final byte [] md5_result ( long  )
static

◆ md5_update()

static final void md5_update ( long  ,
  byte[],
int  ,
int   
) throws IndexOutOfBoundsException
static

◆ rsa_close()

static final void rsa_close ( long  ) throws IllegalArgumentException
static

◆ rsa_create()

static final bool rsa_create ( long  ,
int   
) throws IllegalArgumentException
static

◆ rsa_decryptoMaxSize()

static final int rsa_decryptoMaxSize ( long  ) throws IllegalArgumentException
static

◆ rsa_encryptoMaxSize()

static final int rsa_encryptoMaxSize ( long  ) throws IllegalArgumentException
static

◆ rsa_getPrivateKey()

static final byte [] rsa_getPrivateKey ( long  ) throws IllegalArgumentException
static

◆ rsa_getPublicKey()

static final byte [] rsa_getPublicKey ( long  ) throws IllegalArgumentException
static

◆ rsa_init()

static final long rsa_init ( )
static

◆ rsa_loadFromPrivateKey()

static final bool rsa_loadFromPrivateKey ( long  ,
  byte[],
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ rsa_loadFromPublicKey()

static final bool rsa_loadFromPublicKey ( long  ,
  byte[],
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ rsa_privateDecrypto()

static final byte [] rsa_privateDecrypto ( long  ,
  byte[],
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ rsa_privateEncrypto()

static final byte [] rsa_privateEncrypto ( long  ,
  byte[],
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ rsa_publicDecrypto()

static final byte [] rsa_publicDecrypto ( long  ,
  byte[],
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

◆ rsa_publicEncrypto()

static final byte [] rsa_publicEncrypto ( long  ,
  byte[],
int  ,
int  ,
int   
) throws IndexOutOfBoundsException, IllegalArgumentException
static

RSA加密解密相关方法

◆ sha1_close()

static final void sha1_close ( long  )
static

◆ sha1_final()

static final void sha1_final ( long  )
static

◆ sha1_init()

static final long sha1_init ( )
static

◆ sha1_result()

static final byte [] sha1_result ( long  )
static

◆ sha1_update()

static final void sha1_update ( long  ,
  byte[],
int  ,
int   
) throws IndexOutOfBoundsException
static

◆ sm3_close()

static final void sm3_close ( long  )
static

◆ sm3_final()

static final void sm3_final ( long  )
static

◆ sm3_init()

static final long sm3_init ( )
static

SM3哈希算法相关方法

◆ sm3_result()

static final byte [] sm3_result ( long  )
static

◆ sm3_update()

static final void sm3_update ( long  ,
  byte[],
int  ,
int   
) throws IndexOutOfBoundsException
static

结构体成员变量说明

◆ AES_CBC

const int AES_CBC
static

在文件 Crypto.x16 行定义.

◆ AES_CFB1

const int AES_CFB1
static

在文件 Crypto.x17 行定义.

◆ AES_CFB128

const int AES_CFB128
static

在文件 Crypto.x18 行定义.

◆ AES_CFB8

const int AES_CFB8
static

在文件 Crypto.x19 行定义.

◆ AES_ECB

const int AES_ECB
static

在文件 Crypto.x20 行定义.

◆ NoPadding

const int NoPadding
static

在文件 Crypto.x8 行定义.

◆ PKCS1Padding

const int PKCS1Padding
static

在文件 Crypto.x9 行定义.

◆ PKCS5Padding

const int PKCS5Padding
static

在文件 Crypto.x10 行定义.

◆ SSLV23Padding

const int SSLV23Padding
static

在文件 Crypto.x11 行定义.

◆ ZerosPadding

const int ZerosPadding
static

在文件 Crypto.x12 行定义.