Lines Matching defs:digest

40  * message digest algorithm, such as SHA-1 or SHA-256.
47 * to reset the digest. Once all the data to be updated has been
48 * updated, one of the {@link #digest() digest} methods should
51 * <p>The <code>digest</code> method can be called once for a given number
52 * of updates. After <code>digest</code> has been called, the MessageDigest
65 * byte[] toChapter1Digest = tc1.digest();
69 * throw new DigestException("couldn't make digest of partial content");
82 * supply their own implementations of message digest algorithms.
108 // The state of this digest
117 * Creates a message digest with the specified algorithm name.
119 * @param algorithm the standard name of the digest algorithm.
130 * Returns a MessageDigest object that implements the specified digest
177 * Returns a MessageDigest object that implements the specified digest
229 * Returns a MessageDigest object that implements the specified digest
277 * Returns the provider of this message digest object.
279 * @return the provider of this message digest object
286 * Updates the digest using the specified byte.
288 * @param input the byte with which to update the digest.
296 * Updates the digest using the specified array of bytes, starting
318 * Updates the digest using the specified array of bytes.
328 * Update the digest using the specified ByteBuffer. The digest is
347 * such as padding. The digest is reset after this call is made.
351 public byte[] digest() {
360 * such as padding. The digest is reset after this call is made.
362 * @param buf output buffer for the computed digest
364 * @param offset offset into the output buffer to begin storing the digest
366 * @param len number of bytes within buf allotted for the digest
372 public int digest(byte[] buf, int offset, int len) throws DigestException {
386 * Performs a final update on the digest using the specified array
387 * of bytes, then completes the digest computation. That is, this
390 * then calls {@link #digest() digest()}.
392 * @param input the input to be updated before the digest is
397 public byte[] digest(byte[] input) {
399 return digest();
403 * Returns a string representation of this message digest object.
426 * @param digestb the other digest to compare.
444 * Resets the digest for further use.
467 * Returns the length of the digest in bytes, or 0 if this operation is
470 * @return the digest length in bytes, or 0 if this operation is not
480 byte[] digest = md.digest();
481 return digest.length;