Skip to content

Commit

Permalink
Merge pull request #37 from ansforge/bug/34_sha256_nonstandard_sha-25…
Browse files Browse the repository at this point in the history
…6_standard

FIX : use the standard name for the SHA256 algorithm.
  • Loading branch information
edegenetais-nx authored and Eric Degenetais committed Jun 18, 2024
1 parent c799ff5 commit 36ffd3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ private MessageDigest writeExtractEntry(ExtractionController extractionControlle
zos.putNextEntry(zipEntry);
byte[] buffer=new byte[4096];
int nbCopied = fileContent.read(buffer);
MessageDigest digestEngine=MessageDigest.getInstance("SHA256");
MessageDigest digestEngine=MessageDigest.getInstance("SHA-256");
while(nbCopied>=0){
zos.write(buffer, 0, nbCopied);
// Why read twice when we can digest on the way.
Expand Down

0 comments on commit 36ffd3e

Please sign in to comment.