org.apache.directory.server.kerberos.shared.crypto.checksum
Interface ChecksumEngine

All Known Implementing Classes:
Aes128CtsSha1Encryption, Aes256CtsSha1Encryption, Des3CbcSha1KdEncryption

public interface ChecksumEngine

Version:
$Rev: 541572 $, $Date: 2007-05-25 09:16:04 +0200 (Fr, 25 Mai 2007) $
Author:
Apache Directory Project

Method Summary
 byte[] calculateChecksum(byte[] data, byte[] key, KeyUsage usage)
          Calculate a checksum given raw bytes and an (optional) key.
 ChecksumType checksumType()
          Returns the checksum type of this checksum engine.
 

Method Detail

checksumType

ChecksumType checksumType()
Returns the checksum type of this checksum engine.

Returns:
The checksum type.

calculateChecksum

byte[] calculateChecksum(byte[] data,
                         byte[] key,
                         KeyUsage usage)
Calculate a checksum given raw bytes and an (optional) key.

Parameters:
data -
key -
usage -
Returns:
The checksum value.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.