gnu.crypto.sasl.srp

Class IALG

public final class IALG extends Object implements Cloneable

A Factory class that returns IALG (Integrity Algorithm) instances that operate as described in the draft-burdis-cat-sasl-srp-04 and later.

Version: $Revision: 1.5 $

Method Summary
Objectclone()
byte[]doFinal()
static IALGgetInstance(String algorithm)

Returns an instance of a SASL-SRP IALG implementation.

voidinit(KDF kdf)
intlength()

Returns the length (in bytes) of this SASL SRP Integrity Algorithm.

voidupdate(byte[] data)
voidupdate(byte[] data, int offset, int length)

Method Detail

clone

public Object clone()

doFinal

public byte[] doFinal()

getInstance

static IALG getInstance(String algorithm)

Returns an instance of a SASL-SRP IALG implementation.

Parameters: algorithm the name of the HMAC algorithm.

Returns: an instance of this object.

init

public void init(KDF kdf)

length

public int length()

Returns the length (in bytes) of this SASL SRP Integrity Algorithm.

Returns: the length, in bytes, of this integrity protection algorithm.

update

public void update(byte[] data)

update

public void update(byte[] data, int offset, int length)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.