ZetaGrid v1.9

zeta.crypto
Class Decrypter

java.lang.Object
  |
  +--zeta.crypto.Decrypter

public class Decrypter
extends java.lang.Object

Decrypts every encrypted communication from the client using a key establishment protocol (half-certified Diffie-Hellman) with keys which have a length of 1024 Bit.


Field Summary
private  Key key
           
 
Constructor Summary
Decrypter(Key key)
           
 
Method Summary
static void bzip2UncompressData(java.lang.String inFilename, java.lang.String outFilename)
          Uncompresses a specified file.
private  boolean decrypt(java.io.InputStream in, java.io.OutputStream out, java.math.BigInteger D)
          Decrypts a specified input stream.
 void decrypt(java.lang.String privateKey, java.lang.String inFilename, java.lang.String outFilename)
          Decrypts a specified input stream.
 java.lang.String decryptURLFile(java.lang.String urlFile, java.math.BigInteger D)
          Decrypts the file attribute of a URL where the parameters are packed in a parameter 'param'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private Key key
Constructor Detail

Decrypter

public Decrypter(Key key)
Parameters:
key - key for the decryption algorithm
Method Detail

decrypt

public void decrypt(java.lang.String privateKey,
                    java.lang.String inFilename,
                    java.lang.String outFilename)
             throws java.io.IOException
Decrypts a specified input stream. Every transfer of a result uses a key establishment protocol (half-certified Diffie-Hellman) with keys which have a length of 1024 Bit.

Parameters:
privateKey - decryption number (radix 32) for the half-certified Diffie-Hellman protocol
inFilename - name of the file which should be decrypted
outFilename - name of the decrypted file
Throws:
java.io.IOException - if an I/O error occurs.

decrypt

private boolean decrypt(java.io.InputStream in,
                        java.io.OutputStream out,
                        java.math.BigInteger D)
                 throws java.io.IOException
Decrypts a specified input stream. Every transfer of a result uses a key establishment protocol (half-certified Diffie-Hellman) with keys which have a length of 1024 Bit.

Parameters:
in - input stream which should be decrypted
out - output stream for the decrypted data
D - decryption number for the half-certified Diffie-Hellman protocol
Throws:
java.io.IOException - if an I/O error occurs.

decryptURLFile

public java.lang.String decryptURLFile(java.lang.String urlFile,
                                       java.math.BigInteger D)
                                throws java.io.IOException
Decrypts the file attribute of a URL where the parameters are packed in a parameter 'param'. The default decryption algorithmus will be used.

Parameters:
urlFile - encrypted file attribute of a URL
D - decryption number for the half-certified Diffie-Hellman protocol
Returns:
decrypted file attribute of a URL, or null if the encrypted file attribute cannot be decrypted
Throws:
java.io.IOException - if an I/O error occurs.

bzip2UncompressData

public static void bzip2UncompressData(java.lang.String inFilename,
                                       java.lang.String outFilename)
                                throws java.io.IOException
Uncompresses a specified file.

Parameters:
inFilename - name of the file which should be uncompressed
outFilename - name of the uncompressed file
Throws:
java.io.IOException - if an I/O error occurs.

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.