diff options
author | Roberto Tyley <roberto.tyley@gmail.com> | 2014-07-15 01:38:01 +0400 |
---|---|---|
committer | Roberto Tyley <roberto.tyley@gmail.com> | 2014-07-26 11:23:17 +0400 |
commit | 7cb752aaf746dc0b473afeb9e892b7fbc12666c5 (patch) | |
tree | cc4f91ddc18332b5adbe82e3fcb040d976c90105 /pg/src/main/java/org/bouncycastle/openpgp/bc | |
parent | 551830f8ea5177042af2c7dd1fc90888bc67387d (diff) |
Execute become-spongy.sh
https://github.com/rtyley/spongycastle/blob/3040af/become-spongy.sh
Diffstat (limited to 'pg/src/main/java/org/bouncycastle/openpgp/bc')
5 files changed, 0 insertions, 152 deletions
diff --git a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPObjectFactory.java b/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPObjectFactory.java deleted file mode 100644 index 7ee93c73..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPObjectFactory.java +++ /dev/null @@ -1,35 +0,0 @@ -package org.bouncycastle.openpgp.bc; - -import java.io.ByteArrayInputStream; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPObjectFactory; -import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; - -/** - * {@link PGPObjectFactory} that uses the Bouncy Castle lightweight API to implement cryptographic - * primitives. - */ -public class BcPGPObjectFactory - extends PGPObjectFactory -{ - /** - * Construct an object factory to read PGP objects from encoded data. - * - * @param encoded the PGP encoded data. - */ - public BcPGPObjectFactory(byte[] encoded) - { - this(new ByteArrayInputStream(encoded)); - } - - /** - * Construct an object factory to read PGP objects from a stream. - * - * @param in the stream containing PGP encoded objects. - */ - public BcPGPObjectFactory(InputStream in) - { - super(in, new BcKeyFingerprintCalculator()); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRing.java b/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRing.java deleted file mode 100644 index 4023be76..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRing.java +++ /dev/null @@ -1,26 +0,0 @@ -package org.bouncycastle.openpgp.bc; - -import java.io.IOException; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPPublicKeyRing; -import org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator; -import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; - -public class BcPGPPublicKeyRing - extends PGPPublicKeyRing -{ - private static KeyFingerPrintCalculator fingerPrintCalculator = new BcKeyFingerprintCalculator(); - - public BcPGPPublicKeyRing(byte[] encoding) - throws IOException - { - super(encoding, fingerPrintCalculator); - } - - public BcPGPPublicKeyRing(InputStream in) - throws IOException - { - super(in, fingerPrintCalculator); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java b/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java deleted file mode 100644 index 20e09bca..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPPublicKeyRingCollection.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.bouncycastle.openpgp.bc; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPPublicKeyRingCollection; -import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; - -public class BcPGPPublicKeyRingCollection - extends PGPPublicKeyRingCollection -{ - public BcPGPPublicKeyRingCollection(byte[] encoding) - throws IOException, PGPException - { - this(new ByteArrayInputStream(encoding)); - } - - public BcPGPPublicKeyRingCollection(InputStream in) - throws IOException, PGPException - { - super(in, new BcKeyFingerprintCalculator()); - } - - public BcPGPPublicKeyRingCollection(Collection collection) - throws IOException, PGPException - { - super(collection); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRing.java b/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRing.java deleted file mode 100644 index 8dac1d5e..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRing.java +++ /dev/null @@ -1,27 +0,0 @@ -package org.bouncycastle.openpgp.bc; - -import java.io.IOException; -import java.io.InputStream; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPSecretKeyRing; -import org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator; -import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; - -public class BcPGPSecretKeyRing - extends PGPSecretKeyRing -{ - private static KeyFingerPrintCalculator fingerPrintCalculator = new BcKeyFingerprintCalculator(); - - public BcPGPSecretKeyRing(byte[] encoding) - throws IOException, PGPException - { - super(encoding, fingerPrintCalculator); - } - - public BcPGPSecretKeyRing(InputStream in) - throws IOException, PGPException - { - super(in, fingerPrintCalculator); - } -} diff --git a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRingCollection.java b/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRingCollection.java deleted file mode 100644 index 57e0276e..00000000 --- a/pg/src/main/java/org/bouncycastle/openpgp/bc/BcPGPSecretKeyRingCollection.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.bouncycastle.openpgp.bc; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Collection; - -import org.bouncycastle.openpgp.PGPException; -import org.bouncycastle.openpgp.PGPSecretKeyRingCollection; -import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator; - -public class BcPGPSecretKeyRingCollection - extends PGPSecretKeyRingCollection -{ - public BcPGPSecretKeyRingCollection(byte[] encoding) - throws IOException, PGPException - { - this(new ByteArrayInputStream(encoding)); - } - - public BcPGPSecretKeyRingCollection(InputStream in) - throws IOException, PGPException - { - super(in, new BcKeyFingerprintCalculator()); - } - - public BcPGPSecretKeyRingCollection(Collection collection) - throws IOException, PGPException - { - super(collection); - } -} |