1、优化sm4_cbc加解密方法
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user