COM.claymoresystems.crypto

Class HMACOutputStream

public class HMACOutputStream extends OutputStream

A filter stream that MACs the data
Constructor Summary
HMACOutputStream(String digest, byte[] key, OutputStream out)
Create the output stream with the indicated key
HMACOutputStream(String digest, String key, OutputStream out)
Create the output stream with the indicated key
Method Summary
byte[]digest()
voidwrite(int b)
voidwrite(byte[] b)
protected void_HMACOutputStream(String digest, byte[] key, OutputStream out)

Constructor Detail

HMACOutputStream

public HMACOutputStream(String digest, byte[] key, OutputStream out)
Create the output stream with the indicated key

Parameters: digest the digest name key the key out the output stream

HMACOutputStream

public HMACOutputStream(String digest, String key, OutputStream out)
Create the output stream with the indicated key

Parameters: digest the digest name key the key out the output stream

Method Detail

digest

public byte[] digest()

write

public void write(int b)

write

public void write(byte[] b)

_HMACOutputStream

protected void _HMACOutputStream(String digest, byte[] key, OutputStream out)
Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.