Examples of digest()


Examples of one.nio.util.DigestStream.digest()

                ds.writeUTF(getClass().getName());
                writeExternal(ds);
            } catch (IOException e) {
                throw new IllegalStateException(e);
            }
            this.uid = ds.digest();
        }
    }

    @Override
    public String toString() {
View Full Code Here

Examples of org.apache.cassandra.db.ReadResponse.digest()

        byte[] body = (byte[])response.getMessageBody()[0];           
              bufIn.reset(body, body.length);
              try
              {                
                  ReadResponse result = ReadResponse.serializer().deserialize(bufIn);
                  byte[] digest = result.digest();
                  if( !Arrays.equals(row_.digest(), digest) )
          {
                    doReadRepair();
                    break;
          }
View Full Code Here

Examples of org.apache.harmony.security.tests.support.MyMessageDigest1.digest()

    /**
     * @tests java.security.MessageDigest#digest()
     */
    public void test_digest() {
        MyMessageDigest1 md = new MyMessageDigest1("ABC");
        assertEquals("incorrect result", 0, md.digest().length);
        assertTrue(md.runEngineDigest);
    }

    /**
     * @tests java.security.MessageDigest#digest(byte[])
View Full Code Here

Examples of org.apache.java.security.MD5.digest()

        url.append ( data.getServerData().getScriptName() );
        turbineURL = url.toString();

        MD5 md5 = new MD5();
        turbineId = Bytes.toString(md5.digest(url.toString().getBytes()));

        Log.info("This is Turbine instance running at: " + url);
        Log.info("The instance id is #" + turbineId);
        setInit(true);
    }
View Full Code Here

Examples of org.apache.jcp.xml.dsig.internal.dom.DOMReference.digest()

                List<Reference> manifestReferences = manifest.getReferences();
                for (Reference manifestReference : manifestReferences) {
                    if (manifestReference.getDigestValue() != null) continue;

                    DOMReference manifestDOMReference = (DOMReference)manifestReference;
                    manifestDOMReference.digest(xmlSignContext);
                }
            }
        }

        /*
 
View Full Code Here

Examples of org.apache.sshd.common.Digest.digest()

        buffer.putByte((byte) 0x41);
        buffer.putRawBytes(sessionId);
        int pos = buffer.available();
        byte[] buf = buffer.array();
        hash.update(buf, 0, pos);
        IVc2s = hash.digest();

        int j = pos - sessionId.length - 1;

        buf[j]++;
        hash.update(buf, 0, pos);
View Full Code Here

Examples of org.apache.sshd.common.digest.MD5.digest()

            Buffer buffer = new Buffer();
            buffer.putRawPublicKey(key);
            MD5 md5 = new MD5();
            md5.init();
            md5.update(buffer.array(), 0, buffer.wpos());
            byte[] data = md5.digest();
            return BufferUtils.printHex(data, 0, data.length, ':');
        } catch (Exception e) {
            return "Unable to compute fingerprint";
        }
    }
View Full Code Here

Examples of org.apache.xml.security.algorithms.MessageDigestAlgorithm.digest()

         MessageDigestAlgorithm mda = this.getMessageDigestAlgorithm();

         mda.reset();
         mda.update(data);

         byte calculatedDigestValue[] = mda.digest();

         //J-
         if (data.length < 20) {
            cat.debug(new String(data));
         } else {
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.digest()

         System.arraycopy( buffer.array(), 0, raw, 0, raw.length );

         sha1Gudy.update( buffer );
         sha1Gudy.saveState();
         ByteBuffer bb = ByteBuffer.wrap( new byte[56081] );
         sha1Gudy.digest( bb );
         sha1Gudy.restoreState();
        
         sha1Sun.update( raw );
        
         buffer.clear();
View Full Code Here

Examples of org.gudy.azureus2.core3.util.SHA1.digest()

        }
       
        byte[] sun = sha1Sun.digest();
        sha1Sun.reset();
       
        byte[] gudy = sha1Gudy.digest();
        sha1Gudy.reset();
       
        if ( Arrays.equals( sun, gudy ) ) {
          System.out.println("  SHA1-Gudy: OK");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.