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