private static void CheckClassicPassword(CryptoStream classicCryptoStream, ZipEntry entry) {
var cryptbuffer=new byte[ZipConstants.CryptoHeaderSize];
StreamUtils.ReadFully(classicCryptoStream, cryptbuffer);
if (cryptbuffer[ZipConstants.CryptoHeaderSize-1]!=entry.CryptoCheckValue) {
throw new ZipException("Invalid password");
}
}