xjava.security
Interface VariableLengthDigest

All Known Implementing Classes:
HAVAL

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.3 $

Since:
IJCE 1.0.1
Author:
David Hopwood

Method Summary
 void setDigestLength(int nbytes)
          Sets the length of the digest output in bytes, and resets the digest.
 

Method Detail

setDigestLength

public void setDigestLength(int nbytes)
Sets the length of the digest output in bytes, and resets the digest.
Parameters:
nbytes - the new length in bytes.