# Package net.i2p.crypto.elgamal

Implementation of the ElGamal public-key cryptosystem for I2P.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  ElGamalKey | Base interface for ElGamal cryptographic keys used in I2P.
  ElGamalPrivateKey | Interface for ElGamal private keys.
  ElGamalPublicKey | Interface for ElGamal public keys.

- Class Summary
  Class | Description
  --- | ---
  ElGamalSigEngine | ElG signatures with SHA-256 ref: https://en.wikipedia.org/wiki/ElGamal_signature_scheme
  KeyFactory | Java Security Provider KeyFactory implementation for ElGamal public-key cryptosystem.
  KeyPairGenerator | Modified from eddsa Only supported strength is 2048

## Package net.i2p.crypto.elgamal Description

Implementation of the ElGamal public-key cryptosystem for I2P.

This package provides interfaces and implementations for ElGamal keys and parameters, supporting encryption and decryption operations in the I2P network. The ElGamal algorithm is used for secure key exchange and encrypted communication within I2P, providing confidentiality and authentication for network traffic.

Key components include:

- ElGamalPrivateKey and ElGamalPublicKey interfaces defining the key contract
- Concrete implementations supporting PKCS#8 and X.509 encoding standards
- Parameter specifications for key generation and configuration

Since 0.9.25.

    Copyright (c) 2000 - 2013 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software
    and associated documentation files (the "Software"), to deal in the Software without restriction,
    including without limitation the rights to use, copy, modify, merge, publish, distribute,
    sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
    is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or
    substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
    INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
    AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
    DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.