de.rtner.security.auth.spi
Interface PRF

All Known Implementing Classes:
MacBasedPRF

public interface PRF

Interface to Pseudorandom Function.

See Also:
RFC 2898

Method Summary
 byte[] doFinal(byte[] M)
          Pseudo Random Function
 int getHLen()
          Query block size of underlying algorithm/mechanism.
 void init(byte[] P)
          Initialize this instance with the user-supplied password.
 

Method Detail

init

void init(byte[] P)
Initialize this instance with the user-supplied password.

Parameters:
P - The password supplied as array of bytes. It is the caller's task to convert String passwords to bytes as appropriate.

doFinal

byte[] doFinal(byte[] M)
Pseudo Random Function

Parameters:
M - Input data/message etc. Together with any data supplied during initilization.
Returns:
Random bytes of hLen length.

getHLen

int getHLen()
Query block size of underlying algorithm/mechanism.

Returns:
block size