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.
135 // The state of this digest
144 * Creates a message digest with the specified algorithm name.
146 * @param algorithm the standard name of the digest algorithm.
157 * Returns a MessageDigest object that implements the specified digest
204 * Returns a MessageDigest object that implements the specified digest
256 * Returns a MessageDigest object that implements the specified digest
304 * Returns the provider of this message digest object.
306 * @return the provider of this message digest object
313 * Updates the digest using the specified byte.
315 * @param input the byte with which to update the digest.
323 * Updates the digest using the specified array of bytes, starting
345 * Updates the digest using the specified array of bytes.
355 * Update the digest using the specified ByteBuffer. The digest is
374 * such as padding. The digest is reset after this call is made.
378 public byte[] digest() {
387 * such as padding. The digest is reset after this call is made.
389 * @param buf output buffer for the computed digest
391 * @param offset offset into the output buffer to begin storing the digest
393 * @param len number of bytes within buf allotted for the digest
399 public int digest(byte[] buf, int offset, int len) throws DigestException {
413 * Performs a final update on the digest using the specified array
414 * of bytes, then completes the digest computation. That is, this
417 * then calls {@link #digest() digest()}.
419 * @param input the input to be updated before the digest is
424 public byte[] digest(byte[] input) {
426 return digest();
430 * Returns a string representation of this message digest object.
456 * @param digestb the other digest to compare.
474 * Resets the digest for further use.
497 * Returns the length of the digest in bytes, or 0 if this operation is
500 * @return the digest length in bytes, or 0 if this operation is not
510 byte[] digest = md.digest();
511 return digest.length;