core.crypto
Class Performance

java.lang.Object
  extended by core.crypto.Performance

public class Performance
extends Object

This class provides benchmark and performance testing.

  Copyright (c) 2006 Sebastian Erdweg
  Copyright (c) 2006 Dominik Schulz
  Copyright (c) 2006 Florian Lindner
  Copyright (c) 2006 Betim Berjani
  
  This file is part of FlexiCrypt.

  FlexiCrypt is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  FlexiCrypt is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with FlexiCrypt; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  

Author:
Florian, Dominik

Constructor Summary
Performance()
           
 
Method Summary
static void measureAsymmetric(int fileSize, int keySize)
          Measure en- and decrytion performance of all known asymmetric algorithms
static void measureDecrypt(int fileSize, int keySize)
          Measures all known Decryption algorithms
static void measureEncrypt(int fileSize, int keySize)
          Measures all known encyption Algorithms
static void measureHash(int fileSize)
          Mesasures all known MessageDigest Algorithms
static void measureKeyGeneration(int strength)
          Measures Key Generation Time of all known Symmetric Key Generators
static void measureKeyPairGeneration(int strength)
          Measures Key Generation Time of all known Asymmetric Key Pair Generators
static void measureSign(int fileSize, int keySize)
          Measure signature performance of all known signature algorithms
static void measureSymmetric(int fileSize, int keySize)
          Measure en- and decrytion performance of all known symmetric algorithms
static void measureVerify(int fileSize, int keySize)
          Measure verifying performance of all known verifying algorithms
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Performance

public Performance()
Method Detail

measureHash

public static void measureHash(int fileSize)
                        throws NoSuchAlgorithmException,
                               InvalidAlgorithmParameterException,
                               InterruptedException,
                               IOException,
                               UnrecoverableEntryException,
                               KeyStoreException
Mesasures all known MessageDigest Algorithms

Parameters:
fileSize - the size of the temporary dummy file
Throws:
NoSuchAlgorithmException
InvalidAlgorithmParameterException
InterruptedException
IOException
UnrecoverableEntryException
KeyStoreException

measureEncrypt

public static void measureEncrypt(int fileSize,
                                  int keySize)
                           throws IOException
Measures all known encyption Algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the generated keys
Throws:
IOException

measureDecrypt

public static void measureDecrypt(int fileSize,
                                  int keySize)
                           throws IOException
Measures all known Decryption algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the generated keys
Throws:
IOException

measureAsymmetric

public static void measureAsymmetric(int fileSize,
                                     int keySize)
                              throws IOException
Measure en- and decrytion performance of all known asymmetric algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the gernerated keys
Throws:
IOException

measureSymmetric

public static void measureSymmetric(int fileSize,
                                    int keySize)
                             throws IOException
Measure en- and decrytion performance of all known symmetric algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the gernerated keys
Throws:
IOException

measureSign

public static void measureSign(int fileSize,
                               int keySize)
                        throws IOException
Measure signature performance of all known signature algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the gernerated keys
Throws:
IOException

measureVerify

public static void measureVerify(int fileSize,
                                 int keySize)
                          throws IOException
Measure verifying performance of all known verifying algorithms

Parameters:
fileSize - the size of the temporary dummy file
keySize - the size of the gernerated keys
Throws:
IOException

measureKeyGeneration

public static void measureKeyGeneration(int strength)
Measures Key Generation Time of all known Symmetric Key Generators

Parameters:
strength - the desired strength of the generated keys

measureKeyPairGeneration

public static void measureKeyPairGeneration(int strength)
Measures Key Generation Time of all known Asymmetric Key Pair Generators

Parameters:
strength - the desired strength of the generated keys