public class SM4 extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int[] |
CK |
static int[] |
FK |
static byte[] |
SboxTable |
static int |
SM4_DECRYPT |
static int |
SM4_ENCRYPT |
| 构造器和说明 |
|---|
SM4() |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
sm4_crypt_cbc(SM4_Context ctx,
byte[] iv,
byte[] input) |
byte[] |
sm4_crypt_ecb(SM4_Context ctx,
byte[] input) |
void |
sm4_setkey_dec(SM4_Context ctx,
byte[] key) |
void |
sm4_setkey_enc(SM4_Context ctx,
byte[] key) |
public static final int SM4_ENCRYPT
public static final int SM4_DECRYPT
public static final byte[] SboxTable
public static final int[] FK
public static final int[] CK
public void sm4_setkey_enc(SM4_Context ctx, byte[] key) throws Exception
Exceptionpublic void sm4_setkey_dec(SM4_Context ctx, byte[] key) throws Exception
Exceptionpublic byte[] sm4_crypt_ecb(SM4_Context ctx, byte[] input) throws Exception
Exceptionpublic byte[] sm4_crypt_cbc(SM4_Context ctx, byte[] iv, byte[] input) throws Exception
ExceptionCopyright © 2017–2021 cn.gtmap. All rights reserved.