public class SM3 extends Digester
国密算法包括:
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_NAME |
digestCount, salt, saltPosition
Constructor and Description |
---|
SM3()
构造
|
SM3(byte[] salt)
构造
|
SM3(byte[] salt,
int digestCount)
构造
|
SM3(byte[] salt,
int saltPosition,
int digestCount)
构造
|
Modifier and Type | Method and Description |
---|---|
static SM3 |
create()
创建SM3实例
|
public static final String ALGORITHM_NAME
public SM3()
public SM3(byte[] salt)
salt
- 盐值public SM3(byte[] salt, int digestCount)
salt
- 盐值digestCount
- 摘要次数,当此值小于等于1,默认为1。public SM3(byte[] salt, int saltPosition, int digestCount)
salt
- 盐值saltPosition
- 加盐位置,即将盐值字符串放置在数据的index数,默认0digestCount
- 摘要次数,当此值小于等于1,默认为1。public static SM3 create()
Copyright © 2024. All rights reserved.