Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## crypting
Class ElGamal

    java.lang.Object
      crypting.CryptAbstract
          crypting.ElGamal

    public class ElGamal

extends CryptAbstract

Třída pro šifrování metodou ElGamal.

Field Summary

Fields inherited from class crypting.CryptAbstract
`cipher, generateKeyPair, keypair, random`

Constructor Summary
`ElGamal()`

Method Summary
`byte[]` | `desifrovani(byte[] cryptogram)`
`byte[]` | `sifrovani(byte[] inputText)`
`byte[]` | `sifrovani(java.lang.String inputText)`
`void` | `vygenerovani(int delkaKlicu)`

Methods inherited from class crypting.CryptAbstract
`getPrivateKey, getPublicKey`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ElGamal

    public ElGamal()

Method Detail

### vygenerovani

    public void vygenerovani(int delkaKlicu)
                      throws java.security.NoSuchAlgorithmException,
                             java.security.NoSuchProviderException,
                             javax.crypto.NoSuchPaddingException

  Throws:
    `java.security.NoSuchAlgorithmException`
    `java.security.NoSuchProviderException`
    `javax.crypto.NoSuchPaddingException`

### sifrovani

    public byte[] sifrovani(java.lang.String inputText)
                     throws java.security.InvalidKeyException,
                            javax.crypto.IllegalBlockSizeException,
                            javax.crypto.BadPaddingException

  Throws:
    `java.security.InvalidKeyException`
    `javax.crypto.IllegalBlockSizeException`
    `javax.crypto.BadPaddingException`

### sifrovani

    public byte[] sifrovani(byte[] inputText)
                     throws java.security.InvalidKeyException,
                            javax.crypto.IllegalBlockSizeException,
                            javax.crypto.BadPaddingException

  Throws:
    `java.security.InvalidKeyException`
    `javax.crypto.IllegalBlockSizeException`
    `javax.crypto.BadPaddingException`

### desifrovani

    public byte[] desifrovani(byte[] cryptogram)
                       throws java.security.InvalidKeyException,
                              javax.crypto.IllegalBlockSizeException,
                              javax.crypto.BadPaddingException

  Throws:
    `java.security.InvalidKeyException`
    `javax.crypto.IllegalBlockSizeException`
    `javax.crypto.BadPaddingException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD