aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java')
-rw-r--r--libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java b/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java
index c0f7dfa3b..f7e3a50c7 100644
--- a/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java
+++ b/libraries/spongycastle/pg/src/main/java/org/spongycastle/openpgp/PGPSecretKey.java
@@ -431,7 +431,16 @@ public class PGPSecretKey
{
return pub.getUserIDs();
}
-
+
+ /**
+ * Return the S2K this secret key is encrypted with.
+ *
+ * @return the S2K for this key.
+ */
+ public S2K getS2K() {
+ return secret.getS2K();
+ }
+
/**
* Return any user attribute vectors associated with the key.
*