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 'core/src/main/java/org/spongycastle/crypto/Wrapper.java')
-rw-r--r--core/src/main/java/org/spongycastle/crypto/Wrapper.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/src/main/java/org/spongycastle/crypto/Wrapper.java b/core/src/main/java/org/spongycastle/crypto/Wrapper.java
new file mode 100644
index 00000000..f517c127
--- /dev/null
+++ b/core/src/main/java/org/spongycastle/crypto/Wrapper.java
@@ -0,0 +1,18 @@
+package org.spongycastle.crypto;
+
+public interface Wrapper
+{
+ public void init(boolean forWrapping, CipherParameters param);
+
+ /**
+ * Return the name of the algorithm the wrapper implements.
+ *
+ * @return the name of the algorithm the wrapper implements.
+ */
+ public String getAlgorithmName();
+
+ public byte[] wrap(byte[] in, int inOff, int inLen);
+
+ public byte[] unwrap(byte[] in, int inOff, int inLen)
+ throws InvalidCipherTextException;
+}