This commit is contained in:
Looly
2019-09-16 09:35:09 +08:00
parent 08dce0cdae
commit 2268831ed5
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ public class Digester {
* @return 摘要bytes * @return 摘要bytes
*/ */
public byte[] digest(byte[] data) { public byte[] digest(byte[] data) {
byte[] result = null; byte[] result;
if (this.saltPosition <= 0) { if (this.saltPosition <= 0) {
// 加盐在开头,自动忽略空盐值 // 加盐在开头,自动忽略空盐值
result = doDigest(this.salt, data); result = doDigest(this.salt, data);

View File

@@ -67,7 +67,7 @@ public class BCHMacEngine implements MacEngine {
} }
final byte[] buffer = new byte[bufferLength]; final byte[] buffer = new byte[bufferLength];
byte[] result = null; byte[] result;
try { try {
int read = data.read(buffer, 0, bufferLength); int read = data.read(buffer, 0, bufferLength);