mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
package minsecurity;
|
|
|
|
/*
|
|
* @Author: hongyu guo
|
|
* @Description:
|
|
* @Version: 1.0.0
|
|
* @Date: 16:40 2021/03/04
|
|
* @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
|
|
*/
|
|
public class Common {
|
|
public static final String BC_NAME = "BC";
|
|
public static final String X509 = "X.509";
|
|
public static final String ALGO_NAME_EC = "EC";
|
|
|
|
/* Storage */
|
|
public static final int SQLITE = 0;
|
|
/* PublicKeyAlgorithm */
|
|
public static final int SM2 = 0;
|
|
/* SignatureAlgorithm */
|
|
public static final int SM3withSM2 = 0;
|
|
/* SymmetricAlgorithm */
|
|
public static final int SM4ECB = 0;
|
|
public static final int SM4CBC = 1;
|
|
/* KeyUsage */
|
|
public static final int ContentCommitment = 0;
|
|
public static final int DataEncipherment = 1;
|
|
public static final int CertSign = 2;
|
|
// public enum Storage {
|
|
// SQLITE;
|
|
// }
|
|
// public enum PublicKeyAlgorithm {
|
|
// SM2;
|
|
// }
|
|
// public enum SignatureAlgorithm {
|
|
// SM3withSM2
|
|
// }
|
|
// public enum SymmetricAlgorithm {
|
|
// SM4ECB,
|
|
// SM4CBC;
|
|
// }
|
|
// public enum KeyUsage {
|
|
// ContentCommitment,
|
|
// DataEncipherment,
|
|
// CertSign;
|
|
// }
|
|
|
|
}
|