usage: DSAElGamalKeyRingGenerator [-a] identity passPhrase
Where identity is the name to be associated with the public key. The keys are placed in the files pub.[asc|bpg] and secret.[asc|bpg].
| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | |
| private static final int[] | |
| private static final int | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | exportKeyPair(OutputStream secretOut, OutputStream publicOut, KeyPair dsaKp, KeyPair elgKp, String identity, char[] passPhrase, boolean armor)
|
| private static KeyPair | |
| private static KeyPair | |
| private static PGPSignatureSubpacketGenerator | |
| private static PGPSignatureSubpacketGenerator | |
| public static void |
| COMP | back to summary |
|---|---|
| private static final int[] COMP | |
| HASH_PREFERENCES | back to summary |
|---|---|
| private static final int[] HASH_PREFERENCES | |
| SIG_HASH | back to summary |
|---|---|
| private static final int SIG_HASH | |
| SYM_PREFERENCES | back to summary |
|---|---|
| private static final int[] SYM_PREFERENCES | |
| DSAElGamalKeyRingGenerator | back to summary |
|---|---|
| public DSAElGamalKeyRingGenerator() | |
| exportKeyPair | back to summary |
|---|---|
| private static void exportKeyPair(OutputStream secretOut, OutputStream publicOut, KeyPair dsaKp, KeyPair elgKp, String identity, char[] passPhrase, boolean armor) throws IOException, PGPException | |
| generateDSAKeyPair | back to summary |
|---|---|
| private static KeyPair generateDSAKeyPair() throws NoSuchAlgorithmException, NoSuchProviderException | |
| generateElGamalKeyPair | back to summary |
|---|---|
| private static KeyPair generateElGamalKeyPair() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException | |
| getEncryptionKeyHashedSubpackets | back to summary |
|---|---|
| private static PGPSignatureSubpacketGenerator getEncryptionKeyHashedSubpackets() | |
| getPrimaryKeyHashedSubpackets | back to summary |
|---|---|
| private static PGPSignatureSubpacketGenerator getPrimaryKeyHashedSubpackets() | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws Exception | |