提交 4af42b4c 编写于 作者: H huanghaiquan

optimized the api of crypto utils;

上级 4c34e73c
......@@ -23,11 +23,11 @@ import utils.security.EncryptionException;
public class AESUtils {
// AES128 supports 128-bit(16 bytes) secret key
private static final int KEY_SIZE = 128 / 8;
public static final int KEY_SIZE = 128 / 8;
// One block contains 16 bytes
private static final int BLOCK_SIZE = 16;
public static final int BLOCK_SIZE = 16;
// Initial vector's size is 16 bytes
private static final int IV_SIZE = 16;
public static final int IV_SIZE = 16;
/**
* key generation
......
......@@ -17,9 +17,9 @@ import utils.security.EncryptionException;
public class SM4Utils {
// SM4 supports 128-bit(16 bytes) secret key
private static final int KEY_SIZE = 128 / 8;
public static final int KEY_SIZE = 128 / 8;
// One block contains 16 bytes
private static final int BLOCK_SIZE = 16;
public static final int BLOCK_SIZE = 16;
// Initial vector's size is 16 bytes
public static final int IV_SIZE = 16;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册