1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| package org.sxkj.common.utils.SM2;
|
| import org.bouncycastle.crypto.engines.SM2Engine;
|
| public enum ModeTypeEnum {
|
| BASE_MODE(ModeTypeConstant.BASE, SM2Engine.Mode.C1C3C2),
| BC_MODE(ModeTypeConstant.BC, SM2Engine.Mode.C1C2C3);
|
| private String type;
| private SM2Engine.Mode mode;
|
| ModeTypeEnum(String type, SM2Engine.Mode mode) {
| this.type = type;
| this.mode = mode;
| }
|
| public String getType(){
| return type;
| }
|
| public SM2Engine.Mode getMode(){
| return mode;
| }
|
| }
|
|