Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/spongycastle/openpgp/PGPKdfParameters.java')
-rw-r--r--pg/src/main/java/org/spongycastle/openpgp/PGPKdfParameters.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/openpgp/PGPKdfParameters.java b/pg/src/main/java/org/spongycastle/openpgp/PGPKdfParameters.java
new file mode 100644
index 00000000..fc37af74
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/openpgp/PGPKdfParameters.java
@@ -0,0 +1,24 @@
+package org.spongycastle.openpgp;
+
+public class PGPKdfParameters
+ implements PGPAlgorithmParameters
+{
+ private final int hashAlgorithm;
+ private final int symmetricWrapAlgorithm;
+
+ public PGPKdfParameters(int hashAlgorithm, int symmetricWrapAlgorithm)
+ {
+ this.hashAlgorithm = hashAlgorithm;
+ this.symmetricWrapAlgorithm = symmetricWrapAlgorithm;
+ }
+
+ public int getSymmetricWrapAlgorithm()
+ {
+ return symmetricWrapAlgorithm;
+ }
+
+ public int getHashAlgorithm()
+ {
+ return hashAlgorithm;
+ }
+}