1、优化sm4_cbc加解密方法

This commit is contained in:
zhoubin
2021-10-19 15:16:09 +08:00
parent b65f76aab8
commit b0a1c42ff3
7 changed files with 507 additions and 16 deletions
@@ -0,0 +1,25 @@
package com.sunyard.trans;
public enum RoundMode {
ECB("ECB", 1),
CBC( "CBC", 2),
CFB( "CFB", 3),
OFB( "OFB", 4);
private String name;
private int value;
// 构造方法
private RoundMode(String name, int value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public int getValue() {
return value;
}
}