Fix decryption

This commit is contained in:
Xpl0itU 2024-04-20 17:56:03 +02:00
parent ea5f7ac243
commit f35714782e

View file

@ -399,7 +399,7 @@ func decryptContentToBuffer(encryptedFile *os.File, decryptedBuffer *bytes.Buffe
break
}
}
if !reflect.DeepEqual(content.Hash, contentHash.Sum(nil)) {
if !reflect.DeepEqual(content.Hash[:sha1.Size], contentHash.Sum(nil)) {
return errors.New("content hash mismatch")
}
}