All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.security.VariableLengthDigest

public interface VariableLengthDigest
This interface defines the additional API for MessageDigest classes that have a variable-length output.

The output length should be set before updating any input, because when setDigestLength is called, the digest will be reset. The length is always an exact number of bytes (i.e. a multiple of 8 bits).

This interface is not supported in JavaSoft's version of JCE.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Author:
David Hopwood

Method Index

 o setDigestLength(int)
Sets the length of the digest output in bytes, and resets the digest.

Methods

 o setDigestLength
 public abstract void setDigestLength(int nbytes)
Sets the length of the digest output in bytes, and resets the digest.

Parameters:
nbytes - the new length in bytes.

All Packages  Class Hierarchy  This Package  Previous  Next  Index