diff options
Diffstat (limited to 'libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Wrapper.java')
-rw-r--r-- | libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Wrapper.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Wrapper.java b/libraries/spongycastle/core/src/main/java/org/spongycastle/crypto/Wrapper.java new file mode 100644 index 000000000..f517c1271 --- /dev/null +++ b/libraries/spongycastle/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; +} |