| Modifier and Type | Field and Description |
|---|---|
| private final PGPDigestCalculatorProvider |
| Access | Constructor and Description |
|---|---|
| public | SExprParser(PGPDigestCalculatorProvider
a provider for digest calculations. Used to confirm key protection hashes. digestProvider)Base constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[][] | |
| public PGPSecretKey | Returns: a secret key object.Parse a secret key from one of the GPG S expression keys associating it with the passed in public key. |
| public PGPSecretKey | Returns: a secret key object.Parse a secret key from one of the GPG S expression keys. |
| private BigInteger | processDSASecretKey(InputStream inputStream, BigInteger p, BigInteger q, BigInteger g, BigInteger y, PBEProtectionRemoverFactory keyProtectionRemoverFactory)
|
| private BigInteger | processECSecretKey(InputStream inputStream, String curveID, String curveName, byte[] qVal, PBEProtectionRemoverFactory keyProtectionRemoverFactory)
|
| private BigInteger | processElGamalSecretKey(InputStream inputStream, BigInteger p, BigInteger g, BigInteger y, PBEProtectionRemoverFactory keyProtectionRemoverFactory)
|
| private BigInteger[] | processRSASecretKey(InputStream inputStream, BigInteger n, BigInteger e, PBEProtectionRemoverFactory keyProtectionRemoverFactory)
|
| private BigInteger | |
| private void | |
| private void |
| digestProvider | back to summary |
|---|---|
| private final PGPDigestCalculatorProvider digestProvider | |
| SExprParser | back to summary |
|---|---|
| public SExprParser(PGPDigestCalculatorProvider digestProvider) Base constructor.
| |
| extractData | back to summary |
|---|---|
| private static byte[][] extractData(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory) throws PGPException, IOException | |
| parseSecretKey | back to summary |
|---|---|
| public PGPSecretKey parseSecretKey(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, PGPPublicKey pubKey) throws IOException, PGPException Parse a secret key from one of the GPG S expression keys associating it with the passed in public key.
| |
| parseSecretKey | back to summary |
|---|---|
| public PGPSecretKey parseSecretKey(InputStream inputStream, PBEProtectionRemoverFactory keyProtectionRemoverFactory, KeyFingerPrintCalculator fingerPrintCalculator) throws IOException, PGPException Parse a secret key from one of the GPG S expression keys.
| |
| processDSASecretKey | back to summary |
|---|---|
| private BigInteger processDSASecretKey(InputStream inputStream, BigInteger p, BigInteger q, BigInteger g, BigInteger y, PBEProtectionRemoverFactory keyProtectionRemoverFactory) throws IOException, PGPException | |
| processECSecretKey | back to summary |
|---|---|
| private BigInteger processECSecretKey(InputStream inputStream, String curveID, String curveName, byte[] qVal, PBEProtectionRemoverFactory keyProtectionRemoverFactory) throws IOException, PGPException | |
| processElGamalSecretKey | back to summary |
|---|---|
| private BigInteger processElGamalSecretKey(InputStream inputStream, BigInteger p, BigInteger g, BigInteger y, PBEProtectionRemoverFactory keyProtectionRemoverFactory) throws IOException, PGPException | |
| processRSASecretKey | back to summary |
|---|---|
| private BigInteger[] processRSASecretKey(InputStream inputStream, BigInteger n, BigInteger e, PBEProtectionRemoverFactory keyProtectionRemoverFactory) throws IOException, PGPException | |
| readBigInteger | back to summary |
|---|---|
| private BigInteger readBigInteger(String expectedType, InputStream inputStream) throws IOException, PGPException | |
| writeCanonical | back to summary |
|---|---|
| private void writeCanonical(OutputStream dOut, String label, BigInteger i) throws IOException | |
| writeCanonical | back to summary |
|---|---|
| private void writeCanonical(OutputStream dOut, String label, byte[] data) throws IOException | |