net.jradius.tls
Class CombinedHash

java.lang.Object
  extended by net.jradius.tls.CombinedHash
All Implemented Interfaces:
org.bouncycastle.crypto.Digest

public class CombinedHash
extends Object
implements org.bouncycastle.crypto.Digest

A combined hash, which implements md5(m) || sha1(m).


Method Summary
 int doFinal(byte[] out, int outOff)
           
 String getAlgorithmName()
           
 int getDigestSize()
           
 void reset()
           
 void update(byte in)
           
 void update(byte[] in, int inOff, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAlgorithmName

public String getAlgorithmName()
Specified by:
getAlgorithmName in interface org.bouncycastle.crypto.Digest
See Also:
Digest.getAlgorithmName()

getDigestSize

public int getDigestSize()
Specified by:
getDigestSize in interface org.bouncycastle.crypto.Digest
See Also:
Digest.getDigestSize()

update

public void update(byte in)
Specified by:
update in interface org.bouncycastle.crypto.Digest
See Also:
Digest.update(byte)

update

public void update(byte[] in,
                   int inOff,
                   int len)
Specified by:
update in interface org.bouncycastle.crypto.Digest
See Also:
Digest.update(byte[],int,int)

doFinal

public int doFinal(byte[] out,
                   int outOff)
Specified by:
doFinal in interface org.bouncycastle.crypto.Digest
See Also:
Digest.doFinal(byte[],int)

reset

public void reset()
Specified by:
reset in interface org.bouncycastle.crypto.Digest
See Also:
Digest.reset()


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.