fix comment

This commit is contained in:
Looly
2019-10-02 16:05:50 +08:00
parent 3acf9c4e70
commit 522ed4308d
37 changed files with 85 additions and 85 deletions

View File

@@ -16,7 +16,7 @@ public enum Padding {
*/
NoPadding,
/**
* 0补码不满block长度时使用0填充
* 0补码不满block长度时使用0填充
*/
ZeroPadding,
ISO10126Padding,

View File

@@ -32,7 +32,7 @@ public class Digester implements Serializable {
private MessageDigest digest;
/** 盐值 */
protected byte[] salt;
/** 加盐位置,将盐值字符串放置在数据的index数默认0 */
/** 加盐位置,将盐值字符串放置在数据的index数默认0 */
protected int saltPosition;
/** 散列次数 */
protected int digestCount;
@@ -120,7 +120,7 @@ public class Digester implements Serializable {
* data: 0123456
* </pre>
*
* 则当saltPosition = 2时盐位于data的1和2中间第二个空隙,
* 则当saltPosition = 2时盐位于data的1和2中间第二个空隙,
*
* <pre>
* data: 01[salt]23456

View File

@@ -53,7 +53,7 @@ public class MD5 extends Digester {
* 构造
*
* @param salt 盐值
* @param saltPosition 加盐位置,将盐值字符串放置在数据的index数默认0
* @param saltPosition 加盐位置,将盐值字符串放置在数据的index数默认0
* @param digestCount 摘要次数当此值小于等于1,默认为1。
*/
public MD5(byte[] salt, int saltPosition, int digestCount) {

View File

@@ -51,7 +51,7 @@ public class SM3 extends Digester {
* 构造
*
* @param salt 盐值
* @param saltPosition 加盐位置,将盐值字符串放置在数据的index数默认0
* @param saltPosition 加盐位置,将盐值字符串放置在数据的index数默认0
* @param digestCount 摘要次数当此值小于等于1,默认为1。
*/
public SM3(byte[] salt, int saltPosition, int digestCount) {

View File

@@ -134,7 +134,7 @@ public class SymmetricCrypto implements Serializable {
*
* @param algorithm 算法
* @param key 密钥,如果为<code>null</code>自动生成一个key
* @return {@link SymmetricCrypto}的子对象,子对象自身
* @return {@link SymmetricCrypto}的子对象,子对象自身
*/
public SymmetricCrypto init(String algorithm, SecretKey key) {
Assert.notBlank(algorithm, "'algorithm' must be not blank !");