| Modifier and Type | Class and Description |
|---|---|
| public static class | ElGamal.
ElGamal key pair generation parameters. |
| public static class | ElGamal.
ElGamal key pair generator class. |
| public static class | ElGamal.
Factory for creating ElGamal key wrap/unwrap operators. |
| public static class | ElGamal.
Parameters for use with OAEP formatted key wrapping/unwrapping and encryption/decryption. |
| public static class | ElGamal.
Factory for creating ElGamal encryption/decryption operators. |
| public static class | ElGamal.
Base class for ElGamal encryption/decryption and key wrap/unwrap parameters. |
| public static class | ElGamal.
Parameters for use with PKCS#1 v1.5 formatted key wrapping/unwrapping and encryption/decryption. |
| public static class | ElGamal.
Parameters for use with unformatted encryption/decryption. |
| private static enum | |
| public static interface | ElGamal.
Marker interface for parameters that can also be used for key wrapping. |
| Modifier and Type | Field and Description |
|---|---|
| public static final GeneralAlgorithm | ALGORITHM
Basic ElGamal key marker, can be used for creating general purpose ElGamal keys. |
| private static final GeneralAlgorithm | |
| private static final GeneralAlgorithm | |
| public static final ElGamal. | RAW
RAW ElGamal algorithm parameter source. |
| public static final ElGamal. | WRAP_OAEP
PKCS#1 v1.5 ElGamal algorithm parameter source. |
| public static final ElGamal. | WRAP_PKCS1v1_5
OAEP ElGamal algorithm parameter source - default digest is SHA-1 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static AsymmetricBlockCipher | createCipher(boolean forEncryption, AsymmetricKey key, ElGamal.
|
| ALGORITHM | back to summary |
|---|---|
| public static final GeneralAlgorithm ALGORITHM Basic ElGamal key marker, can be used for creating general purpose ElGamal keys. | |
| ALGORITHM_OAEP | back to summary |
|---|---|
| private static final GeneralAlgorithm ALGORITHM_OAEP | |
| PKCS1v1_5 | back to summary |
|---|---|
| private static final GeneralAlgorithm PKCS1v1_5 | |
| RAW | back to summary |
|---|---|
| public static final ElGamal. RAW ElGamal algorithm parameter source. | |
| WRAP_OAEP | back to summary |
|---|---|
| public static final ElGamal. PKCS#1 v1.5 ElGamal algorithm parameter source. | |
| WRAP_PKCS1v1_5 | back to summary |
|---|---|
| public static final ElGamal. OAEP ElGamal algorithm parameter source - default digest is SHA-1 | |
| ElGamal | back to summary |
|---|---|
| private ElGamal() | |
| createCipher | back to summary |
|---|---|
| private static AsymmetricBlockCipher createCipher(boolean forEncryption, AsymmetricKey key, ElGamal. | |
| Modifier and Type | Field and Description |
|---|---|
| private DHDomainParameters |
| Access | Constructor and Description |
|---|---|
| public | KeyGenParameters(DHDomainParameters
the DH domain parameters. domainParameters)Base constructor for specific domain parameters. |
| public | KeyGenParameters(ElGamal.
the particular parameter set to generate keys for. parameters,DH domain parameters representing the curve any generated keys will be for. domainParameters)Constructor for specifying the ElGamal algorithm explicitly. |
| Modifier and Type | Method and Description |
|---|---|
| public DHDomainParameters |
| domainParameters | back to summary |
|---|---|
| private DHDomainParameters domainParameters | |
| KeyGenParameters | back to summary |
|---|---|
| public KeyGenParameters(DHDomainParameters domainParameters) Base constructor for specific domain parameters.
| |
| KeyGenParameters | back to summary |
|---|---|
| public KeyGenParameters(ElGamal. Constructor for specifying the ElGamal algorithm explicitly.
| |
| getDomainParameters | back to summary |
|---|---|
| public DHDomainParameters getDomainParameters() | |
| Modifier and Type | Field and Description |
|---|---|
| private final FipsDH. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AsymmetricKeyPair |
| kpGen | back to summary |
|---|---|
| private final FipsDH. | |
| KeyPairGenerator | back to summary |
|---|---|
| public KeyPairGenerator(ElGamal. | |
| doGenerateKeyPair | back to summary |
|---|---|
| protected AsymmetricKeyPair Implements abstract org.
| |
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KeyUnwrapperUsingSecureRandom | createKeyUnwrapper(AsymmetricDHKey
the key to initialize the un-wrapper with. key, ElGamal.the parameters to initialize the un-wrapper with. parametersImplements org. |
| public KeyWrapperUsingSecureRandom | createKeyWrapper(AsymmetricDHKey
the key to initialize the wrapper with. key, ElGamal.the parameters to initialize the wrapper with. parametersImplements org. |
| KeyWrapOperatorFactory | back to summary |
|---|---|
| public KeyWrapOperatorFactory() | |
| createKeyUnwrapper | back to summary |
|---|---|
| public KeyUnwrapperUsingSecureRandom Implements org. Doc from org. Create a key un-wrapper using the passed in key and parameters.
| |
| createKeyWrapper | back to summary |
|---|---|
| public KeyWrapperUsingSecureRandom Implements org. Doc from org. Create a key wrapper using the passed in key and parameters.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AsymmetricDHKey | |
| private final AsymmetricBlockCipher | |
| private final ElGamal. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ElGamal. | getParameters()
Implements org. |
| public byte[] | unwrap(byte[]
input data array. in, int offset into data array wrapped key starts at. inOff, int length of wrapped key data. inLen)Implements org. |
| public KeyUnwrapperUsingSecureRandom | withSecureRandom(SecureRandom
the SecureRandom to use. random)Implements org. |
| key | back to summary |
|---|---|
| private final AsymmetricDHKey key | |
| keyWrapper | back to summary |
|---|---|
| private final AsymmetricBlockCipher keyWrapper | |
| parameters | back to summary |
|---|---|
| private final ElGamal. | |
| KeyUnwrapper | back to summary |
|---|---|
| public KeyUnwrapper(AsymmetricDHKey key, ElGamal. | |
| getParameters | back to summary |
|---|---|
| public ElGamal. Implements org. Doc from org. Return the parameters for this un-wrapper.
| |
| unwrap | back to summary |
|---|---|
| public byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidWrappingException Implements org. Doc from org. Return the unwrapped byte encoding of a key.
| |
| withSecureRandom | back to summary |
|---|---|
| public KeyUnwrapperUsingSecureRandom Implements org. Doc from org. Return a variant of this signer using the passed in random as its source of randomness.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AsymmetricDHKey | |
| private final AsymmetricBlockCipher | |
| private final ElGamal. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ElGamal. | getParameters()
Implements org. |
| public KeyWrapperUsingSecureRandom | withSecureRandom(SecureRandom
the SecureRandom to use. random)Implements org. |
| public byte[] | wrap(byte[]
input data array. in, int offset into data array key data starts at. inOff, int length of key data. inLen)Implements org. |
| key | back to summary |
|---|---|
| private final AsymmetricDHKey key | |
| keyWrapper | back to summary |
|---|---|
| private final AsymmetricBlockCipher keyWrapper | |
| parameters | back to summary |
|---|---|
| private final ElGamal. | |
| KeyWrapper | back to summary |
|---|---|
| public KeyWrapper(AsymmetricDHKey key, ElGamal. | |
| getParameters | back to summary |
|---|---|
| public ElGamal. Implements org. Doc from org. Return the parameters for this wrapper.
| |
| withSecureRandom | back to summary |
|---|---|
| public KeyWrapperUsingSecureRandom Implements org. Doc from org. Return a variant of this signer using the passed in random as its source of randomness.
| |
| wrap | back to summary |
|---|---|
| public byte[] wrap(byte[] in, int inOff, int inLen) throws PlainInputProcessingException Implements org. Doc from org. Return the wrapped version of a key byte encoding.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DigestAlgorithm | |
| private final byte[] | |
| private final DigestAlgorithm |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private | OAEPParameters(DigestAlgorithm digestAlgorithm, DigestAlgorithm mgfDigestAlgorithm, byte[] encodingParams)
|
| Modifier and Type | Method and Description |
|---|---|
| public DigestAlgorithm | |
| public byte[] | |
| public DigestAlgorithm | |
| public ElGamal. | Returns: a new parameter set.a digest algorithm. digestAlgorithm)Specify the digest algorithm to use. |
| public ElGamal. | Returns: a new parameter set.encoding params to include. encodingParams)Set the encoding parameters. |
| public ElGamal. | Returns: a new parameter set.a digest algorithm for the MGF. mgfDigestAlgorithm)Specify the digest algorithm to use for the MGF. |
| digestAlgorithm | back to summary |
|---|---|
| private final DigestAlgorithm digestAlgorithm | |
| encodingParams | back to summary |
|---|---|
| private final byte[] encodingParams | |
| mgfDigestAlgorithm | back to summary |
|---|---|
| private final DigestAlgorithm mgfDigestAlgorithm | |
| OAEPParameters | back to summary |
|---|---|
| pack-priv OAEPParameters() | |
| OAEPParameters | back to summary |
|---|---|
| private OAEPParameters(DigestAlgorithm digestAlgorithm, DigestAlgorithm mgfDigestAlgorithm, byte[] encodingParams) | |
| getDigest | back to summary |
|---|---|
| public DigestAlgorithm getDigest() | |
| getEncodingParams | back to summary |
|---|---|
| public byte[] getEncodingParams() | |
| getMGFDigest | back to summary |
|---|---|
| public DigestAlgorithm getMGFDigest() | |
| withDigest | back to summary |
|---|---|
| public ElGamal. Specify the digest algorithm to use. This also sets the MGF digest.
| |
| withEncodingParams | back to summary |
|---|---|
| public ElGamal. Set the encoding parameters.
| |
| withMGFDigest | back to summary |
|---|---|
| public ElGamal. Specify the digest algorithm to use for the MGF.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SingleBlockDecryptor | createBlockDecryptor(AsymmetricKey
the key to be used in the decryptor. key, final ElGamal.the parameter set for the decryptor. parametersImplements org. |
| protected AsymmetricBlockCipher | createCipher(boolean forEncryption, AsymmetricKey key, ElGamal.
Implements abstract org. |
| OperatorFactory | back to summary |
|---|---|
| public OperatorFactory() | |
| createBlockDecryptor | back to summary |
|---|---|
| public SingleBlockDecryptor Implements org. Doc from org. Create a block decryptor for the passed in key and parameter set.
| |
| createCipher | back to summary |
|---|---|
| protected AsymmetricBlockCipher createCipher(boolean forEncryption, AsymmetricKey key, ElGamal. Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Parameters | back to summary |
|---|---|
| pack-priv Parameters(GeneralAlgorithm algorithm) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| PKCS1v15Parameters | back to summary |
|---|---|
| pack-priv PKCS1v15Parameters() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| RawParameters | back to summary |
|---|---|
| pack-priv RawParameters() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ElGamal. | |
| public static final ElGamal. | |
| public static final ElGamal. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ElGamal. | |
| public static ElGamal. |
| OAEP | back to summary |
|---|---|
| public static final ElGamal. | |
| PKCS1v1_5 | back to summary |
|---|---|
| public static final ElGamal. | |
| RAW | back to summary |
|---|---|
| public static final ElGamal. | |
| Variations | back to summary |
|---|---|
| private Variations() | |
| valueOf | back to summary |
|---|---|
| public static ElGamal. | |
| values | back to summary |
|---|---|
| public static ElGamal. | |