Package org.eclipse.php.internal.core.phar.digest

Examples of org.eclipse.php.internal.core.phar.digest.Digest


        buffer = new byte[4];
        read(bis, buffer);
        boolean found = false;
        for (Iterator<Digest> iterator = Digest.DIGEST_MAP.values()
            .iterator(); iterator.hasNext();) {
          Digest digest = iterator.next();
          if (PharUtil.byteArrayEquals(digest.getBitMap(), buffer)) {
            if (digest.getDigest().digest().length != signatureLength - 8
                || !PharUtil.checkSignature(file, digest,
                    signatureEntry.getPosition())) {
              throw new PharException(
                  Messages.Phar_Signature_Corrupted);
            } else {
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.phar.digest.Digest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.