|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object core.crypto.Performance
public class Performance
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
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 |
---|
public Performance()
Method Detail |
---|
public static void measureHash(int fileSize) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, InterruptedException, IOException, UnrecoverableEntryException, KeyStoreException
fileSize
- the size of the temporary dummy file
NoSuchAlgorithmException
InvalidAlgorithmParameterException
InterruptedException
IOException
UnrecoverableEntryException
KeyStoreException
public static void measureEncrypt(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the generated keys
IOException
public static void measureDecrypt(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the generated keys
IOException
public static void measureAsymmetric(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the gernerated keys
IOException
public static void measureSymmetric(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the gernerated keys
IOException
public static void measureSign(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the gernerated keys
IOException
public static void measureVerify(int fileSize, int keySize) throws IOException
fileSize
- the size of the temporary dummy filekeySize
- the size of the gernerated keys
IOException
public static void measureKeyGeneration(int strength)
strength
- the desired strength of the generated keyspublic static void measureKeyPairGeneration(int strength)
strength
- the desired strength of the generated keys
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |