Java Randomness Test Suite

JRandTest at SourceForge

com.fasteasytrade.JRandTest.IO
Interface AlgoRandomStream

All Superinterfaces:
RandomStream
All Known Implementing Classes:
FileAlgoRandomStream

public interface AlgoRandomStream
extends RandomStream

Interface to Algorithm as random stream

Author:
Zur Aougav

Method Summary
 void setPrivateKey(byte[] k)
          Set private key, if any, to algorithm
 void setPrivateKeyFromFile(String f)
          Set private key, if any, to algorithm from file
 void setPublicKey(byte[] k)
          Set public or symetric key to algorithm
 void setPublicKeyFromFile(String f)
          Set public or symetric key to algorithm from file
 void setup()
          Setup before encryption
 void setupKeys()
          set up length and new arrays to public and private keys will be implemented by each algorithm
 
Methods inherited from interface com.fasteasytrade.JRandTest.IO.RandomStream
closeInputStream, getFilename, isOpen, openInputStream, readByte, readInt, readLong, setFilename
 

Method Detail

setupKeys

public void setupKeys()
set up length and new arrays to public and private keys

will be implemented by each algorithm


setPublicKeyFromFile

public void setPublicKeyFromFile(String f)
Set public or symetric key to algorithm from file

Parameters:
f - file name with public or symetric key

setPublicKey

public void setPublicKey(byte[] k)
Set public or symetric key to algorithm

Parameters:
k - byte array of public or symetric key

setPrivateKeyFromFile

public void setPrivateKeyFromFile(String f)
Set private key, if any, to algorithm from file

Parameters:
f - file name with private key

setPrivateKey

public void setPrivateKey(byte[] k)
Set private key, if any, to algorithm

Parameters:
k - byte array of private key

setup

public void setup()
Setup before encryption


Java Randomness Test Suite

JRandTest at SourceForge

JRandTest at SourceForge
Copyright © 2005 Zur Aougav. All Rights Reserved.